Configure SNMP v3 trap Notify
Network Requirements
- Device is the SNMP Agent device and the route with the NMS server is reachable.
- NMS monitors Device via SNMPv3. When Device fails or has something wrong, it actively reports to NMS.
Network Topology
![Networking of configuring SNMPv3 trap notify](/storage/images/Document/Maipu/monitoring/config-snmp-v3-trap-notify.jpg)
Figure 8-5 Networking of configuring SNMPv3 trap notify
Configuration Steps
Step 1: Configure the IP address of the interface. (Omitted).
Step 2: Enable the SNMP proxy on Device and configure the SNMPv3 basic information.
#Configure Device.
Enable SNMP proxy; configure the node view name as default, and you can access all objects in the access node 1.3.6.1.
Device#configure terminal
Device(config)#snmp-server start
Device(config)#snmp-server view default 1.3.6.1 include
|
Configure user group as public, security level as authpriv, read-write view and notify view all use default; configure user name as public, belonging to user group public, authentication algorithm as MD5, authentication password as Admin, encryption algorithm as DES, and encryption password as Admin.
Device(config)#snmp-server group public v3 authpriv read default write default notify default
Device(config)#snmp-server user public public v3 auth md5 Admin encrypt des Admin
|
Configure Device to send all Trap information.
Device(config)#snmp-server enable traps
|
Step 3: Configure Device to send SNMP v3 trap packet to NMS.
#Configure Device.
Configure SNMP v3 trap user name as public on NSM, and the security level as authpriv.
Device(config)#snmp-server host 129.255.140.1 version 3 user public authpriv
|
Step 4: Configure NMS.
#On NMS, it is necessary to configure the user name and password consistent with SNMP proxy, run network management software and monitor UDP 162 port number.
Step 5: Check the result.
#NMS can receive various kinds of Trap information from Device, such as route change caused by Device interface up and down, network flap. Device will generate corresponding Trap information and send it to NMS.