-
VCSA – Vcenter appliance 7 section added on 15-FEB-2021
-
ESXI 6.5 section added on 26-SEP-2017 / 31-MAY-2018
-
Howto enable SNMP on VCSA 7
Login to VCSA using SSH client (putty or likewise with ROOT access) & issue following commands
#check SNMP current status snmp.get # now enable SNMP Community string & other details, modify as per need snmp.set --communities public snmp.set --syscontact aacableathotmaildotcom snmp.set --syslocation "Karachi NOC, PK" # ENABLE SNMP SERVICE NOW snmp.enable
-
Howto enable SNMP on ESXi 6.5
To enable SNMP on ESXI 6.5 , First start the SNMP service via web client, then SSH to the esxi server & issue following command [change the public with your own snmp string]
esxcli system snmp set --communities public esxcli system snmp set --enable true esxcli network firewall ruleset set --ruleset-id snmp --allowed-all true esxcli network firewall ruleset set --ruleset-id snmp --enabled true /etc/init.d/snmpd restart
-
Howto enable SNMP on ESXi 5 using Windows Vsphere CLi commands
First enable SSH service
You can read following article on howto enable ssh using vsphere client.
http://www.thomasmaurer.ch/2011/08/enable-ssh-on-esxi-5-via-vsphere-client/
Now using vSphere CLI [via windows], type
vicfg-snmp.pl -server 10.0.0.1 -username username -password mypass -c zaibsnmp ###(you can change zaibsnmp to any name you like for the community name) vicfg-snmp.pl -server 10.0.0.1 -username root -password mypass -enable
& you will see
Enabling agent…
Complete.
Regard’s
Syed Jahanzaib