PurposeCommand or Action
Specifies SNMP trap notifications, the version of SNMP to
use, the security level of the notifications, and the recipient
(host) of the notifications.
snmp-server host address [traps] [version {1 | 2c | 3
[auth | noauth | priv]}] community-string [udp-port
port] [notification-type]
Example:
RP/0/RP0/CPU0:router(config)# snmp-server host
12.26.25.61 traps version 3
noauth userV3noauth
Step 4
Enables the sending of trap notifications and specifies the type
of trap notifications to be sent.
snmp-server traps [notification-type]
Example:
RP/0/RP0/CPU0:router(config)# snmp-server traps
bgp
Step 5
•
If a trap is not specified with the notification-type
argument, all supported trap notifications are enabled on
the router. To display which trap notifications are
available on your router, enter the snmp-server traps ?
command.
commit
Step 6
(Optional)
Displays information about the configured SNMP notification
recipient (host), port number, and security model.
show snmp host
Example:
RP/0/RSP0/CPU0:router# show snmp host
Step 7
Setting the Contact, Location, and Serial Number of the SNMP Agent
This task explains how to set the system contact string, system location string, and system serial number of
the SNMP agent.
The sequence in which you issue the snmp-server commands for this task does not matter.Note
SUMMARY STEPS
1.
configure
2.
(Optional) snmp-server contact system-contact-string
3.
(Optional) snmp-server location system-location
4.
(Optional) snmp-server chassis-id serial-number
5.
commit
Cisco ASR 9000 Series Aggregation Services Router System Management Configuration Guide, Release 5.1.x
368
Implementing SNMP
Setting the Contact, Location, and Serial Number of the SNMP Agent