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

EEM Timer ED cron applet help

samson.martinez
Level 1
Level 1

Hello,

I have two IOS commands that I'd like to trigger once a day using Cisco's EEM solution. Per Cisco, the Cisco ASR 1001 that I'm using for our VPN solution is capable of using this solution but TAC does not support the scripting aspect and they referred me to this community.

Basically, I want to run these two commands every day at 12:00 noon CDT:

clear crypto session remote 202.50.231.52
clear crypto session remote 200.4.249.174

There are no visible events occurring that can be used as triggers so I simply would like to tell the router to run these commands each day at noon.

One, can this be done and, two (if yes), can I get some scripting assistance? 

Unfortunately, I'm not yet versed in scripting so looking for any help I can get.

Thanks in advance!

-Samson

1 Accepted Solution

Accepted Solutions

Joe Clarke
Cisco Employee
Cisco Employee

This should do it for you:

event manager applet clear-crypt-sessions

event timer cron cron-entry "0 12 * * *"

action 1.0 cli command "enable"

action 2.0 cli command "clear crypto session remote 202.50.231.52"

action 3.0 cli command "clear crypto session remote 200.4.249.174"

View solution in original post

1 Reply 1

Joe Clarke
Cisco Employee
Cisco Employee

This should do it for you:

event manager applet clear-crypt-sessions

event timer cron cron-entry "0 12 * * *"

action 1.0 cli command "enable"

action 2.0 cli command "clear crypto session remote 202.50.231.52"

action 3.0 cli command "clear crypto session remote 200.4.249.174"

Review Cisco Networking for a $25 gift card