cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
19741
Views
15
Helpful
6
Replies

Cron Job on Cisco IOS Router?

2044418Puts
Level 1
Level 1

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
Hall of Fame
Hall of Fame

"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
VIP Alumni
VIP Alumni

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

bretjaquish
Level 3
Level 3

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
Hall of Fame
Hall of Fame

"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."

Leo Laohoo
Hall of Fame
Hall of Fame

Thanks for the rating.

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:

Innovations in Cisco Full Stack Observability - A new webinar from Cisco