cancel
Showing results for 
Search instead for 
Did you mean: 
cancel

Who Me Too'd this topic

EEM SCRIPT WITH IPSLA

Gbgreat
Level 1
Level 1

Hi Guys,

 

Please i am trying to right an EEM script to execute a command if an IPSLA 11 is not reachable and IPSLA 12 is reachable.

 

This is what i have for now. Pls i need your help.

 

track 11 ip sla 11 reachability
delay down 8 up 10

 

track 12 ip sla 11 reachability
delay down 8 up 10


ip sla enable reaction-alerts


ip sla 11
icmp-echo 192.168.1.2 source-interface Ethernet1/0
ip sla schedule 11 life forever start-time now


ip sla 12
icmp-echo 192.168.2.2 source-interface Ethernet1/1
ip sla schedule 12 life forever start-time now


ip sla reaction-configuration 11 react timeout threshold-type immediate
ip sla reaction-configuration 12 react timeout threshold-type immediate

 

event manager applet XXDC_DOWN
event syslog pattern "ip sla 11 reachability Up->Down"
action 1.0 cli command "enable"
action 1.1 cli command "config t"
action 1.2 cli command "router eigrp 1"
action 1.3 cli command "no passive-interface Tunnel2"
action 1.5 syslog msg "End of EEM"


event manager applet XXDC_UP
event syslog pattern "ip sla 11 reachability Down->Up"
action 1.0 cli command "enable"
action 1.1 cli command "config t"
action 1.2 cli command "router eigrp 1"
action 1.4 cli command "passive-interface Tunnel2"
action 1.5 syslog msg "End of EEM"

Who Me Too'd this topic