< Home

startup saved-configuration

Function

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.

Format

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.

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.

Views

startup saved-configuration: User view

undo startup saved-configuration: System view

Default Level

3: Management level

Usage Guidelines

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.

  • The configuration file name extension must be .zip or .cfg.
    • A configuration file with the file name extension .cfg is a text file, and you can view the file content in the text file. After the file is specified as the configuration file for next startup, the system restores all commands in the file one by one during a startup.
    • A .cfg file is compressed to a .zip file that occupies less space. After being specified as the configuration file, the .zip file is decompressed to the .cfg file and the system restores all commands in the .cfg file one by one during startup.
  • 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.

  • The display cli command-tree command output shows that the chassis parameter is registered on the device. Fixed devices do not support this parameter.
  • Do not change the configuration file manually and specify the configuration file for next startup. Otherwise, the device may not start normally.
  • Users at level 3 or higher can change the configuration file used for the next startup.

Example

# 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.
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >