cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1404
Views
0
Helpful
3
Replies

Customized OSPF SNMP trap

sharlino
Level 1
Level 1

Hello! I have a OSPF-5-ADJCHG: Process 1, Nbr 2.2.2.2 on FastEthernet0/1 from LOADING to FULL, Loading Done syslog message. I want to include FastEthernet0/1 interface description in standard OSPF SNMP trap (one from OSPF-TRAP-MIB). In other words i want to add a variable (interface description) to ospfNbrStateChange event. Is it possible with EEM ? If yes, please point me to documentation/examples. Any other help will be appreciated! Thank you!

3 Replies 3

Joe Clarke
Cisco Employee
Cisco Employee

Yes, it is possible given your version of IOS.  See this document:

 

https://supportforums.cisco.com/document/44771/how-send-customized-trap-using-eem

 

It walks through how to send a customized trap with your own varbinds.  You'd want to follow the example of sending an existing trap.

Thank you for the answer, Joseph. I've seen that link.  Basically, OSPF trap contains 5 variables: router ID (one that generate trap), neighbor IP address, neighbor address less index, neighbor router ID and neighbor state. What i didn't get is how i can "create" trap variable containing OSPF neighbor IP address when it goes to DOWN state?

You now have complete control over that trap.  If you want it to resemble the built-in trap and simply insert a new varbind, then you will have to extract all the other varbind information from the router and recreate each of the original varbinds.  You cannot simply extend the existing trap.  However, you can get all of that info from either the syslog or trap being generated (depending on your desired event detector).