6.0.1

Table Of Contents
2 Run the snmp.set --communities command to congure an SNMP community.
For example, to congure public, east, and west network operation center communities, run the
following command:
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.
Configure the SNMP Agent to Send v1 or v2c Notifications
You can use the vCenter Server Appliance SNMP agent to send virtual machine and environmental
notications to management systems.
To send SNMP v1 and v2c notications with the SNMP agent, you must congure the target, that is the
receiver, unicast address, community, and an optional port. If you do not specify a port, the SNMP agent
sends notications to UDP port 162 on the target management system by default.
Procedure
1 Access the appliance shell and log in as a user who has the administrator or super administrator role.
The default user with super administrator role is root.
2 Run the snmp.set --targets command:
snmp.set --targets target_address@port/community
Here target_address, port, and community are the address of the target system, the port number to send
the notications to, and the community name, respectively. The port value is optional. If you do not
specify a port, the default port,161, is used.
Each time you specify a target with this command, the seings you specify overwrite all previously
specied seings. To specify multiple targets, separate them with a comma.
For example, run the following command for conguring the targets 192.0.2.1@678/targetcommunity
and 2001:db8::1/anothercom:
snmp.set --targets 192.0.2.1@678/targetcommunity,2001:db8::1/anothercom
3 (Optional) If the SNMP agent is not enabled, enable it by running the snmp.enable command.
4 (Optional) To send a test trap to verify that the agent is congured correctly, run the snmp.test
command.
The agent sends a warmStart trap to the congured target.
Configure vCenter Server Appliance for SNMP v3
When you congure the SNMP agent for SNMP v3, the agent supports sending traps. SNMP v3 also
provides stronger security than v1 or v2c, including cryptographic authentication and encryption.
In vSphere 6.0 SNMP v3 informs are not supported. The vCenter Server Appliance supports only
notications such as v1/v2c traps and v3 traps with all security levels.
Procedure
1 Congure the SNMP Engine ID on page 39
Every SNMP v3 agent has an engine ID, which serves as a unique identier for the agent. The engine
ID is used with a hashing function to generate localized keys for authentication and encryption of
SNMP v3 messages.
vCenter Server Appliance Configuration
38 VMware, Inc.