el 10-21-2025 08:32 AM
HI team,
Can you help me with this issue? I have two sw 9500 24-port in stackwise.
How can I reset them to factory settings by erasing the stackwise without losing the iOS of each one?
Will they go to different, separate locations, without being in stackwise.
Thanks a lot.
Best regards.
Ciro G. Mele.
10-21-2025 08:44 AM - editado 10-21-2025 08:47 AM
Hello @Ciro G Mele
Run no switch virtual on the active switch to remove the stack configuraton _ both units will reload.
After that, on each switch individualy enter write erase command and delete flash:vlan.dat in order to clear all setings and VLAN data !
Last relaod for last check !
el 10-21-2025 08:56 AM
Hi M02@rt37
Stackwise is a specific, advanced type of stacking technology from Cisco. A "stack" is a general term for a group of switches.
This Cat9500 are using stackwise.
These are new models of Cat 9500, if I run write erase it erases the IOS and that is not the plan.
Best regards.
Ciro G.Mele
el 10-21-2025 09:04 AM
See here
el 10-21-2025 09:25 AM
Hi again,
This command
Device# factory-reset all
all : Erases all the content from the NVRAM, all the Cisco IOS images, including the current boot image, boot variables, startup
and running configuration data, and user data.
I want to keep iOS on both devices.
Thansks.
Best regards.
Ciro G. Mele.
el 10-21-2025 11:25 AM
Hi again M02@rt37
According to that link, using any of the factory reset options will erase iOS, which isn't the plan. To keep iOS on both 9500s, would this be the correct option?
1. Enter the 9500's stackwise active
2. No switch 2 provisioning, or is there something else?
3. Even if it's stackwise, it erases the switch on standby...?
4. Disarm the stack when rebooting...? Could it enter standby if so?
6. Does the pnpa service reset command work on the 9500s? Remember?
7. Or would it be better to disarm the stackwise...
Thanks for you help.
Best Regards.
Ciro G. Mele.
el 10-21-2025 01:16 PM
Hello @Ciro G Mele,
the process to disable StackWise Virtual is pretty straight forward:
Device(config-if)# no stackwise-virtual dual-active-detectionDevice(config-if)# no stackwise-virtual link 1Device(config)# no stackwise-virtualDevice# write memory
Device# reloadThe details can be found at the 'Disabling Cisco StackWise Virtual' section of the High Availability Configuration Guide, Cisco IOS XE Cupertino 17.9.x (Catalyst 9500 Switches).
Once the reload is done, you can use the following command to remove any remaining configuration or Vlan information if necessary:
factory-reset config
This command can only be used after StackWise Virtual has been disabled.
HTH!
el 10-21-2025 03:04 PM
factory-reset config
delete the iOS from the switch?el 10-23-2025 09:35 AM
10-21-2025 02:05 PM - editado 10-21-2025 03:17 PM
Use the command "factor-reset ALL".
This will erase everything in the flash including the firmware which can easily be put back in using the command "emergency-install usbflash0:filename.bin".
he main reason why I recommend using the "ALL" option is because this option will clean out nearly everything. It will not only clean out different locations/folders/sub-directories which are "off limits" but it will restore/reset some internal database, including installation database.
el 10-21-2025 03:17 PM
Hi @Leo Laohoo
I need the iOS on the cat9500 to remain the same and not be erased.
What command can I use to achieve this when I restart the deviice erasing the loaded configuration?
Thanks .
Best regards.
Ciro G. Mele.
el 10-21-2025 06:07 PM
Then use "factory-reset config".
el 10-21-2025 06:57 PM
Hi @Leo Laohoo
Is it the same as using write erase or is it better to use factory-reset config...
Thanks a lot.
Best regards.
Ciro G.Mele.
el 10-21-2025 11:26 PM
The command "write erase" will work, however, the command "factory-reset config" may do other things other than just erasing the config.
Personally, if I deal with classic IOS, I would use "write erase". When I deal with IOS-XE, I always use "factory-reset all".
el 10-22-2025 12:45 AM
Hi, @Leo Laohoo
Descubra y salve sus notas favoritas. Vuelva a encontrar las respuestas de los expertos, guías paso a paso, temas recientes y mucho más.
¿Es nuevo por aquí? Empiece con estos tips. Cómo usar la comunidad Guía para nuevos miembros
Navegue y encuentre contenido personalizado de la comunidad