Abstract
Embedded Event Manager (EEM) is a powerful tool integrated with Cisco IOS Software for system management from within the device itself. EEM offers the ability to monitor events and take informational, corrective, or any desired action when the monitored events occur or when a threshold is reached.
This document helps in getting output of various troubleshooting commands when EIGRP neighbour flaps through EEM script.
Prerequisite
Knowledge of EIGRP and working of EEM script.
Configuration
Step 1:telnet the router.
IMPORTANT: console access is not reliable and will miss characters when copy/pasting, telnet/ssh using TCP will take care that all characters are received.
Step 2: Go in enable mode
Step 3: EEM Configuration to register the script
conf t
event manager session cli username "{username}"
event manager applet EIGRP_TROUBLESHOOT
event syslog pattern "holding time expired"
action 1.1 cli command "en"
action 2.1 cli command "ping [IP Address of the EIGRP Neighbor] repeat 3 df"
action 2.2 syslog priority debugging msg "cli: $_cli_result"
action 3.1 cli command "debug eigrp packets hello"
action 3.2 cli command "show ip EIGRP interface"
action 3.3 syslog priority debugging msg "cli: $_cli_result"
action 4.1 cli command "ping [IP Address of the EIGRP Neighbor] repeat 3 df"
action 4.2 syslog priority debugging msg "cli: $_cli_result"
action 5.1 cli command "debug eigrp packets hello"
action 5.2 cli command "show ip EIGRP interface"
action 5.3 syslog priority debugging msg "cli: $_cli_result"
action 6.1 cli command "show ip EIGRP traffic"
action 6.2 syslog priority debugging msg "cli: $_cli_result"
action 7.0 cli command "un all"
Step 4: show logging
References