cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2164
Views
0
Helpful
4
Replies

WS-C2960S-48FPSL: Error - Bad File Number, KRON Scheduled Backups

ksbolton1
Level 1
Level 1

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. 

4 Replies 4

Julio E. Moisa
VIP Alumni
VIP Alumni

Hi

 

Try removing  .cfg

 




>> Marcar como útil o contestado, si la respuesta resolvió la duda, esto ayuda a futuras consultas de otros miembros de la comunidad. <<

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.

This remained an issue even without the .cfg filetype at the end.

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?