reset saved-configuration
Function
The reset saved-configuration command clears the next startup configuration file and cancels the configuration file used for next startup.
Usage Guidelines
Usage Scenario
If the configuration file on the device is incompatible with the upgraded software, run the reset saved-configuration command to clear the configuration file and specify a new configuration file.
If the device in use is applied to another scenario and the original configuration file of the device does not meet requirements in the scenario, run the reset saved-configuration command to clear the existing configuration file and restart the device to restore its factory configurations.
Precautions
This command should be executed with caution. Use it under the guidance of technical personnel.
- If this command is run, the system checks the configuration file to be loaded at the next startup and the existing configuration file to be deleted:
- If the two configuration files are consistent, running the reset saved-configuration command clears the settings for both files. The default configuration file will be used for the next startup.
- If the two configuration files are inconsistent, running the reset saved-configuration command clears the settings for the configuration file for the next startup, and the settings for the current configuration file are not cleared.
- If the current configuration file is empty, and the configuration file for the next startup is not empty, running the reset saved-configuration command clears the settings for the configuration file for the next startup.
- If the configuration file for the next startup is empty, and the current configuration file is not empty, after the reset saved-configuration command is run, the system prompts an error and no settings are cleared.
- When a user is saving a configuration file, running the reset saved-configuration command will not delete the existing configuration file.
If you do not use the startup saved-configuration command to specify a new configuration file containing correct configurations or do not save the configuration file after running the reset saved-configuration command, the device uses factory configurations for startup. If the device does not have factory configurations, it uses default configurations for startup.
Example
# Clear the next startup configuration file in the storage device and cancel the configuration file used for next startup.
<AC6605> reset saved-configuration
This will delete the configuration in the flash memory. The device configurations will be erased to reconfigure. Are you sure? (y/n)[n]:y Clear the configuration in the device successfully.