Get command line access with SSH or ESXi Console as user root.
Then run the following commands to enable SNMP and configure SNMP v2 community, SysLocation and SysContact.
esxcli system snmp set -r esxcli system snmp set -c esxsnmpusr esxcli system snmp set -p 161 esxcli system snmp set -L "California, USA" esxcli system snmp set -C [email protected] esxcli system snmp set -e yes
Finally run ‘get’ to confirm the configuration
esxcli system snmp get Authentication: Communities: esxsnmpusr Enable: true Engineid: 00000000000000aaaaaa1000 Hwsrc: indications Largestorage: true Loglevel: info Notraps: Port: 161 Privacy: Remoteusers: Syscontact: [email protected] Syslocation: California, USA Targets: Users: V3targets:
That’s it, now open your favorite NMS software and start monitoring, at work I use Cisco Prime NAM, my choice at home is Observium