How to configure SNMP Service in VMWARE VCenter vSphere ESXi Server.
1. Start ssh service on your vSphere
In the vsphere Client
Go to – > esxserver 4.1 ->Configuration->Security Profile
Properties -> SSH – > Options – > Start
2. Find and edit the SNMP Config
Using Putty tool login to the ESXi servers remote console.
edit snmp.xml
#vi /etc/vmware/snmp.xml
Replace the config with the following entries
<config> <snmpSettings> <enable>true</enable> <port>161</port> <EnvEventSource>indications</EnvEventSource> <loglevel>info</loglevel> <communities>public</communities> <syscontact>Contact Name</syscontact> <syslocation>Server Rack</syslocation> <largestorage>true</largestorage> <engineid>00000063000000a100000000</engineid> </snmpSettings> </config>
Save the settings
Restart hostd service
/etc/init.d/hostd restart
Now Stop the ssh service
Go to esxserver4.1 ->Configuration->Security Profile
Properties -> SSH – > Options – > Stop