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"