CX320 Switch Module V100R001 Command Reference 14

save

save

Function

The save command saves the configurations to the default directory.

Format

save [ configuration-file ]

Parameters

Parameter Description Value

configuration-file

Specifies the name of a configuration file.

The value is a string of 5 to 64 case-sensitive 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.

The save configuration-file command saves the current configuration to a specific file on the storage device. Generally, running the save configuration-file command does not affect the current startup configuration file. If the configuration file specified by configuration-file has the same name with the current configuration file and the default directory is used, running the save configuration-file command is equivalent to running the save command.

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, .dat 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.
    • .dat: A .dat file is a binary file. If the startup software version and the .dat file version are the same, the system restores all configurations in the .dat file in batches when the device starts. This speeds up the system startup. If the configuration file is a .dat file, the configuration cannot be synchronized to the management module, even if the display config-sync command output indicates a synchronization mode (Configurations are usually synchronized to the management module in this mode). The management module cannot manage .dat configuration files in a centralized manner. Therefore, the .dat file format is not recommended.
  • Running the command triggers configuration synchronization.

  • After centralized switch management is enabled on the management module, the switch configuration file synchronization function is unavailable.

  • After the save command is executed, the switch module configuration is synchronized to the management module:

    begin synchronize configuration to SMM ...

  • Each switch module synchronizes the working mode in the background and returns the synchronization result in the slot id:describe format.

    In the results:

    id indicates the board number and ranges from 1 to 16.

    describe indicates the synchronization result, which can be any of the following:

    • "upload configuration to SMM successfully." This indicates a normal situation.
    • "configuration is the same with SMM, needn't sync to SMM." This indicates a normal situation.
    • "config-sync has been disabled." This indicates that synchronization is disabled. You can run the undo config-sync disable command to enable synchronization.
    • "Failed to synchronize configuration to the management modules, because the easyLink feature is enabled on the management modules." This indicates that the switch module configuration fails to be uploaded to the management module because switch centralized management is enabled on the management module.
    • "can't communicate with SMM." You need to check whether the management module is present and whether the switch module communicates with the management module properly.
    • "synchronize configuration to SMM failed." You need to check whether the management module is present, whether centralized switch management is enabled, and whether the switch module communicates with the management module properly.

    Note:

    If switch centralized management is enabled, switch module configuration must be synchronized to the management module. The following describes when the switch module configuration is synchronized to the management module:

    • The save command is executed.
    • After the startup saved-configuration command is executed, the specified configuration file will be synchronized to the management module.
    • Every 5 minutes.
    • The reboot command is executed.
    • After the reset saved-configuration command is executed and confirmed, the configuration is deleted and synchronized to the management module.
    • After the working mode command is executed and confirmed, the working mode and the corresponding system configuration are synchronized to the management module.

Example

# Save the current configuration file to the default directory.

<HUAWEI> save
Warning: The current configuration will be written to the device. Continue? [Y/N]:y
Now saving the current configuration to the slot 1 
Info: Save the configuration successfully.

begin synchronize configuration to SMM ...
slot 1: upload configuration to SMM successfully.
Translation
Favorite
Download
Update Date:2025-07-01
Document ID:EDOC1000128405
Views:7715757
Downloads:2083
Average rating:4.75Points

Digital Signature File

digtal sigature tool