VMware Cloud Community
sluggomagoo
Contributor
Contributor

esxcfg-snmp.pl SNMP TEST TRAP String

Hi I'm trying to get a alert coded in our alerting system and I'm having a difficulty finding the test trap string when I'm using

perl esxcfg-snmp.pl --server SERVERNAME --username root --password ROOT_PASSWORDT (send test snmp trap). I'm specifing an ESXI 5.0 HOST.

Can someone show me what the esxcfg-snmp.pl SNMP TEST TRAP String looks like?

Reply
0 Kudos
2 Replies
npadmani
Virtuoso
Virtuoso

  • Specify the communities and trap targets with this command:

    vicfg-snmp.pl --server hostname --username username --password password -t hostname@port -c community


    Note: In ESX 3.5, you may need to use vicfg-snmp.pl --server hostname --username username --password password -t hostname@port/community.

    Example: To send SNMP traps from the host host.example.com to port 162 on target.example.com, using the public community, use this command:

    vicfg-snmp.pl --server host.example.com --username root --password password -t target.example.com@162 -c public

    For ESXi 5.0:

    vicfg-snmp.pl --server host.example.com --username root --password password -t target.example.com@162/community

    Note: To prevent clear text display of the user password, remove the --password password portion. You are then prompted to enter the password, and the entry is hidden.

Ref:

VMware KB: Configuring SNMP Traps in ESXi/ESX

Narendra Padmani VCIX6-DCV | VCIX7-CMA | VCI | TOGAF 9 Certified
Reply
0 Kudos
sluggomagoo
Contributor
Contributor

Thanks but, that's not what I'm asking for. I'm looking for the trap results.

Reply
0 Kudos