11-08-2011 09:38 AM - edited 03-04-2019 02:12 PM
We have p2p metro-ethernet link between a 65kVSS and N7k running eigrp..
I wanted to monitor this link and forward the traps to SNMP server in the event of failure..
N7k and 65k has many other eigrp peers..but I wanted to monitor only this particular peers over p2p link...
so decided to monitor this particular eigrp neighbhorship..
Can we use EEM and write an applet to match the nighbhor down on the syslog and then forward the log to snmp?
Log messages on N7k:
2011 Oct 23 13:17:37 NEXUS-1-DMZ %EIGRP-5-NBRCHANGE_DUAL: eigrp-1 [5158] (default-base) IP-EIGRP(0) 1: Neighbor 10.45.255.133 (Vlan777) is down: holding time expired
2011 Oct 23 13:03:44 NEXUS-1-DMZ %EIGRP-5-NBRCHANGE_DUAL: eigrp-1 [5158] (default-base) IP-EIGRP(0) 1: Neighbor 10.45.255.133 (Vlan777) is up: new adjacency
2011 Oct 23 13:05:14 NEXUS-1-DMZ %EIGRP-5-NBRCHANGE_DUAL: eigrp-1 [5158] (default-base) IP-EIGRP(0) 1: Neighbor 10.45.255.133 (Vlan777) is down: retry limit exceeded
2011 Oct 23 13:17:37 NEXUS-1-DMZ %EIGRP-5-NBRCHANGE_DUAL: eigrp-1 [5158] (default-base) IP-EIGRP(0) 1: Neighbor 10.45.255.133 (Vlan777) is down: holding time expired
2011 Oct 23 13:03:44 NEXUS-1-DMZ %EIGRP-5-NBRCHANGE_DUAL: eigrp-1 [5158] (default-base) IP-EIGRP(0) 1: Neighbor 10.45.255.133 (Vlan777) is up: new adjacency
2011 Oct 23 13:05:14 NEXUS-1-DMZ %EIGRP-5-NBRCHANGE_DUAL: eigrp-1 [5158] (default-base) IP-EIGRP(0) 1: Neighbor 10.45.255.133 (Vlan777) is down: retry limit exceeded
So I planned to write an applet which will forward an snmp trap for Neighbor 10.45.255.133 (Vlan777) is down:
Does this idea sound good..Can you give me some tips in achieving this ?
event manager applet P2P_Link_Failure <Creates and registers the applet with EEM>
event syslog pattern "Neighbor 10.45.255.133 (Vlan777) is down" <Configures syslog event detector to match the error message>
action 1.0 snmp-trap strdata "Neighbor 10.45.255.133 (Vlan777) is down"
action 1.1 syslog priority Emergency msg "P2P Link Failure"
11-09-2011 11:00 PM
Hi,
Sounds good, haveyou tried to implement that ??
Other possible solution maybe to implement a ip sla reachability and track that IP SLA in applet.
Regards,
Smitesh
11-11-2011 07:53 AM
Hi
I implemented this and it sends message successfully to external syslog server...
But for the snmp server, we are still having an issue..
The issue is that we need to know what MIBs to turn ON on the server to recieve this trap..
11-12-2011 01:59 AM
Hi,
Check the below link, you may find something which you need
http://www.cisco.com/en/US/docs/ios-xml/ios/iproute_eigrp/configuration/12-4/EIGRP_MIB.html
HTH,
Smitesh
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