cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Announcements
Join Customer Connection to register!
16038
Views
15
Helpful
6
Replies
2044418Puts
Beginner

Cron Job on Cisco IOS Router?

Hello,

I would like to know if it is possible to schedule jobs on a cisco router which execute certain commands on certain times.

Thanks!

1 ACCEPTED SOLUTION

Accepted Solutions
Leo Laohoo
VIP Community Legend

"You can only use privileged-mode commands with kron; it doesn't allow any Global or Interface configuration commands. This is because it executes each command separately."

View solution in original post

6 REPLIES 6
glen.grant
Advisor

kron can do some of that . Not sure what you have to have for code , think it is at least 12.4 code .

bretjaquish
Participant

The IOS can schedule commands. Here is a nice article detailing how to do that:

http://articles.techrepublic.com.com/5100-10878_11-5553313.html

I've made the following kron job, but it doesnt function. Can anyone tell me why? This is just a test, but this should work right?

kron occurrence test at 12:21 recurring

policy-list TEST

!

kron policy-list TEST

cli enable

cli config terminal

cli int lo 500

cli ip add 9.9.9.9 255.255.255.255

cli exit

Your answer lies in the "Know your limitations" sections of the above URL provided by Bret.

Leo Laohoo
VIP Community Legend

"You can only use privileged-mode commands with kron; it doesn't allow any Global or Interface configuration commands. This is because it executes each command separately."

View solution in original post

Leo Laohoo
VIP Community Legend

Thanks for the rating.