How to setup SNMP for ESXi 4.1

You might want to look at my other article on how to monitor ESXi hardware using the VMware Management Assistant

Licensing

“VMware ESXi supports SNMP when licensed with vSphere Essentials, vSphere Essential Plus, vSphere Standard, vSphere Advanced, vSphere Enterprise, or vSphere Enterprise Plus.

The free vSphere Hypervisor edition does not support SNMP.”

http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=1023990

The below article assumes that ESXi has been installed using the Dell ESXi ISO available on the Dell site.

Step1: Configure SNMP community

You will need to download and install the vSphere CLI. If you have just installed vSphere CLI you may need to log off and then back on for it to work.

Open the vSphere client and enter:

vicfg-snmp.pl –server <IP of ESXi> -c <SNMP community> -p 161 -t <Trap destination IP>@161/public

e.g. vicfg-snmp.pl –server 172.16.1.4 -c public -p 161 -t 172.16.1.2@161/public

Note- that if pasting the above be careful the “–” infront of “server” is a double minus

I strongly recommend you reboot now before the next stage


Step 2: Enable SNMP

vicfg-snmp.pl –server <ESXi IP> -E

(again there is a double minus “–” infront of “server”)

Notes:

  • The above assume you are running these commands from a Windows machine.
  • You can view the configuration by running: vicfg-snmp –server <ESXi_ip> -s

Further Reading


Comments 2

Leave a Reply

Your email address will not be published. Required fields are marked *