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

Before you begin

SNMP configuration for ESXi requires the ESXCLI command set. See Getting Started with vSphere Command-Line Interfaces for more information on how to access ESXCLI.

About this task

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

If you use ESXCLI commands through vCLI, you must supply connection options that specify the target host and login credentials. If you use ESXCLI commands directly on a host using the ESXi Shell, you can use the commands as given without specifying connection options. For more information on connection options see vSphere Command-Line Interface Concepts and Examples.

Procedure

  1. Type esxcli system snmp set --port port.

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

  2. (Optional) : If the SNMP agent is not enabled, enable it by typing esxcli system snmp set --enable true.