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?
mac326aAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Steven SheeleyConsulting SW Engineer - Lync/Skype4BusinessCommented:
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.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
mac326aAuthor 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

0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Networking Hardware-Other

From novice to tech pro — start learning today.