For When You Can't Have The Real Thing
[ start | index | login ]
start > VMware > ESXi > 5.1 > Enable SNMP

Enable SNMP

Created by dave. Last edited by dave, 4 years and 110 days ago. Viewed 2,037 times. #4
[diff] [history] [edit] [rdf]


I need SNMP access to an ESXi host.


  1. Enable ssh access to the snmp host.
  2. Enable the v1/v2c community:
    esxcli system snmp set --communities public
  3. Ensure the system will start snmpd at boot time:
    esxcli system snmp set --enable true
  4. Start the service:
    /etc/init.d/snmpd start

This works through at least ESXi 6.7 (but not on v4 or previous).

It died

On 6.7 (no updates), the snmpd will die after a while for unknown reasons. The "correct" fix is to move to a more recent update (I think U1 has the fix for this). However if this isn't immediately practical, you can bump the service:

$ ssh root@my-esxi-04 /etc/init.d/snmpd restart
no comments | post comment
This is a collection of techical information, much of it learned the hard way. Consider it a lab book or a /info directory. I doubt much of it will be of use to anyone else.

Useful: | Copyright 2000-2002 Matthias L. Jugel and Stephan J. Schmidt