cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
5831
Views
0
Helpful
10
Replies

Deleting IOS from 3 Stack switches

mahesh18
Level 6
Level 6

                   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

2 Accepted Solutions

Accepted Solutions

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

View solution in original post

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.

View solution in original post

10 Replies 10

Reza Sharifi
Hall of Fame
Hall of Fame

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

http://www.cisco.com/en/US/docs/switches/lan/catalyst3750/software/release/12.2_50_se/command/reference/cli1.html#wp1861193

HTH

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

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

Leo Laohoo
Hall of Fame
Hall of Fame

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".

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

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

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.

Hi leolaohoo,

Many thanks i will try this command next time.

Mahesh

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 

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, 

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Review Cisco Networking products for a $25 gift card