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

EEM Scripting

zs9362
Level 1
Level 1

Has any deployed a EEM script that extends the delay times for tracked objects beyond the Cisco 180 sec max?  See attachment for details. Not experience at EEM scripting, just trying some things.  Any suggestions or link that might help?

1 Reply 1

ghostinthenet
Level 7
Level 7

You're most of the way there. Using a tracking stub will do what you need.

First, you define your IP SLA and tracking object, which you've already done, but add an additional track:

ip sla 10
 icmp-echo 2.2.2.2
 request-data-size 64
 tos 104
 timeout 1000
 frequency 2
ip sla schedule 10 life forever start-time now
!
track 10 ip sla 10 reachability
!
track 20 stub-object

Once this is done, you can run two EEM scripts with trigger delays to set the tracking stub's status based on the IP SLA tracking object.

event manager applet DELAY_UP
 event track 10 state up
 trigger delay 3600
 action 1.0 track set 20 state up
event manager applet DELAY_DOWN
 event track 10 state down
 trigger delay 10
 action 1.0 track set 20 state down

This will set the tracking stub based on the delays defined in the EEM applets. Reference the tracking stub instead of the IP SLA tracking object and you should be all set.