Jul 27

Enable SNMP Polling on an ESXi host

When using a third party network monitoring program (like Solarwinds Orion) you need to enable SNMP on your ESXi hosts. Setting up SNMP is pretty simple to do using vicfg-snmp on the VMware Management Assistant (vMA).

If the host is set up in FastPass, set the target ESXi.
$ vifptarget -s <Name/IP of ESXi host>

If the host is not set up in FastPass then –server, –username, and –password options can be used with vicfg-snmp.

To view the current SNMP configuration run.
$ vicfg-snmp -s

Current SNMP agent settings:
Enabled : 0
UDP port : 161

Communities :

Notification targets :

SNMP is not enabled and no community is set.

To set the community string:
$ vicfg-snmp -c <Community String>

Then enable SNMP
$ vicfg-snmp -E

The ESXi server will now respond to SNMP polling.
$ vicfg-snmp -s

Current SNMP agent settings:
Enabled : 1
UDP port : 161

Communities :

Notification targets :

About the author


Hersey Cartwright is an IT professional with extensive experience designing, implementing, managing, and supporting technologies that improve business processes. Hersey is Solutions Architect for SimpliVity covering Virginia, Washington DC, and Maryland. He holds the VMware Certified Design Expert (VCDX-DV #128) certification. Hersey actively participates in the VMware community and was awarded the VMware vExpert title in 2016, 2015, 2014, 2013, and 2012. He enjoys working with, teaching, and writing about virtualization and other data center technologies. Follow Hersey on Twitter @herseyc

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

two + twenty =