09-04-2017 04:36 PM - edited 03-08-2019 11:55 AM
Good day all.
Currently my team uses a few Catalyst 2960-S switches and in order to maintain a monthly backup on a FTP server, we've implemented KRON along with the archive command to schedule a write memory operation aiming at the server.
It's been working without issue for the most part:
archive path ftp://<ftp_svr_FQDN>/Switch/<geo_location>/SW-LP5/$h.cfg write-memory SW-LP5#sho run | s kron kron occurrence Third_of_month at 3:00 3 recurring policy-list Config_Backup kron policy-list Config_Backup cli write memory
I have found that some months the operation doesn't work as expected and "show archive" shows an error message stating: :Error - bad file number instead of the actual file path of the saved backup. I usually assume that kron has failed for some reason because when I then run "write memory" manually, the file is written to the FTP server without issue.
So my question is simply, does anyone know why this might happen? The IOS version in use is 15.0(2)SE10a.
09-04-2017 05:50 PM - edited 09-04-2017 05:51 PM
Hi
Try removing .cfg
09-05-2017 12:56 PM
Thank you for your reply, Julio. I'll try that on a few of the more problematic devices. Of course, I can't confirm the real success of your suggestion until next month. I'd add another schedule but I'd rather have the problem fixed in its original setting.
01-11-2018 12:04 PM
This remained an issue even without the .cfg filetype at the end.
02-07-2018 12:04 PM
Hello Julio,
To this day, we still face this issue where our kron config is in place but we still end up having to sign into the switch and run write memory command in order to have the backup completed. Is there any way you could help to resolve this?
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide