Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements
Webcast-Catalyst9k
New Member

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

Re: Cron Job on Cisco IOS Router?

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

6 REPLIES
Purple

Re: Cron Job on Cisco IOS Router?

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

Bronze

Re: Cron Job on Cisco IOS Router?

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

New Member

Re: Cron Job on Cisco IOS Router?

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

Re: Cron Job on Cisco IOS Router?

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

Hall of Fame Super Gold

Re: Cron Job on Cisco IOS Router?

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

Hall of Fame Super Gold

Re: Cron Job on Cisco IOS Router?

Thanks for the rating.

10005
Views
15
Helpful
6
Replies
CreatePlease to create content