Time for action – set up SNMP access on an ESXi 4 server
Go to Start , click on Run … and enter:
cmd
Click on Ok.
Go to the directory where you installed the vSphere CLI:
cd C:\Program Files\VMware\ VMware vSphere Client\bin
Change the community of the ESXi host (change the IP and user credentials):
vicfg-snmp.pl –server esxhost –username root –password rootpwd -c public
Enable the SNMP agent on the server:
vicfg-snmp.pl –server esxhost –username root –password rootpwd -E
The following message will confirm that the agent has been enabled:
What just happened?
You just configured and enabled the SNMP agent on a VMware ESXi 4 server using the vShpere CLI.
Set up SNMP access to VMware ESX 3.5
The SNMP access on a VMware ESX 3.5 system differs in that it comes with the NET-SNMP agent included with most Linux distributions. You will need to edit the SNMP configuration file and allow the SNMP traffic to go through the firewall. Let's look at how you can achieve this.