snmp-server view view_name 1.3 included
snmp-server community public RW
snmp-server group groupv2c v2c read view_name
snmp-server group groupV3auth v3 auth read view_name
snmp-server group groupV3priv v3 priv read view_name
snmp-server group groupV3noauth v3 noauth read view_name
!
This example shows how to verify the configuration SNMP trap notification recipients host, the recipients of
SNMP trap notifications. The output displays the following information:
•
IP address of the configured notification host
•
UDP port where SNMP notification messages are sent
•
Type of trap configured
•
Security level of the configured user
•
Security model configured
config
show snmp host
Notification host: 10.50.32.170 udp-port: 2345 type: trap
user: userV3auth security model: v3 auth
Notification host: 10.50.32.170 udp-port: 2345 type: trap
user: userV3noauth security model: v3 noauth
Notification host: 10.50.32.170 udp-port: 2345 type: trap
user: userV3priv security model: v3 priv
Notification host: 10.50.32.170 udp-port: 2345 type: trap
user: userv2c security model: v2c
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
System Management Configuration Guide for Cisco NCS 5000 Series Routers, IOS XR Release 6.2.x
35
Implementing SNMP
Setting the Contact, Location, and Serial Number of the SNMP Agent