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.
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.
# 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