Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements
Webcast-Catalyst9k
New Member

Deleting IOS from 3 Stack switches

                   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

Everyone's tags (5)
2 ACCEPTED SOLUTIONS

Accepted Solutions
VIP Super Bronze

Deleting IOS from 3 Stack switches

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

Hall of Fame Super Gold

Deleting IOS from 3 Stack switches

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.

8 REPLIES
VIP Super Bronze

Deleting IOS from 3 Stack switches

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

New Member

Deleting IOS from 3 Stack switches

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

VIP Super Bronze

Deleting IOS from 3 Stack switches

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

Hall of Fame Super Gold

Deleting IOS from 3 Stack switches

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

New Member

Deleting IOS from 3 Stack switches

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

New Member

Deleting IOS from 3 Stack switches

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

Hall of Fame Super Gold

Deleting IOS from 3 Stack switches

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.

New Member

Deleting IOS from 3 Stack switches

Hi leolaohoo,

Many thanks i will try this command next time.

Mahesh

2341
Views
0
Helpful
8
Replies
CreatePlease to create content