How to enable SNMP Client on ESX5

How to enable SNMP Client on ESX5

In this example I am assuming your detals as below but it will change according to your setup.

ESX Host IP is 192.168.1.10
Username root
Password P@ssw0rd
SNMP Server IP 192.168.1.100

Note:- on VMware support site is shows all commands as “vicfg-snmp” for SNMP you will not get this command as VCLI you will find in bin folder as vicfg-snmp.pl So change vicfg-snmp with vicfg-snmp.pl
1- Check the SNMP status

C:\Program Files (x86)\VMware\VMware vSphere CLI\bin>vicfg-snmp.pl –server 192.168.1.10 –username root –password P@ssw0rd –show

Current SNMP agent settings:
Enabled : 0
UDP port : 161

Communities :

Notification targets :

Options :
EnvEventSource=indications

2- Set the SNMP Community

C:\Program Files (x86)\VMware\VMware vSphere CLI\bin>vicfg-snmp.pl –server 192.168.1.10 –username root –password P@ssw0rd -c public, internal

3- Enable SNMP Client
C:\Program Files (x86)\VMware\VMware vSphere CLI\bin>vicfg-snmp.pl –server 192.168.1.10 –username root –password P@ssw0rd –enable

4- Set the target SNMP server
C:\Program Files (x86)\VMware\VMware vSphere CLI\bin>vicfg-snmp.pl –server 192.168.1.10 –username root –password P@ssw0rd -t 192.168.1.100@162/public

5- Test SNMP
C:\Program Files (x86)\VMware\VMware vSphere CLI\bin>vicfg-snmp.pl –server 192.168.1.10 –username root –password P@ssw0rd –test

Source Link

Leave a Comment