12-05-2006 07:52 AM
I want to use / learn more about KRON. I have been searching and have found very little about this cool command.
One major task that I am trying to do is cause a DSL 851 to restart automagically every week on Monday.
But Kron is not liking what I am doing for some reason...
the following does NOT work.
kron occurrence restart at 22:00 Mon recurring
policy-list restart
!
kron policy-list restart
cli reload /noverify
HELP ME PLEASE !!!
12-05-2006 09:42 AM
Interesting thing to do. Kron is very particular when it comes to interactive commands. If there is any hint of input being required (e.g. to save the configuration) kron will halt the policy, and remove it.
For what you're trying to do, and Embedded Event Manager timer applet might be better. Try the following:
event manager applet restart
event timer cron name restart_timer cron-entry "0 22 * * 1"
action 1.0 reload
12-05-2006 10:21 AM
Explain this to me,
How often will this run ?
I wanted something that ran very ofter so that I can test it at my desk.
12-05-2006 10:51 AM
This applet runs every Monday at 22:00 (which is what you said you wanted). If you wanted to test it, try:
event manager applet restart
event none
action 1.0 reload
Then run it with:
event manager run restart
12-05-2006 12:57 PM
THANKS...
I did get it to work...
I have to learn the timing syntax for this command...
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