cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1473
Views
15
Helpful
12
Replies

EEM Cron-entry

Hi all, I have question about eem cron timer.

 

I configured event manager like this.

eem.png

What I understood is "0 9 * * *"  mean every 9 AM triggered.

But actually it triggered at 00:00AM

eem2.png

What am I wrong for this configuration??

1 Accepted Solution

Accepted Solutions

Hello,

 

the weird thing is that the script actually DOES run.

 

I see there is another script (TT) that runs at 9AM as well, albeit only on one day. Can you test running the script at 1 minute past 9AM ?

 

event manager applet Every9AM
event timer cron cron-entry "01 9 * * 0-6" maxrun 100
action 1 syslog msg "9AM Stamp"

 

 

View solution in original post

12 Replies 12

Georg Pauwen
VIP Master VIP Master
VIP Master

Hello,

 

what is the time on your device (show clock) ? The cron timer is directly related to that...

Thanks for reply Pauwen.

The device time is exactly same with local time.

Is there anything else have to check ?

Hello,

 

odd indeed. Do you have:

 

service timestamps log datetime localtime

 

configured ? Are you using NTP ?

Hi,

I configured service timestamp and ntp. but still triggered at 00:00AM..

Hello,

 

does the other applet that is scheduled for 9:20AM run correctly ?

 

I know this is not really what you want, but try a simple Kron policy, which effectively accomplishes the same thing.

 

event manager applet Every9AM_APP
event none
action 1 syslog msg "9AM Stamp"
!
kron policy-list EVERY9AM_POL
cli event man run Every9AM_APP
!
kron occurence EVERY9AM_OCC at 9:00 recurring
policy-list EVERY9AM_POL

Hi, 

I configured the switch as you suggested and checked the logs generated over the weekend, but it still runs at 00:00.

And today EEM didn't even run.

EEM.png

 

 

 

 

 

 

 

 

 

 

EEM_Conf.png

 

 

 

 

 

 

 

 

 

 

 

thank you for helping.

Hello,

 

which device and IOS version is this on ? Can you post the output of:

 

sh ver

 

?

 

Could be a bug...either CRON or EEM should work...

Hello,

 

I found a bug where the Day Of Week configured as an '*' causes the script to run incorrectly.

 

Try the below:

 

event manager applet Every9AM
event timer cron cron-entry "0 0 * * 0-6" maxrun 100
action 1 syslog msg "9AM Stamp"

Hi Georg, Thanks for replying.

 

Here's changed configuration

 

EEM_Conf.png

and the switch version is

EEM.png

Hope it works correctly!

Hi,

Unfortunately, it doesn't work. still triggered at 00:00AM..

Thanks for help.

Hello,

 

the weird thing is that the script actually DOES run.

 

I see there is another script (TT) that runs at 9AM as well, albeit only on one day. Can you test running the script at 1 minute past 9AM ?

 

event manager applet Every9AM
event timer cron cron-entry "01 9 * * 0-6" maxrun 100
action 1 syslog msg "9AM Stamp"

 

 

Hi Georg,

I think this problem coming to solve soon.

 

eem.png

this is current eem configuration.

eem_log.png

and this is log.

EEM syslog msg shows after 09 am, but the time display still shows 00.
It seems that once this problem is solved, it will be completely solved.
thank you.

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Recognize Your Peers