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