Cron Job on Cisco IOS Router?

Answered Question
May 11th, 2009
User Badges:

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!

Correct Answer by Leo Laohoo about 8 years 2 weeks ago

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

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 5 (4 ratings)
Loading.
glen.grant Mon, 05/11/2009 - 04:31
User Badges:
  • Purple, 4500 points or more

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

2044418Puts Tue, 05/12/2009 - 02:48
User Badges:

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

Sushil Kumar Katre Tue, 05/12/2009 - 03:01
User Badges:
  • Gold, 750 points or more

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

Correct Answer
Leo Laohoo Tue, 05/12/2009 - 14:30
User Badges:
  • Super Gold, 25000 points or more
  • Hall of Fame,

    The Hall of Fame designation is a lifetime achievement award based on significant overall achievements in the community. 

  • Cisco Designated VIP,

    2017 LAN, Wireless

"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 Thu, 05/14/2009 - 18:10
User Badges:
  • Super Gold, 25000 points or more
  • Hall of Fame,

    The Hall of Fame designation is a lifetime achievement award based on significant overall achievements in the community. 

  • Cisco Designated VIP,

    2017 LAN, Wireless

Thanks for the rating.

Actions

This Discussion