02-03-2022 01:15 AM
Hi all, I have question about eem cron timer.
I configured event manager like this.
What I understood is "0 9 * * *" mean every 9 AM triggered.
But actually it triggered at 00:00AM
What am I wrong for this configuration??
Solved! Go to Solution.
02-21-2022 12:32 AM
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"
02-03-2022 01:25 AM
Hello,
what is the time on your device (show clock) ? The cron timer is directly related to that...
02-03-2022 04:16 PM
Thanks for reply Pauwen.
The device time is exactly same with local time.
Is there anything else have to check ?
02-04-2022 02:45 AM
Hello,
odd indeed. Do you have:
service timestamps log datetime localtime
configured ? Are you using NTP ?
02-07-2022 03:45 PM
Hi,
I configured service timestamp and ntp. but still triggered at 00:00AM..
02-08-2022 01:19 AM
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
02-13-2022 03:46 PM
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.
thank you for helping.
02-14-2022 02:18 PM
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...
02-15-2022 04:26 AM
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"
02-15-2022 11:15 PM
Hi Georg, Thanks for replying.
Here's changed configuration
and the switch version is
Hope it works correctly!
02-20-2022 04:27 PM
Hi,
Unfortunately, it doesn't work. still triggered at 00:00AM..
Thanks for help.
02-21-2022 12:32 AM
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"
02-23-2022 12:04 AM
Hi Georg,
I think this problem coming to solve soon.
this is current eem configuration.
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.
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