< Home

save

Function

The save command saves the current configuration to the storage device.

Format

save [ all ] [ vsys vsys-name ] [ configuration-file ]

Parameters

Parameter Description Value

all

Saves all configurations, including the configurations of the boards that have not been inserted, to the next startup configuration file of the system.

-

vsys vsys-name

Specifies the name of virtual system.

The value is a string of 1 to 31 characters, starting with letters. The value cannot contain any space, @, * or hyphen (-) and is case sensitive.

configuration-file

Specifies the name of a configuration file.

The file name is case-insensitive, special characters (~/|\*:'"?) and spaces not supported. The value is a string of 5 to 48 characters, including a path. If no path is specified, the configuration file is saved in the default path.

Views

User view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

When a set of configuration is finished and the expected functions have been achieved, the current configuration file should be saved in 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, you can save 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 configuration file must take .cfg or .zip as its extension name, and the system configuration file must be saved under the root directory of the storage device. The default directory is the root directory of the storage device. When the configuration file is saved for the first time, if you do not specify the optional parameter config-filename, the system asks you whether to save the file as "vrpcfg.cfg".

For a non-system administrator to save configuration, the system administrator must run the non-system-admin save enable command to grant the configuration saving permission to the non-system administrator. Otherwise, the system will display a message indicating that the administrator does not have the permission to save the configuration file.

Precautions

  • If restoring the configuration data fails, the system records the failure to the log and displays a prompt whether to save the current configuration on the terminal. In this case, you need to select Y/N to check whether to save the current configuration and stop displaying the prompt each time you log in. If you select N, this prompt is displayed each time you log in to the system.
  • 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.
  • If the configuration file used for the next startup has been specified when you run this command, a message is displayed, including the file name and directory.
  • If the interface card is not registered, the interface configuration may be lost after you save the configuration.

Example

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

<sysname> save
The current configuration (excluding the configurations of unregistered boards or cards) will be written to the device.
Are you sure to continue?[Y/N] y
Now saving the current configuration to the device.
..................
Info:The current configuration was saved to the masterboard divice successfully
Info:The current configuration was saved to the slaveboard divice successfully
Info: The current configuration was saved to the device successfully.

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

<sysname> save
The current configuration (excluding the configurations of unregistered boards or cards) will be written to flash:/vrpcfg.zip.
Are you sure to continue?[Y/N] y
Now saving the current configuration to the slot 17.
Info: Save the configuration successfully.
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >