Just a quick overview on how to enable and configure SNMP on the vCenter Server Appliance.

  • SSH into the VCSA:
ssh root@vcenter67-1.secscout.xyz

VMware vCenter Server Appliance 6.7.0.31000
Type: vCenter Server with an embedded Platform Services Controller
Connected to service
    * List APIs: "help api list"
    * List Plugins: "help pi list"
    * Launch BASH: "shell"

Command> 

This time we don't want to start a BASH right away and stay in the Command> promt

  • Configure the SNMP Service:
Command> snmp.enable
Command> snmp.set --communities public
Command> snmp.set --targets 10.7.30.2@162/public
  • Checking the Configuration
Command> snmp.get
Config:
   Users:
   V3targets:
   Engineid: 80001adc80ca1f753fff9d0b5d00000000
   Targets:
     1:
         Community: public
         Ip: 10.7.30.2
         Port: 162
   Syslocation: ''
   Loglevel: warning
   Privacy: none
   Processlist: False
   Pid: 19160
   Authentication: none
   Port: 161
   Enable: True
   Syscontact: ''
   Notraps: ''
   Remoteusers:
   Communities: public
Command> snmp.test
Results:
   Message: A warmStart notification was sent to 1 target.
   Success: True
  • Testing the Configuration from an external system
root@monitoring:~# snmpwalk -c public vcenter67-1.secscout.xyz -v1
iso.3.6.1.2.1.1.1.0 = STRING: "VMware vCenter Server Appliance 6.7.0.31000 embedded build 13643870 VMware, Inc x86_64"
iso.3.6.1.2.1.1.2.0 = OID: iso.3.6.1.4.1.6876.4.7
iso.3.6.1.2.1.1.3.0 = Timeticks: (10703) 0:01:47.03
iso.3.6.1.2.1.1.4.0 = ""
iso.3.6.1.2.1.1.5.0 = STRING: "vcenter67-1.secscout.xyz"
iso.3.6.1.2.1.1.6.0 = ""
iso.3.6.1.2.1.1.7.0 = INTEGER: 72
iso.3.6.1.2.1.1.8.0 = Timeticks: (0) 0:00:00.00
iso.3.6.1.2.1.1.9.1.2.1 = OID: iso.3.6.1.6.3.1
iso.3.6.1.2.1.1.9.1.2.2 = OID: iso.3.6.1.2.1.31
iso.3.6.1.2.1.1.9.1.2.3 = OID: iso.3.6.1.2.1.4
iso.3.6.1.2.1.1.9.1.2.4 = OID: iso.3.6.1.2.1.4.24
iso.3.6.1.2.1.1.9.1.2.5 = OID: iso.3.6.1.2.1.7
iso.3.6.1.2.1.1.9.1.2.6 = OID: iso.3.6.1.2.1.6
iso.3.6.1.2.1.1.9.1.2.7 = OID: iso.3.6.1.2.1.47
iso.3.6.1.2.1.1.9.1.2.8 = OID: iso.3.6.1.2.1.25.7.1
iso.3.6.1.2.1.1.9.1.2.9 = OID: iso.3.6.1.4.1.6876.53
iso.3.6.1.2.1.1.9.1.2.10 = OID: iso.3.6.1.4.1.6876.1.10
iso.3.6.1.2.1.1.9.1.3.1 = STRING: "SNMPv2-MIB, RFC 3418"
iso.3.6.1.2.1.1.9.1.3.2 = STRING: "IF-MIB, RFC 2863"
iso.3.6.1.2.1.1.9.1.3.3 = STRING: "IP-MIB, RFC 4293"
iso.3.6.1.2.1.1.9.1.3.4 = STRING: "IP-FORWARD-MIB, RFC 4292"
iso.3.6.1.2.1.1.9.1.3.5 = STRING: "UDP-MIB, RFC 4113"
iso.3.6.1.2.1.1.9.1.3.6 = STRING: "TCP-MIB, RFC 4022"
iso.3.6.1.2.1.1.9.1.3.7 = STRING: "ENTITY-MIB, RFC 4133"
iso.3.6.1.2.1.1.9.1.3.8 = STRING: "HOST-RESOURCES-MIB, RFC 2790"
iso.3.6.1.2.1.1.9.1.3.9 = STRING: "VMWARE-VCHA-MIB, REVISION 201602030000Z"
iso.3.6.1.2.1.1.9.1.3.10 = STRING: "VMWARE-SYSTEM-MIB, REVISION 201008020"
[...]
iso.3.6.1.2.1.25.6.3.1.2.58 = STRING: "VMware, Inc.,cracklib-dicts,2.9.6,3.ph1"
iso.3.6.1.2.1.25.6.3.1.2.59 = STRING: "VMware, Inc.,cronie,1.5.0,11.ph1"
iso.3.6.1.2.1.25.6.3.1.2.60 = STRING: "VMware, Inc.,curl,7.59.0,5.ph1"
[...]
iso.3.6.1.2.1.31.1.5.0 = Timeticks: (0) 0:00:00.00
iso.3.6.1.2.1.47.1.1.1.1.2.1 = STRING: "CloudVM Intel Corporation 440BX Desktop Reference Platform Intel Corporation"
iso.3.6.1.2.1.47.1.1.1.1.3.1 = OID: ccitt.0.0
iso.3.6.1.2.1.47.1.1.1.1.4.1 = INTEGER: 0
iso.3.6.1.2.1.47.1.1.1.1.5.1 = INTEGER: 1
iso.3.6.1.2.1.47.1.1.1.1.6.1 = INTEGER: -1
iso.3.6.1.2.1.47.1.1.1.1.7.1 = STRING: "vcenter67-1.secscout.xyz"
iso.3.6.1.2.1.47.1.1.1.1.8.1 = STRING: "N/A"
iso.3.6.1.2.1.47.1.1.1.1.9.1 = STRING: "6.00"
iso.3.6.1.2.1.47.1.1.1.1.10.1 = STRING: "4.4.171-1.ph1-"
iso.3.6.1.2.1.47.1.1.1.1.11.1 = STRING: "VMware-56 4d 79 0d a9 fb 89 a7-4"
iso.3.6.1.2.1.47.1.1.1.1.12.1 = STRING: "VMware, Inc."
iso.3.6.1.2.1.47.1.1.1.1.13.1 = STRING: "VMware Virtual Platform"
iso.3.6.1.2.1.47.1.1.1.1.14.1 = STRING: "VMware, Inc. VMware, Inc."
iso.3.6.1.2.1.47.1.1.1.1.15.1 = STRING: "No Asset Tag"
iso.3.6.1.2.1.47.1.1.1.1.16.1 = INTEGER: 2
iso.3.6.1.2.1.47.1.1.1.1.17.1 = Hex-STRING: 07 E0 04 05 00 00 00 00 00 00 00
iso.3.6.1.2.1.47.1.1.1.1.18.1 = STRING: "urn:uuid:564d790da9fb89a7476a982ccf3d3caa"
iso.3.6.1.2.1.47.1.4.1.0 = Timeticks: (1) 0:00:00.01