cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2380
Views
1
Helpful
1
Replies

IP SLA with Track and EEM

bhisham1984
Level 1
Level 1

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?

1 Reply 1

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


Please rate and mark as an accepted solution if you have found any of the information provided useful.
This then could assist others on these forums to find a valuable answer and broadens the community’s global network.

Kind Regards
Paul
Review Cisco Networking for a $25 gift card