cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1289
Views
5
Helpful
5
Replies

Kron backup job not working

Heitkamp
Level 1
Level 1

Hi Guys!

I want to make backups of my switch automatically. If I send the command via CLI the switch creates a backup but if I try to run a kron job it fails.

Does somebody has an idea?

That works via CLI:

show run | redirect tftp://10.10.10.10/switch-01.cfg

This kron config does not work:

kron policy-list Backup
cli show run | redirect tftp://10.10.10.10/switch-01.cfg
exit
kron occurrence Backup at 06:00 monday recurring
policy-list Backup
exit

Switch model: C2960X

IOS Version: 15.2(2)E6 

1 Accepted Solution

Accepted Solutions

Heitkamp
Level 1
Level 1

I found the solution.

The problem was, that I wrote 

cli show run | redirect ...

instead of 

cli show running-config | redirect ...

But thank you for your help!

 

View solution in original post

5 Replies 5

Mark Malone
VIP Alumni
VIP Alumni

Hi
could use archive as another option instead of flash use tftp , would be a better feature for backups if there is a bug in that software

Your config looks right for kron

archive
log config
logging enable
hidekeys
path flash:Archive.cfg
maximum 2
write-memory
time-period 1440

 

 

Helpful link

https://www.ciscozine.com/how-to-use-archive-command-to-save-configuration/

no known bug listed in that version for kron , does it work by FTP through kron , have you tried that ?

https://www.cisco.com/c/en/us/td/docs/switches/lan/catalyst2960x/software/15-2_2_e/release_notes/OL-32568.html

Heitkamp
Level 1
Level 1

I found the solution.

The problem was, that I wrote 

cli show run | redirect ...

instead of 

cli show running-config | redirect ...

But thank you for your help!

 

cool , thanks for posting the fix someone will find it useful down the line


indeed, useful info
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:

Review Cisco Networking products for a $25 gift card