First, make sure you have enabled SSH access to your ESXi node.

You can do that in Configuration > Security Profile > Services > SSH.

When SSH is enabled, login to your server with ssh root@esxi-address and type the following commands to enable a SNMP community named myc0mmun1ty with your appropriate Location and Contact.

  1. esxcli system snmp set -r
  2. esxcli system snmp set -c myc0mmun1ty
  3. esxcli system snmp set -p 161
  4. esxcli system snmp set -L “Stockholm, Sweden”
  5. esxcli system snmp set -C [email protected]
  6. esxcli system snmp set -e yes