[c-nsp] Scheduled EEM

Clyde Wildes cwildes at progrizon.com
Sat Jul 21 10:13:57 EDT 2012


Mohammad,

You are using two components that provide the same functionality which is to
schedule work do be done in the future based on a CRON timer spec:
1. the IOS kron command
2. the Embedded Event Manager (EEM)

Use one or the other but not both.

The CRON spec that you specified for the Embedded Event Manager timer of "*
* * * *" says to run the EEM policy once per minute forever. If you want to
cause the EEM policy to run once every 5 minutes beginning on the hour use a
CRON spec of "0/5 * * * *".

The CRON Expression section at http://en.wikipedia.org/wiki/Cron provides a
good overview of CRON specs.

Thanks,

Clyde

-----Original Message-----
From: cisco-nsp-bounces at puck.nether.net
[mailto:cisco-nsp-bounces at puck.nether.net] On Behalf Of Mohammad Khalil
Sent: Friday, July 20, 2012 4:21 PM
To: cisco-nsp at puck.nether.net
Subject: [c-nsp] Scheduled EEM


Hi man , I have a question
I want to do a command one time at a specific time I mean , for example
after 5 min i will add a route after 10 min i will add another route and
remove the older one and so

I have configured the below , but it keep running 

PE1#sh run | sec event manager
event manager applet MSSK
 event timer cron name KRON cron-entry "* * * * *"
 action 1.0 cli command "enable"
 action 1.1 cli command "configure terminal"
 action 1.2 cli command "interface fastethernet0/0"
 action 1.3 cli command "shutdown"

kron occurrence KRON in 5 oneshot

BR,
Mohammad 		 	   		  
_______________________________________________
cisco-nsp mailing list  cisco-nsp at puck.nether.net
https://puck.nether.net/mailman/listinfo/cisco-nsp
archive at http://puck.nether.net/pipermail/cisco-nsp/



More information about the cisco-nsp mailing list