6.5.1

Table Of Contents
As an alternative to conguring SNMP manually using esxcli commands, you can use host proles to
congure SNMP for an ESXi host. See the vSphere Host Proles documentation for more information.
N For information on conguring SNMP for ESXi 5.0 or earlier or ESX 4.1 or earlier, see the
documentation for the appropriate product version.
n
Congure the SNMP Agent for Polling on page 153
If you congure the ESXi SNMP agent for polling, it can listen for and respond to requests from SNMP
management client systems, such as GET, GETNEXT and GETBULK requests.
n
Congure ESXi for SNMPv1 and SNMPv2c on page 154
When you congure the ESXi SNMP agent for SNMPv1 and SNMPv2c, the agent supports sending
notications and receiving GET requests.
n
Congure ESXi for SNMP v3 on page 155
When you congure the ESXi SNMP agent for SNMPv3, the agent supports sending informs and
traps. SNMPv3 also provides stronger security than SNMPv1 or SNMPv2c, including key
authentication and encryption.
n
Congure the Source of Hardware Events Received by the SNMP Agent on page 160
You can congure the ESXi SNMP agent to receive hardware events either from IPMI sensors or CIM
indications.
n
Congure the SNMP Agent to Filter Notications on page 160
You can congure the ESXi SNMP agent to lter out notications if you don't want your SNMP
management software to receive those notications.
n
Congure SNMP Management Client Software on page 161
After you have congured a vCenter Server instance or an ESXi host to send traps, congure your
management client software to receive and interpret those traps.
Configure the SNMP Agent for Polling
If you congure the ESXi SNMP agent for polling, it can listen for and respond to requests from SNMP
management client systems, such as GET, GETNEXT and GETBULK requests.
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 command with the --port option to congure an
alternative port. To avoid conicting with other services, use a UDP port that is not dened
in /etc/services.
If you run 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.
Prerequisites
Congure the ESXi SNMP agent by using the ESXCLI commands. See Geing Started with vSphere Command-
Line Interfaces for more information on how to use ESXCLI.
Procedure
1
Run the esxcli system snmp set command with the --port option to congure the port.
For example, run the following command:
esxcli system snmp set --port port
Chapter 9 Monitoring Networked Devices with SNMP and vSphere
VMware, Inc. 153