To configure the ESXi SNMP Agent:
- Open an SSH session to the ESXi host.
- Run this command to show the current SNMP config:
esxcli system snmp get
- Set the SNMP parameters of the ESXi Host:
esxcli system snmp set --communities public,eastnoc,westnoc esxcli system snmp set --syscontact user esxcli system snmp set --syslocation "location, world"
- Enable the SNMP Agent:
esxcli system snmp set --enable true