We are upgrading the IOS on our switches as the current image does not support SSH.
If I copy the new IOS to flash, it will still boot up with the old IOS which is in a directory in flash.
How do I delete the entire directory in one command?
I tried to use boot system command but this doesn't work.
What I was going to do is delete the directory containing the IOS, copy the new IOS over.
Here is my assumption
1) you want to copy the .bin file only to the flash. Where the .bin file is your new IOS image
2) you want to remove the old IOS in flash:/c3560-ipbase-mz.122-25.SEB4/
You can use the following command to remove the directory
delete /force /recursive flash:/c3560-ipbase-mz.122-25.SEB4/
DO NOT REBOOT THE BOX. Once that is done, copy the new IOS into the flash via TFTP or FTP. Then
verify /md5 image_name
Compare the MD5 checksum with the checksum on CCO.
To change the boot variable
boot system flash:/image_name.bin
Use show boot to verify.
Here is the output of show boot in my switch in the lab
BOOT path-list : flash:/c3560e-universalk9-mz.122-44.SE6.bin
Config file : flash:/config.text
Private Config file : flash:/private-config.text
Enable Break : no
Manual Boot : no
HELPER path-list :
Auto upgrade : yes
Auto upgrade path :
Timeout for Config
Download: 0 seconds
via DHCP: disabled (next boot: disabled)