the ESXI5 integrated SNMP agent cannot install the full SNMP service. Enable the SNMP agent to use the VMware vSphere CLI command line. After opening, you can use the Monitoring software to query SNMP -based host information.
1: After successfully installing the vshpere CLI , you can enable it to turn on the VMware SNMP service .
1.c:\program Files (x86) \vmware\vmware vSphere cli\bin>vicfg-snmp.pl--server 96.0.0.237--username root--password 123456789-C Public * * * Set SNMP address word: public***
Changing Community list To:public ...
Complete.
2.c:\program Files (x86) \vmware\vmware vSphere cli\bin>vicfg-snmp.pl--server 96.0.0.237--username root--password 123456789--enable * * * * allow SNMP function to be turned on * *
Enabling Agent ...
Complete.
3.c:\program Files (x86) \vmware\vmware vSphere cli\bin>vicfg-snmp.pl--server 96.0.0.237--username root--password 123456789-S * * * Query ESXi host SNMP Status * * *
Current SNMP Agent Settings:
Enabled:1
UDP port:161
Communities:
Public
Notification Targets:
Options:
Enveventsource=indications
engineid=00000063000000a100000000
Loglevel=info
2: start snmp via vcenter, everything is OK.
Open ESXi5 Firewall allows SNMP protocol
Select a virtual machine ESXi5 Host - configuration - Security profile - firewall - properties - check "SNMP Server"- Firewall - check Allow any IP connections.
ESXi 5.1 Enable and configure SNMP