< Home

reset factory-configuration

Function

The reset factory-configuration command restores the factory settings of the device.

Format

reset factory-configuration

Parameters

None

Views

User view

Default Level

3: Management level

Usage Guidelines

Usage Scenario

To clear all service configurations and data files, run the reset factory-configuration command to restore the factory settings.

Precautions

After you run the reset factory-configuration command, the system asks you whether to restart the device. After you enter y, the device restarts and clears the service configurations and data files on the device. The configurations and files to be cleared include:
  • Configurations in the configuration file
  • Configurations in the flash memory, such as the stackconfigurations.
  • Database files in NETCONF
  • Data files in the file system
  • The next-startup system software package, patch, module, and license file will not be deleted.
  • This command will not delete the protected directory and the $_default.cfg file in the protected directory.

Exercise caution and use this command under the supervision of technical support personnel.

Example

# Restore the device to factory settings.

Warning: The command will delete all the configurations and files (except the startup, patch, module, and license files) from the de
vice. Continue? [Y/N]:y                                                                                                             
Warning: The system will reboot after configurations and files are deleted. Continue? [Y/N]:y                                       
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >