Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements
Webcast-Catalyst9k
New Member

EEM & IP SLA

Hi,

I'm trying to have EEM remove the "tacacs-server host <ip> single-connection" command when IP SLA reports the reachability of a specific ip address as Up->Down and then add the command again once IP SLA reports the ip address as Down->Up

This is what I currently have but it does not work properly

ip sla 1
icmp-echo 192.168.10.254 source-ip 10.127.223.33
ip sla schedule 1 life forever start-time now

track 1 rtr 1 reachability

event manager applet REMOVE_TACACS_SERVER
event syslog pattern "1 rtr 1 reachability Up->Down"
action 0.5 cli command "enable"
action 1.0 cli command "conf t"
action 1.5 cli command "no tacacs-server host 10.127.244.11 single-connection"
action 2.0 cli command "end"


event manager applet ADD_TACACS_SERVER
event syslog pattern "1 rtr 1 reachability Down->Up"
action 0.5 cli command "enable"
action 1.0 cli command "conf t"
action 1.5 cli command "tacacs-server host 10.127.244.11 single-connection"
action 2.0 cli command "end"

The problem is that if the time between "Up->Down" & "Down->Up" is only a few seconds (due to interface flaps for instance) the commands get issued but some are left out entirely.

Would it be beter to add a delay to IP SLA or the the EEM commands being issued?

Thats if this is the real issue at all.

Any advice would be appreciated

Johan

1 ACCEPTED SOLUTION

Accepted Solutions
Cisco Employee

EEM & IP SLA

Add a delay to the track.  Consider doing a delay up and/or delay down under the track configuration submode.  For example:

track 1 rtr 1 reachability

delay up 30

2 REPLIES
Cisco Employee

EEM & IP SLA

Add a delay to the track.  Consider doing a delay up and/or delay down under the track configuration submode.  For example:

track 1 rtr 1 reachability

delay up 30

New Member

EEM & IP SLA

Hi,

I've done this and it works great.

525
Views
0
Helpful
2
Replies
CreatePlease to create content