Goodday I've a BGP failover proble with EEM.
I've a track icmp object - It's a ISP BGP peer
track 2 ip sla 2 reachability
ip sla 2
icmp-echo 10.10.10.9 source-interface FastEthernet0/0/0
frequency 5
router bgp 65003
no bgp fast-external-fallover
bgp log-neighbor-changes
neighbor 10.10.10.9 remote-as 65001
neighbor 172.16.1.1 remote-as 65002
!
address-family ipv4
*****
neighbor 10.10.10.9 activate
neighbor 10.10.10.9 soft-reconfiguration inbound
neighbor 172.16.1.1 activate
neighbor 172.16.1.1 soft-reconfiguration inbound
exit-address-family
event manager applet BGP_ISP_1
event track 2 state down
action 2.0 cli command "enable"
action 2.1 cli command "config t"
action 2.2 cli command "router bgp 65003"
action 2.3 cli command "neighbor 10.10.10.9 shutdown"
event manager applet BGP_ISP_1_UP
event track 2 state up
action 2.0 cli command "enable"
action 2.1 cli command "config t"
action 2.2 cli command "router bgp 65003"
action 2.3 cli command "no neighbor 10.10.10.9 shutdown"
So, when 1 ping fails to ISP_1, eem automatically drops neighborship to ISP_1, but when ISP_1 comes back eem should again activate ISP neighbor, but it didnt do it and in configuration i have
****
router bgp 65003
neighbor 10.10.10.9 shutdown
****
Here is history eem
6 7 Actv abort Wed Apr24 02:01:18 2013 track applet: BGP_ISP_1_UP
7 6 Actv abort Wed Apr24 02:01:13 2013 track applet: BGP_ISP_1
I think problem is in ip sla? May be i should change frequency and number of retries?