kb

VMware | ESXi Host SNMP access v2c

Here I will describe how to enable SNMP v2c Access on a ESXi Host via esxcli Command Line Tool. 

–> See Install VMware vCLI at Redhat/Centos to check with Nagios

First you had to create a local user and password on each ESXi host which has the proper rights for snmp querys.

1.) Set Privacy Algorithm

esxcli --server HOSTNAME --username USERNAME --password 'PASSWORD' system snmp set --privacy AES128

2.) Set community name (in this example the community name is publicvm)

esxcli --server HOSTNAME --username USERNAME --password 'PASSWORD' system snmp set --communities publicvm

3.) Enable SNMP on Host

esxcli --server HOSTNAME --username USERNAME --password 'PASSWORD' system snmp set --enable yes

After those settings you are able to connect to your esxi host via snmpwalk