< Home

save

Function

The save command saves the configurations to the default directory.

Format

save [ all ] [ force ] [ configuration-file ]

Parameters

Parameter Description Value

all

Saves all configurations to the next startup configuration file of the system.

NOTE:

All configurations are saved, including those of the boards that are not running, no matter whether all is specified.

-

force

Forcibly saves configurations.

-

configuration-file

Specifies the name of a configuration file.

The value is a string of 5 to 64 case-insensitive characters without spaces.

Views

User view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

You can run commands to modify the current configuration of the device, but the modified configuration will be lost after the device restarts. To enable the new configuration to take effect after a restart, save the current configuration in the configuration file before restarting the device.

When a series of configurations are complete and take effect, you must save the current configuration file to the storage device.

  • If the configuration-file parameter is not specified, the save [ all ] command saves the current configuration to the next startup configuration file in the storage device. The "Next startup saved-configuration file:" field displayed in the display startup command output indicates the next startup configuration file.
  • The save [ all ] configuration-file command saves the current configuration to the specified directory of the storage device. Generally, the command does not affect the current startup configuration file. Only if the configuration-file parameter is the same as the directory and name of the configuration file for the next startup, this command can be used as the same as the save command without the configuration-file parameter.
  • The save [ all ] force configuration-file command saves the current configurations to a file specified by the configuration-file parameter on a storage device without user confirmation.

All configurations are saved, including those of the boards that are not running, no matter whether all is specified.

If you do not specify configuration-file when saving the configuration file for the first time, the system asks you whether to save the configuration file as vrpcfg.zip. The vrpcfg.zip file is the default system configuration file with empty configurations in initial state.

Precautions

  • If the configuration file to be saved using this command has the same name with the existing configuration file, the existing configuration file is rewritten.

  • The configuration file name extension must be .zip or .cfg.
    • .cfg: The file is saved in plain text mode. After the file is specified as the configuration file, all commands in the file are recovered one by one during startup.
    • .zip: The .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 all commands in the .cfg file are recovered one by one during startup.
  • When the system is saving configuration files, other users are not allowed to perform configuration. When the current user is performing configuration, other users are not allowed to save configuration files.

Example

# Save the current configuration to the default directory when the next startup configuration file is not specified.

<HUAWEI> save
The current configuration will be written to the device.
Are you sure to continue?[Y/N]y
Now saving the current configuration to the slot 0.
Save the configuration successfully.

# Save the current configuration to the next startup configuration file specified.

<HUAWEI> save
The current configuration will be written to flash:/vrpcfg.zip.
Are you sure to continue?[Y/N]y
Now saving the current configuration to the slot 0.
Info: Save the configuration successfully.
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >