Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 

EEM Script To Get EIGRP verification commands when the neighbors flap

     
    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
    Version history
    Revision #:
    2 of 2
    Last update:
    ‎08-24-2017 12:49 AM
    Updated by:
     
    Labels (1)
    Contributors
    Comments
    New Member

    I am following this guide to troubleshoot an eigrp flap that we have. In my case the eigrp neighbor is in a GRE/IPSEC tunnel so instead of the eigrp neighbor interface I am pinging the ip address of the tunnel source interface of the neighbor to identify if my provider is dropping packets.

    Testing toward a non existing ip to simulate that the provider is dropping packet I get none of the output from $_cli_result so not sure how to proceed from there.

    Best Regards

    Jean Louis