cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
3481
Views
0
Helpful
11
Replies

clear configs when switches are stacked

robertkwild
Spotlight
Spotlight

hi all,

when the 3850s are stacked and i want to delete all configs, ie vlan config and startup config, do i need to do this for every single switch or can i do it on the master switch only

thanks,

rob

11 Replies 11

balaji.bandi
Hall of Fame
Hall of Fame

Stack master is good enough.

 

BB

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

so will this work

delete nvram: startup-config

write erase

delete flash: vlan.dat

what one is best to use, write erase or delete nvram: startup-config

and once its reloaded do i do a

copy run start or a

copy start run?

write erase should do the job, you can also delete vlan.dat and startup-config, do not write, just reload.

 

BB

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

Thanks balaji!!!

 

and obviously to save any changes I make after that I do a

 

Copy run start

 

I've seen other places you can literally just do a

 

Wr

 

Is that just the same as copy run start

Once all the configuration is erased, (personally no need to write) just reload it will go with quick start ask you to config.

 

BB

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

Ok so once I reload, you say no need to save changes but then any changes I make is it best to do

 

Wr

Or

Copy run start

when the 3850s are stacked and i want to delete all configs, ie vlan config and startup config, do i need to do this for every single switch or can i do it on the master switch only

Lets go back to your original post, you looking to clear the stack config to Factory,. when you do delete files from flash except for IOS image, and wr erase all gone here. and reload go to factory whole stack. that means all the information is gone.

 

If you like to save any new config, If you like to configure once reloaded and save the config ? hope is this clear? or am i misunderstanding, (why I  was keen to ask since you mentioned 2 times you want to write config  so be sure we are both on the same page of understanding)

 

BB

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

when you do delete files from flash except for IOS image, and wr erase

 

when you say the above, would a "write erase" command do this or do i have to do another command like

delete nvram: startup-config?

Write erase does the job, but it not delete vlan.dat (it stored in NVRAM)

for safer side we delete startup-config or vlan.dat file.

 

delete flash:startup-config

or

delete flash:vlan.dat

 

BB

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

but "write erase" erases the startup config doesnt it?

edit - just found out as startup config in nvram write erase will delete all in nvram but not flash

yes it does :

 

just did test for you.

 

#write erase
Erasing the nvram filesystem will remove all configuration files! Continue? [confirm]
[OK]
Erase of nvram: complete
%SYS-7-NV_BLOCK_INIT: Initialized the geometry of nvram
#reload

Once reboot done, if you see any vlan.dat ( safe side delte it)

 

Hope this information help you get your head around the topic and take action now.

 

 

 

BB

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

Review Cisco Networking for a $25 gift card