Sunday, January 5, 2014

Enable SNMP traps on ESXi 5

--Following commands are for vSphere CLI -- NOT Power CLI--

specify community string/name
vicfg-snmp.pl --server esxi-1 --username root --password 123456 -c CommunityName

specify target
vicfg-snmp.pl --server esxi-1 --username root --password 123456 -t 10.10.10.1@161/CommunityName

enable
vicfg-snmp.pl --server esxi-1 --username root --password 123456 --enable

test
vicfg-snmp.pl --server esxi-1 --username root --password 123456 --test