cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Announcements
Popup Hotspot Using ISR 1000 with WiFi/LTE for Teleworkers and Micro Branchesr
254
Views
5
Helpful
5
Replies
Highlighted
Beginner

Kron backup job not working

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 

Everyone's tags (4)
1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Beginner

Re: Kron backup job not working

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
Highlighted
VIP Mentor

Re: Kron backup job not working

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/

Highlighted
VIP Mentor

Re: Kron backup job not working

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
Highlighted
Beginner

Re: Kron backup job not working

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

Highlighted
VIP Mentor

Re: Kron backup job not working

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

Re: Kron backup job not working


indeed, useful info
CreatePlease to create content
Content for Community-Ad