Why does the configuration file fail to be saved using the save command when the switch space is sufficient


By default, a switch compresses and saves the configuration file to a *.zip file. The compression requires a large amount of space. If the remaining memory on the switch is insufficient, the configuration file cannot be saved.
To resolve this problem, compress and save the configuration file to a *.cfg file on the switch.

Other related questions:
How to save configuration locally on an AR router
There are two methods to export configuration locally on an AR router: web NMS and command lines.

1. Web NMS (example):
Log in to the web NMS, and choose System Management > Upgrade and Maintenance > Restart Device. Click Export Configuration File to back up the current configuration file to a local PC.

2. Command lines (example):
Use the router as an FTP server, and enable the FTP service.  
Enable the FTP server on the router, and create an FTP user with the user name huawei and password Helloworld@6789. Authorize the user to access the directory sd1:.
<Huawei> system-view
[Huawei] ftp server enable
Info: Succeeded in starting the FTP server.
[Huawei] aaa
[Huawei-aaa] local-user huawei password irreversible-cipher Helloworld@6789
[Huawei-aaa] local-user huawei ftp-directory sd1:
[Huawei-aaa] local-user huawei service-type ftp
[Huawei-aaa] local-user huawei privilege level 15

Initiate an FTP connection from a maintenance PC to the router.  
On the PC, create an FTP connection to the router through the FTP client (for example, the IP address of the router is
C:\Documents and Setting\Administrator> ftp
Connected to
220 FTP service ready.
User ( huawei
331 Password required for huawei.
230 User logged in.

Set transmission parameters.  
After the FTP user passes the authentication, the FTP client displays the prompt "ftp>". Enter binary (binary transmission mode) under the prompt ftp>, and set a directory on the FTP client for storing uploaded files.
ftp> binary
200 Type set to I.
ftp> lcd c:\temp
Local directory now C:\temp.

Transmit the configuration file.  
On the PC, run the get command to download the configuration file to a locally specified directory, and name the file backup.cfg.
ftp> get sd1:/config.cfg backup.cfg

How are log files saved
The log files are saved when a storage device such as a Flash memory, a USB flash drive or an SD card is available. In the user view, run the save logfile command to save log files.

Save the configuration of the S1728GWR-4P switch
Save the configuration of an S1728GWR-4P switch as follows: Choose System > File, select Config File from the Action drop-down list box, and save a configuration file. Perform the following steps: 1. Choose System > File. 2. Select Config File from the Action drop-down list box. 3. Select save the current configuration from the operation list. 4. Choose needs to be saved in the Save as file name, or rename files. 5. Click Apply.

Configuring an S series switch to save the configuration file to a server periodically
To enable an S series switch (except the S1700) to periodically save its configuration file to a server, perform the following configurations: 1. Set information about the server to which the configuration file is to be automatically saved. Set the file transfer mode to FTP, FTP server IP address to, user name to admin1234, and password to Helloworld@6789. system-view [HUAWEI] set save-configuration backup-to-server server transport-type ftp user admin1234 password Helloworld@6789 2. Set the interval for the system to save new configurations automatically to 60 minutes. [HUAWEI] set save-configuration interval 60

What should I do if the configuration of an S series switch is lost after restart
If the configuration of an S series switch (except the S1700) is lost after restart, the possible reasons are as follows: the configuration fails to be saved or the specified startup file is incorrect. Handle the problem as follows:
1. If the configuration fails to be saved, run the following command to save the configuration:
<HUAWEI> save
The current configuration will be written to the device. Are you sure to continue?[Y/N]Y
Info: Please input the file name(*.cfg,*.zip)[vrpcfg.zip]:Y
When the configuration of a new switch is saved for the first time, the system asks you to enter the name of the configuration file to which the configuration is to be saved, which is vrpcfg.zip by default or a created file with name extension .zip or .cfg. If the configuration does not need to be saved to other files separately, press Enter. (Press Enter or enter the new configuration file name. Otherwise, the configuration cannot be written to the configuration file and the switch still restarts with no configuration.)
If the message Info: Save the configuration successfully. is displayed, the configuration is saved successfully. You are advised to run the display saved-configuration command to verify that the configuration is successfully written to the configuration file.
2. If the configuration file for the next startup is not specified or the name of the specified file is different from that of the saved configuration file, perform the following operations:
a. Check the configuration file.
<HUAWEI> dir /all
b. Check whether the name of the configuration file for the next startup (represented by the Next startup saved-configuration file field) is the same as that of the saved configuration file. If the field is empty or specifies another file name, run a command to specify the saved configuration file for the next startup.
<HUAWEI> display startup
c. Specify the configuration for the next startup. startup saved-configuration vrpcfg.zip
3. If DHCP-related configurations are lost after DHCP is configured and saved on a new switch that is started for the first time, the possible cause is as follows:
If a switch starts without any configuration, the switch automatically starts the auto-config process. This process triggers the DHCP function for the switch to automatically obtain an IP address and the configuration file from a DHCP on the network. When DHCP is manually configured, the auto-config process is automatically disabled, so the DHCP function is also automatically disabled. Therefore, DHCP-related commands are lost after the DHCP configuration is saved.

If you have more questions, you can seek help from following ways:
To iKnow To Live Chat
Scroll to top