06-04-2012 03:49 PM - edited 03-07-2019 07:03 AM
Hi all,
Is there any command that i can use to delete the IOS from 3 stack switches at same time?
I can do it manually one by one but curious to know if any command exists?
Thanks
MAhesh
Solved! Go to Solution.
06-04-2012 05:58 PM
Hi Mahesh,
As Leo noted, the command you found is when you are loading a new IOS using .tar file and in the process deleting all the old images from all the switches. This works just fine. My understanding from your original post was that you are looking for just a delete command and not necessarily for loading new images and deleting the old ones.
Reza
06-05-2012 04:51 PM
archive download-sw /overwrite /destination-system 1 /destination-system 2 /destination-system 3 /destination-system 4 tftp:/1.2.3.4/filename
Where 1 2 3 and 4 are name of switches in stack
Yes, this is the correct command-switch.
06-04-2012 04:00 PM
Hi Mahesh,
Looking at the command reference guide, there is no option for deleting all flash files at the same time:
Switch#delete /force ?
/recursive Recursive delete
flash1: File to be deleted
flash: File to be deleted
nvram: File to be deleted
Switch#delete /force
HTH
06-04-2012 04:04 PM
Hi Reza,
after doing some research i found this command
archive download-sw /overwrite tftp://1.2.3.4/filename
Need to confirm here if it can do the job?
Thanks
MAhesh
06-04-2012 05:58 PM
Hi Mahesh,
As Leo noted, the command you found is when you are loading a new IOS using .tar file and in the process deleting all the old images from all the switches. This works just fine. My understanding from your original post was that you are looking for just a delete command and not necessarily for loading new images and deleting the old ones.
Reza
06-04-2012 04:08 PM
To delete a file/subdirectory from three 3750 stacked switches, the commands are:
delete /f /r flash1:
delete /f /r flash2:
delete /f /r flash3:
archive download-sw /overwrite tftp://1.2.3.4/filename
This command only means to copy the TAR file from the TFTP server into the MASTER stack member and delete the old directory. If your master stack member has multiple IOS subdirectory, it will only delete the LATEST one.
So if you have multiple stack members in a stack, you need to add the command switch "/destination N".
06-05-2012 07:03 AM
Hi Leolaohoo,
Thanks for reply.
Do you mean this command to use ?
Switch#archive download-sw /overwrite /destination-system 1,2,3,4 ?
% Unrecognized command
Switch#archive download-sw /overwrite /destination-system ?
1 download software to system 1
2 download software to system 2
3 download software to system 3
4 download software to system 4
Switch#archive download-sw /overwrite /destination-system 1 2 3 4 ?
% Unrecognized command
Switch#archive download-sw /overwrite /destination-system 1 2 3 4
It takes only 1 switch option at time.
Thanks
MAhesh
06-05-2012 07:09 AM
Hi leolaohoo,
Found this command will this be ok
archive download-sw /overwrite /destination-system 1 /destination-system 2 /destination-system 3 /destination-system 4 tftp:/1.2.3.4/filename
Where 1 2 3 and 4 are name of switches in stack
Switch/Stack Mac Address : 58bf.ea3f.ee00
H/W Current
Switch# Role Mac Address Priority Version State
----------------------------------------------------------
*1 Master 58bf.ea3f.ee00 8 1 Ready
2 Member 58bf.ea66.2d80 6 1 Ready
3 Member 58bf.eae5.c580 4 1 Ready
4 Member 58bf.eaf1.7680 2 1 Ready
Need to confirm if this command is good to go?
Thanks
MAhesh
06-05-2012 04:51 PM
archive download-sw /overwrite /destination-system 1 /destination-system 2 /destination-system 3 /destination-system 4 tftp:/1.2.3.4/filename
Where 1 2 3 and 4 are name of switches in stack
Yes, this is the correct command-switch.
06-05-2012 05:33 PM
Hi leolaohoo,
Many thanks i will try this command next time.
Mahesh
05-11-2022 10:52 AM - edited 05-11-2022 10:53 AM
I used archive download-SW /overwrite tftp://1.2.3.4/filename but the old IOS is still showing into stack switch 2960X flash, when i try to delete manually, it is not allowing me,
Please advise
05-11-2022 10:53 AM
I used archive download-SW /overwrite tftp://1.2.3.4/filename but the old IOS is still showing into stack switch 2960X flash, when i try to delete manually, it is not allowing me,
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