Users Guide
40 Setup and Administration
a vicfg-snmp.pl --server <ESX_IP_addr> --username
root --password <password> -c <community name>
-p X –t <DMC_IP_Address>@162/<community name>
Where X represents an unused port. To find an unused port, check the
/etc/services
file for the port assignment for defined system services. Also,
to make sure that the port selected is not currently being used by any
application/service, run the following command on the ESX server:
netstat –a command
NOTE: Multiple IP addresses can be entered using a comma-separated list.
b
To enable VMWare SNMP service, run the following command:
vicfg-snmp.pl --server <ESX_IP_addr> --username
root --password <password>
-E
c
To view the configuration settings, run the following command:
vicfg-snmp.pl --server <ESX_IP_addr> --username
root --password <password>
-s
After modification, the configuration file looks like this:
<?xml version="1.0">
<config>
<snmpSettings>
<enable>true</enable>
<communities>public</communities>
<targets>143.166.152.248@162/public</targets>
<port>167</port>
</snmpSettings>
</config>
2
Stop the SNMP service if it is already running on your system by entering
the following command:
service snmpd stop
book.book Page 40 Monday, March 14, 2011 2:40 PM