6.5.1

Table Of Contents
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 --v3targets command to set up the SNMP v3 target.
For example, run the following command:
snmp.set --v3targets hostname@port/userid/secLevel/trap
The parameters in the command are as follows.
Parameter Description
hostname Replace with the host name or IP address of the management system that receives the traps.
port Replace with the port on the management system that receives the traps. If you do not specify a port,
the default port, 161, is used.
userid Replace with the user name.
secLevel
Replace with either none, auth, or priv to indicate the level of authentication and privacy you have
congured. Use auth if you have congured authentication only, priv if you have congured both
authentication and privacy, and none if you have congured neither.
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 the SNMP Agent to Filter Notifications
You can congure the vCenter Server Appliance SNMP agent to lter out notications if you do not want
your SNMP management software to receive those notications.
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 --notraps command to lter traps.
n
To lter specic traps, run the following command:
snmp.set --notraps oid_list
Here, oid_list is a list of object IDs for the traps to lter, separated by commas. This list replaces any
object IDs that were previously specied using this command.
n
To clear all trap lters, run the following command:
snmp.set --notraps reset
3 (Optional) If the SNMP agent is not enabled, enable it by running the snmp.enable command.
The traps identied by the specied object IDs are ltered out of the output of the SNMP agent, and are not
sent to SNMP management software.
vCenter Server Appliance Configuration
46 VMware, Inc.