We help IT Professionals succeed at work.

Does the 2960 allow the use of KRON subsystem - for scheduled backups?

Does the 2960 allow the use of the KRON subsystem - for scheduled backups?
Comment
Watch Question

Consulting SW Engineer - Lync/Skype4Business
Commented:
KRON was introduced in Cisco IOS 12.3(1).  As far as I can tell, the Catalust 2960's latest release is 12.2(25) so, yes, it should have that functionality.  

You can use the privileged EXEC command SHOW VERSION to see what version of IOS you are running.  Here's a quick little example of what you're trying to do, given that you're runnign a version of IOS that is later than 12.3(1)

First, create a kron policy list. Essentially, this policy list serves as your "script," which lists what you want the router to run at a scheduled time.

Router(config)# kron policy-list backup
Router(config-kron-policy)# cli write
Router(config-kron-policy)# exit

Next, create a kron occurrence, in which you tell the router when and how often you want to run this policy list (i.e., group of commands).

Router(config)# kron occurrence backup at 22:00 Mon recurring
Router(config-kron-occurrence)# policy-list backup

This code sets up your backup job to run every Monday night at 10 P.M. (22:00 in military time).

Finally, verify that you've entered everything correctly by using the show command.

Router# show kron schedule


Kron Occurrence Schedule
backup inactive, will run again in 2 days 22:03:46 at 22:00 on Mon


Router# show running-configuration
(truncated)
kron occurrence backup at 22:00 Mon recurring
 policy-list backup
!
kron policy-list backup
 cli write
(truncated)

I used the write command instead of the copy running-configuration startup-configuration commands. for a simple reason. While the copy run start command is interactive, the write command is not.  In other words, write doesn't prompt to verify what you want to do. It's important to remember that the Cisco IOS Command Scheduler doesn't allow any interactive commands.

I hope this answers your question.

Author

Commented:
Thanks for that.

I actually used KRON with some scheduled backups on 3560 and 3750 switches.

You are right about the interactive command, especially backing up with TFTP.  I did find a workaround FYI if you like....
I used the 'file prompt quiet' command in global config mode.  As long as you put the full path in the KRON occurrence for the server IP filename etc it works a treat.

Thanks again

Explore More ContentExplore courses, solutions, and other research materials related to this topic.