03-03-2015 10:22 AM
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!
03-04-2015 12:12 PM
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.
03-05-2015 09:46 PM
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?
03-09-2015 07:26 AM
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).
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide