How to enable SNMP in vSphere ESXi 6.0

First, you have to enabled SSH access to your ESXi node. You can do that in Configuration > Security Profile > Services > SSH in vSphere.

Next, when SSH is enabled and you are able to login to your server with ssh root@esxi-address, type the following commands to enable a SNMP community named RO_community with your appropriate LOCATION and CONTACT.

    esxcli system snmp set -r
    esxcli system snmp set -c RO_community
    esxcli system snmp set -p 161
    esxcli system snmp set -L "Warszawa, Polska"
    esxcli system snmp set -C jakistamadres@mail.com
    esxcli system snmp set -e yes

Now all done! Next step is add your host to your favourite SNMP powered monitoring tool (like LibreNMS or Zabbix)

Leave a Reply