The startup saved-configuration command specifies the system configuration file for next startup.
The undo startup saved-configuration command deletes the system configuration for next startup.
startup saved-configuration configuration-file [ slot slot-id ]
undo startup saved-configuration
Devices that do not support the stack function or do not have the stack function enabled do not support the slot slot-id parameters.
Parameter | Description | Value |
---|---|---|
configuration-file |
Specifies the name of a configuration file. Make sure that the file exists. |
The value is a string of 5 to 64 case-insensitive characters without spaces. The file name extension can be .zip or .cfg. The file name must not contain %. |
slot slot-id |
Specifies a member device in a stack. |
The value is an integer. The range of the integer is dependent on the specific device. |
Usage Scenario
When the original configuration file cannot be used due to the software upgrade, run the startup saved-configuration command to specify another configuration file for next startup. The startup configuration file must be saved in the root directory of the storage device.
The startup saved-configuration configuration-file command is used in the user view.
The undo startup saved-configuration command is used in the system view and the command level is level 3: Management level.
Follow-up Procedure
Run the reboot or the schedule reboot command to restart the device.
Precautions
The configuration file specified for the next startup must exist.
If the EasyDeploy function is configured, run the undo startup saved-configuration command to clear the configuration file for next startup and delete all the configuration files in the storage device. When the device restarts, it finds no configuration file available and downloads a configuration file from the file server.
If the EasyDeploy function is not configured, run the undo startup saved-configuration command to clear the configuration file for next startup. After the command is run, the device uses empty configuration in next startup.
# Cancel the specified configuration file for next startup in the system view.
<HUAWEI> system-view [HUAWEI] undo startup saved-configuration
# Specify the system configuration file for the next startup.
<HUAWEI> startup saved-configuration vrpcfg.cfg
Info: Succeeded in setting the configuration for booting system.