Switches, Hubs, and Modems
cancel
Showing results for 
Search instead for 
Did you mean: 

reset to factory settings from CLI

 
Advisor

reset to factory settings from CLI

Is it possible to reset a switch to factory settings from the CLI?
2 REPLIES 2
Honored Contributor

Re: reset to factory settings from CLI

mostly, depends on the switch platform...

you can do a 'erase start' and that will erase most all config info, except for local oper/manager uid/pw as they are stored in a separate part of NV ram (unless it is a provision-asic family switch with 'include-credentials' enabled and then the local uid/pw are in the config and will also be reset)...

neither 'erase start' nor using front panel "clear & reset" buttons to do a "factory reset" will erase SSH/SSL keys - those must be deleted manually...

hth...jeff
Advisor

Re: reset to factory settings from CLI

2930F-3# erase
all Erase all management module files except software
images.
config Erase a named configuration file.
core-dump Erase a named core file.
default-config Erase the custom default configuration.
fdr-log Erase FDR log files for given serial number.
flash Erase the primary or secondary flash image.
patch-file Erase patch file used for config rollback.
startup-config Erase configuration file.
2930F-3# erase all
The system will be rebooted and all management module files except
software images will be erased.

Continue (y/n)? y

Best Regards