Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. If you'd prefer to explore, try our test area to get started. And see here for current known issues.

New Member

EEM Scripting

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?

  • EEM Scripting
1 REPLY

You're most of the way there.

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.

 

236
Views
0
Helpful
1
Replies