31 July 2013

ESXi 5.1 SNMP Configuration Example

Download and install vCLI from vmware.com

Perform the following steps against any ESXi server:


esxcli -s 10.1.1.1 -u root  -p PaSSwOrd system snmp set -c community-snmp-ro
esxcli -s 10.1.1.1 -u root  -p PaSSwOrd system snmp set -t 10.2.2.2@161/community-snmp-ro
esxcli -s 10.1.1.1 -u root  -p PaSSwOrd system snmp set -e yes
esxcli -s 10.1.1.1 -u root  -p PaSSwOrd system snmp set -L Location
esxcli -s 10.1.1.1 -u root  -p PaSSwOrd system snmp set -C ContactName

esxcli -s 10.1.1.1 -u root  -p PaSSwOrd system snmp get
esxcli -s 10.1.1.1 -u root  -p PaSSwOrd system snmp test