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

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. And see here for current known issues.

New Member

Trying to do two EEM scripts, but they aren't working

So I need two EEM scripts one to remove an EIGRP network statement when an IP SLA reach-ability is down, and one to remove a EIGRP network statement when I lose an EIGRP neighbor. I started to configure something (pasted below), but they aren't activating for some reason when the event is triggered. Also is there a way to stop this from running for a "recovery time"? So on run this if the SLA goes down for 10 secs and doesn't come back. Your help is appreciated! thanks for your time.

This is what I have for the SLA.


ip sla 911
icmp-echo 10.0.0.252 source-interface GigabitEthernet0/0.911

track 911 ip sla 911 reachability

event manager applet .206-FAILOVER
event track 911 state down
action 10.0 syslog msg "FAILING DUE TO DOWN IP"
action 10.1 cli command "conf t"
action 10.2 cli command "router eigrp 911"
action 10.3 cli command "no network 10.0.0.0 0.0.0.255"

This is what I have for the EIGRP neighbor.

event manager applet EIGRP-NEIGHBOR-DOWN
event syslog pattern "EIGRP-IPv4 911: Neighbor 10.0.100.0 (GigabitEthernet0/0.912) is down"
action 10.0 syslog msg "EIGRP DOWN REMOVING NETWORK STATEMENT"
action 10.1 cli command "conf t"
action 10.2 cli command "router eigrp 911"
action 10.3 cli command "no network 10.0.100.0 0.0.0.255"

1 REPLY
Cisco Employee

You're missing the following

You're missing the following in both policies:

action 0.0 cli command "enable"

In terms of adding a hold down, have a look at the solution described in How To Introduce Large Delays In EEM Policies .

160
Views
0
Helpful
1
Replies