Syed Jahanzaib Personal Blog to Share Knowledge !

September 10, 2012

Howto enable SNMP on Vmware ESXI Server

Filed under: VMware Related — Tags: , , , — Syed Jahanzaib / Pinochio~:) @ 1:10 PM


  • 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) & issue following commands

#check SNMP current
status snmp.get
# now enable SNMP Community string & other details
snmp.set --communities MYCOMMUNITY
snmp.set --syscontact aacableathotmaildotcom
Command> snmp.set --syslocation "Karachi NOC, PK"
Command> snmp.enable

<hr />

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.

Now using vSphere CLI [via windows], type -server -username username -password mypass -c zaibsnmp
###(you can change zaibsnmp to any name you like for the community name) -server -username root -password mypass -enable

& you will see

Enabling agent…

Syed Jahanzaib

%d bloggers like this: