If you configure the ESXi embedded SNMP agent for polling, it can listen for and respond to requests from SNMP management client systems, such as GET requests.

By default, the embedded SNMP agent listens on UDP port 161 for polling requests from management systems. You can use the vicfg-snmp command to configure an alternative port. To avoid conflicting with other services, use a UDP port that is not defined in /etc/services.

SNMP configuration for ESXi requires the vSphere Command-Line Interface. See Getting Started with vSphere Command-Line Interfaces.


From the vSphere CLI, type vicfg-snmp.pl --server hostname --username username --password password -p port.

Replace port with the port for the embedded SNMP agent to use for listening for polling requests.


(Optional) If the SNMP agent is not enabled, enable it by typing vicfg-snmp.pl --server hostname --username username --password password --enable.