VMware Cloud Community
RajeevVCP4
Expert
Expert

snmp configuration in vcenter server appliances

I am looking command line ( full sayntax) for configuring snmp in vc appliances

Rajeev Chauhan
VCIX-DCV6.5/VSAN/VXRAIL
Please mark help full or correct if my answer is use full for you
2 Replies
parmarr
VMware Employee
VMware Employee

Hello,

Please see the link below for details:

https://docs.vmware.com/en/VMware-vSphere/6.5/com.vmware.vsphere.vcsa.doc/GUID-74E815A2-62BE-4B30-91...

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

Hi ,

Please use the following steps to configure snmp in vcsa.

1. If the ssh connection to vcsa starts the shell mode first switch to appliance shell using the command 'applaincesh'. Enter the password when prompted.

2. The command 'snmp.set --help' will give all options that can be used to configure snmp.

A basic approach to enable snmp in v1/v2c mode is as under :

1. snmp.enable

2.  snmp.set --communities <desired community string>

Apart from this any additional configuration can be done using -

Command> snmp.set --help

Usage:

        snmp.set [--help/-h] --notraps STR --targets STR --users STR

         --syscontact STR --port INT --communities STR --loglevel STR

         --privacy ENUM --engineid STR --remoteusers STR

         --syslocation STR --authentication ENUM --v3targets STR