6.5.1

Table Of Contents
Here, port is the port the SNMP agent uses to listen for polling requests.
N The port you specify must not be already in use by other services. Use IP addresses from the
dynamic range, port 49152 and up.
2 (Optional) If the ESXi SNMP agent is not enabled, run the following command:
esxcli system snmp set --enable true
Configure ESXi for SNMPv1 and SNMPv2c
When you congure the ESXi SNMP agent for SNMPv1 and SNMPv2c, the agent supports sending
notications and receiving GET requests.
In SNMPv1 and SNMPv2c, authentication is performed by using community strings. Community strings are
namespaces which contain one or more managed objects. This form of authentication does not secure the
communication between the SNMP agent and the management system. To secure the SNMP communication
in your environment, use SNMPv3.
Procedure
1 Congure SNMP Communities on page 154
To enable the ESXi SNMP agent to send and receive SNMP v1 and v2c messages, you must congure
at least one community for the agent.
2 Congure the SNMP Agent to Send SNMP v1 or v2c Notications on page 155
You can use the ESXi SNMP agent to send virtual machine and environmental notications to
management systems.
Configure SNMP Communities
To enable the ESXi SNMP agent to send and receive SNMP v1 and v2c messages, you must congure at least
one community for the agent.
An SNMP community denes a group of devices and management systems. Only devices and management
systems that are members of the same community can exchange SNMP messages. A device or management
system can be a member of multiple communities.
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
u
Run the esxcli system snmp set command with the --communities option to congure an SNMP
community.
For example, to congure public, East, and West network operation centers communities, run the
following command:
esxcli system snmp set --communities public,eastnoc,westnoc
Each time you specify a community with this command, the seings you specify overwrite the previous
conguration. To specify multiple communities, separate the community names with a comma.
vSphere Monitoring and Performance
154 VMware, Inc.