< Home

factory-configuration prohibit

Function

The factory-configuration prohibit command disables the restoration of factory configurations by tapping and holding the RST button.

The undo factory-configuration prohibit command enables the restoration of factory configurations by tapping and holding the RST button.

Format

factory-configuration prohibit

undo factory-configuration prohibit

Parameters

None

Views

System view

Default Level

3: Management level

Usage Guidelines

By default, you are allowed to tap and hold the RST button to restore factory configurations, and retain the original configuration file.

After you run the undo factory-configuration prohibit command, a message is displayed, asking you to determine whether to save the original configuration file when tapping and holding the RST button to restore factory configurations, and you need to press Y or N to make the decision.

Example

# Disables the restoration of factory configurations by tapping and holding the RST button.

<sysname> system-view
[sysname] factory-configuration prohibit
 Info: Successfully set factory config prohibit flag.

# Enables the restoration of factory configurations by tapping and holding the RST button with the original configuration file saved.

<sysname> system-view
[sysname] undo factory-configuration prohibit
Info:Do you want to keep old configuration file after the restore factory 
configuration?[y/n]y  
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >