04-01-2019 03:49 AM
Hi Friends
I have taken Cisco IOS backup using TFTP server, using the command
Copy flash tftp
Now i need to restore the backup IOS file again from TFTP server to flash.
but my flash drive is not having enough space.
so if i delete current IOS file in flash memory and reload the router, will my router will go into end stage or anything else i need to do for restoring IOS from TFTP to flash.
Solved! Go to Solution.
04-01-2019 03:59 AM - edited 04-01-2019 04:01 AM
Hi there,
If you delete the IOS image and reload you will end up in ROMMON. Save yourself the pain.
If you want to restore another image to the router, delete the current one, TFTP the replacement onto the flash, change the boot variable and reload.
! delete flash:<old_image> ! copy tftp://<tftp_server>/<new_image> flash: ! conf t boot system flash:<new_image> exit ! wr mem reload !
cheers,
Seb.
04-01-2019 03:59 AM - edited 04-01-2019 04:01 AM
Hi there,
If you delete the IOS image and reload you will end up in ROMMON. Save yourself the pain.
If you want to restore another image to the router, delete the current one, TFTP the replacement onto the flash, change the boot variable and reload.
! delete flash:<old_image> ! copy tftp://<tftp_server>/<new_image> flash: ! conf t boot system flash:<new_image> exit ! wr mem reload !
cheers,
Seb.
04-01-2019 04:13 AM
Sure adding @Seb Rupik - make sure you do not reboot the device after delete the old IOS, check the new IOS copied and check the MD5, before reloading.
Suggest to connect console cable in case any unexpected outcomes to mitigate the issue.
04-01-2019 06:11 AM
03-22-2021 07:41 PM - edited 03-22-2021 07:42 PM
Hello!
I have a Cisco Catalyst 4948E-F and 4900M in my environment and I have been trying to backup their IOS files.
I succeeded in backup the configuration and vlan.dat files using TFTP server but I am unable to backup the IOS files in both switches.
I get the following error message each time I run the copy bootflash tftp command.
%Error writing tftp://192.168.xx.xx/cat4500e-entservicesk9-mz.152-2.E2.bin (Timed out)..
I am sure there isn't the problem of connectivity or firewall because I am able to backup the configuration and vlan.dat files.
Any idea what the problem might be?
Thank you.
03-23-2021 12:55 AM
Hello,
the IOS image you are sending is rather large. Which TFTP server are you using ? Try and reduce the tftp blocksize on your switch to the lowest value possible, or try different values:
4948E(config)#ip tftp blocksize 512
Is the TFTP server logging anything when you are transferring the file ?
03-23-2021 01:13 AM
Hello George,
Thank you for responding!
I am using a software called blackjumbodog.
Before I reduce the blocksize, I would like to know what the current blocksize is. What is the command for this please?
Is the TFTP server logging anything when you are transferring the file ?
I am not sure if this is the answer to your question, but after every failed attempt to backup, I can see that the IOS image is partly copied to the directory specified.
03-23-2021 01:36 AM
Hello,
unfortunately there is no command to show the current TFTP blocksize. It will only show up in the running configuration (at the end).
I would try different blocksizes, even 8192.
03-23-2021 03:31 AM
Hello George,
I changed the blocksize to 8192, 1024 and then 512 but it didn't solve the problem.
I have two different versions of IOS image file on the switch. I am able to backup the other version of IOS but unable to backup
the version that is running on the switch.
03-23-2021 03:54 AM
Hello,
can you post the output of:
dir bootflash
03-23-2021 04:31 AM
Switch4#
Switch4#dir bootflash:/
Directory of bootflash:/
6 -rw- 39660287 Aug 14 2015 06:48:04 +00:00 cat4500e-entservicesk9-mz.152-2.E2.bin
7 -rw- 27242762 Nov 11 2015 15:16:04 +00:00 cat4500e-entservicesk9-mz.150-2.SG8.bin
128165888 bytes total (51234816 bytes free)
Switch4#
cat4500e-entservicesk9-mz.152-2.E2.bin is the current boot IOS and the one I would like to backup.
03-23-2021 06:33 AM
03-24-2021 05:31 PM
Hello George,
I still could not successfully complete the backup.
Has anyone successfully backed up the boot IOS image in the 4000 series catalyst switches?
03-25-2021 02:54 AM
Hi there,
As a rule of thumb depending in on file size, the pecking order for file transfer should be XMODEM -> TFTP -> FTP -> SCP .
When I was last working on 4000e's we were using FTP for image transfers. If you need GUI based opensource option take a look a filezilla FTP server: https://filezilla-project.org/
cheers,
Seb.
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