VMware Cloud Community
emsifortyseven
Contributor
Contributor

SNMP community string for esxi 5.5

I have already setup community string on my esxi server. However, when i typed "esxcli system snmp get" to view/check configuration i just made, what appears in Community is different from what i setup. I used 5 characters for my community string but when i view config using command above, only 1 character appears which is "B".

Whan can i do is that normal?

Also, is snmp trap optional only? as far as i understand snmp trap purpose is to sent notif or alarm to monitoring system though i dont need to setup alarm.

Thanks.

Tags (1)
0 Kudos
2 Replies
parmarr
VMware Employee
VMware Employee

You can use the "esxcli system snmp test" command to check/correct the ESXi SNMP agent configuration if certain settings are unconfigured or incorrectly configured. For more information about use of this command, please see 2033528(https://kb.vmware.com/s/article/2033528).

You can also use the vmware blog which explains how to configure SNMP v1/v2c/v3. https://blogs.vmware.com/vsphere/2012/11/configuring-snmp-v1v2cv3-using-esxcli-5-1.html

Yes, traps are optional. To filter out some alerts, you can use the traps.

For example, to filter out coldStart (OID 1.3.6.1.4.1.6876.4.1.1.0) and warmStart (OID 1.3.6.1.4.1.6876.4.1.1.1) traps, type esxcli system snmp set --notraps 1.3.6.1.4.1.6876.4.1.1.0,1.3.6.1.4.1.6876.4.1.1.1

Sincerely, Rahul Parmar VMware Support Moderator
0 Kudos
santhoshBJ
Contributor
Contributor

Did you configure snmp via esxcli command ?

If yes, Does your community string have a special character such as "$" ?

Please try escaping special characters and that should work.

Example:

To set community string as B$xyz try the command esxcli system snmp set --communities B\$xyz . [USE \ TO ESCAPE SPECIAL CHARACTERS]

yes, SNMP trap is optional.