12-01-2015 04:09 AM - edited 03-08-2019 02:54 AM
Hi All,
I need to make auto failover for our Internet links which are at different locations. i was trying to run IP Sla with Track & EEM, IP SLA and track are working fine but EEM is working as expected, i am pasting the config below and not getting what is the wrong. Please help.
i am seeing the syslog messages but EEM is not working.
Version 12.2(50r)SYS3---6509--E in VSS mode
%TRACKING-SW1-5-STATE: 100 ip sla 10 reachability Up->Down
%TRACKING-SW1-5-STATE: 100 ip sla 10 reachability Down->Up
FIS-CHN-CORE-SW#sh ip sla summary
IPSLAs Latest Operation Summary
ID Type Destination Stats Return Last
(ms) Code Run
----------- ---------- --------------- ------ ---------- -----------------
*10 icmp-echo 8.8.8.8 RTT=4 OK 13 seconds ago
track 100 ip sla 10 reachability
delay down 30 up 30
event manager applet linkdown
event syslog pattern "100 rtr 10 reachability Up->Down"
action 1.0 cli command "enable"
action 2.0 cli command "conf t"
action 3.0 cli command "interface Gi1/2/40"
action 4.0 cli command "shutdown"
action 5.0 cli command "do wr"
event manager applet linkup
event syslog pattern "100 rtr 10 reachability Down->Up"
action 0.9 cli command "enable"
action 1.0 cli command "conf t"
action 1.1 cli command "interface Gi1/2/40"
action 1.2 cli command "no shutdown"
action 1.5 cli command "do wr"
And on another 6509--E IP SLA & Track are working but i am seeing the track syslog message. Any Idea why?
12-01-2015 12:24 PM
Hello
Looks like your have an incorrect event in your eem config, it should read
event manager applet linkdown
event Track 100 state down
action 1.0 cli command "enable"
action 2.0 cli command "conf t"
action 3.0 cli command "interface Gi1/2/40"
action 4.0 cli command "shutdown"
action 5.0 cli command "do wr"
event manager applet linkup
event Track 100 state up
action 0.9 cli command "enable"
action 1.0 cli command "conf t"
action 1.1 cli command "interface Gi1/2/40"
action 1.2 cli command "no shutdown"
action 1.5 cli command "do wr"
res
Paul
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide