< Home

Restoring the Switch to Factory Default

You can restore the factory default of the configuration file or the switch depending on the scenario.

Restoring the Factory Configuration of the Configuration File Using the PNP Button

If you press and hold the PNP button for more than 6s, the device restores the default settings and restarts automatically.
  • Only the S2720-EI, S5720-LI, S5720S-LI, S5720-52X-SI-48S, S5720I-SI, S5730-SI, S5730S-EI, S5730-HI, S5731-S, S5731S-S, S5731-H, S5731S-H, S5732-H, S5735-L, S5735S-L, S5735S-L-M, S5735-S, S5735-S24T4X-I, S5735S-S, S6720-LI, S6720S-LI, S6720-SI, S6720S-SI, S6730-H, S6730-S, S6730S-H, and S6730S-S support this operation.
  • This operation will enable the function of logging in through the console port.
  • This operation clears the service configuration and data files, which is the same as the function of the reset factory-configuration command.
  • This operation will not delete the protected directory and protected/$_default.cfg file.
  • If the protected/$_default.cfg file exists, this operation will set the $_default.cfg file as the configuration file for next startup. If the file does not exist, the configuration file for next startup is empty.
  • By default, holding the PNP button on any device in a stack will restore the device to the default settings and automatically restart the device. To clear the service configurations and data files of the stack, run the pnp-button mode reset-system command to configure the device behavior after the PNP button is pressed and held.

Restoring the Switch to Factory Default in One-Click Mode

If you want to clear all service configurations and data files, run the following command to restore the switch to factory default in one-click mode.

  1. In the user view, run reset factory-configuration.
    The switch is reset and restored to factory default settings.

    This command restores the factory configuration of the system configuration file and clears all service configurations and data files of a switch. Exercise caution when running this command.

  2. In the user view, run display factory-configuration reset-result.

    The result of the latest factory default restoration of the switch is displayed.

Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic