6.5.1

Table Of Contents
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 44
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.
2 Congure SNMP Authentication and Privacy Protocols on page 44
SNMP v3 optionally supports authentication and privacy protocols.
3 Congure SNMP Users on page 45
You can congure up to ve users who can access SNMP v3 information. User names must be no more
than 32 characters long.
4 Congure SNMP v3 Targets on page 45
Congure SNMP v3 targets to allow the SNMP agent to send SNMP v3 traps.
Chapter 4 Using the Appliance Shell to Configure the vCenter Server Appliance
VMware, Inc. 43