05-25-2011 09:09 AM
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
Solved! Go to Solution.
05-26-2011 01:20 AM
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"
05-26-2011 01:20 AM
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"
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide