Comware

 View Only
  • 1.  reset to factory settings from CLI

    Posted Oct 30, 2008 11:20 AM
    Is it possible to reset a switch to factory settings from the CLI?


  • 2.  RE: reset to factory settings from CLI

    Posted Oct 30, 2008 01:11 PM
    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


  • 3.  RE: reset to factory settings from CLI

    Posted Feb 18, 2020 05:18 AM

    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