cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1431
Views
4
Helpful
4
Replies

KRON - I need help with KRON

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 !!!

4 Replies 4

Joe Clarke
Cisco Employee
Cisco Employee

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

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.

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

THANKS...

I did get it to work...

I have to learn the timing syntax for this command...