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

Other related questions:
Configure NAT server on S series switches
S7700, S9700, and S9300 series modular switches use SPUs to support the NAT server function.

Configuring an S series switch as an FTP server
Perform the following operations to configure an S series switch (except the S1700) as an FTP server: 1. Configure an IP address for the switch. 2. Configure the switch as an FTP server. system-view [HUAWEI] ftp server enable //Enable the FTP service. [HUAWEI] aaa [HUAWEI-aaa] local-user u1 password irreversible-cipher ftppwd@6789 //Set the FTP user name to u1 and password to ftppwd@6789. [HUAWEI-aaa] local-user u1 service-type ftp //Set the access type of the user to FTP. [HUAWEI-aaa] local-user u1 privilege level 15 //Set the user priority. [HUAWEI-aaa] local-user u1 ftp-directory flash:/ //Specify the directory that the user can access, which may be cfcard:/ for some S series modular switches. [HUAWEI-aaa] return

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)[]: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 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
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