How do I setup SNMP for VMware ESXi server?

11:26 PM

In order to perform enable SNMP from ESXi you need to ensure you load the VMware CLI tools onto the vSphere/vCenter box so that you can execute the commands listed below. Please note you can download these bunaries from VMware directly at the following URL:
http://www.vmware.com
You will need to register if you haven't used their site before to get at the download section.

In order to enable SNMP you will need the IP Address of the SNMP source you intent to allow traffic to. ESXi will only allow a single target (as tested at the time of this articles creation time) to be used for the SNMP configuration. To configure SNMP simply enter in the following commands:

vicfg-snmp.pl --server 1.2.3.%1 -c Z3nR3qu3st --username root --password ****
vicfg-snmp.pl --server 1.2.3.%1 -c Z3nR3qu3st -p 161 -t ZenossSNMPAddress@161/Z3nR3qu3st --username root --password ****
do vicfg-snmp.pl --server 1.2.3.%1 -E --username root --password ****
do vicfg-snmp.pl --server 1.2.3.%1 -s --username root --password ****
do vicfg-snmp.pl --server 1.2.3.%1 -T --username root --password ****

*NOTE*
Icon

Please note that the password in **** should be filled in with the password of the localized root login for the ESXi server in question.
If you have more than one server to perform enter in the following commands instead substituting the content in the parenthesis with the last octet of the servers you want to configure:

for %1 in (1 2 3 4 5) do vicfg-snmp.pl --server 1.2.3.%1 -c Z3nR3qu3st --username root --password ****
for %1 in (1 2 3 4 5) do vicfg-snmp.pl --server 1.2.3.%1 -c Z3nR3qu3st -p 161 -t ZenossSNMPAddress@161/Z3nR3qu3st --username root --password ****
for %1 in (1 2 3 4 5) do vicfg-snmp.pl --server 1.2.3.%1 -E --username root --password ****
for %1 in (1 2 3 4 5) do vicfg-snmp.pl --server 1.2.3.%1 -s --username root --password ****
for %1 in (1 2 3 4 5) do vicfg-snmp.pl --server 11.2.3.%1 -T --username root --password ****

For more information on this subject, please reference the following link:
http://kb.vmware.com/selfservice/microsites/search.do?cmd=displayKC&docType=kc&externalId=1008065&sliceId=1&docTypeID=DT_KB_1_1&dialogID=152643734&stateId=0%200%20152641980

You Might Also Like

0 comments

Contact Form

Name

Email *

Message *

Translate

Wikipedia

Search results