Backing Up the Configuration File
Scenarios
Back up the configuration file of the CX310 so that the configuration data can be restored if faults occur.
Use one of the following methods to back up the converged switching plane configuration file:
- Run the save command to save configuration data to the CX310 and MM910.
- Run the reboot command and enter N as prompted to ensure that the configuration file is synchronized to the MM910.
- Export the configuration file of the MM910, and download the configuration file from the MM910 to a PC by using a cross-platform file transfer tool, for example, WinSCP.
Prerequisites
Conditions
Data
No data preparation is required for this operation.
Software
WinSCP.exe (third-party free software)
Procedure
- Log in to the converged switching plane CLI.
- Log in to the MM910 CLI.
- Configure the converged switching plane.
- Save the converged switching plane configuration file.
- Run the following command on the converged switching plane CLI to view the configuration file required for the next startup of the converged switching plane:
<HUAWEI> display startup
The command output is as follows:
MainBoard: Configured startup system software: flash:/xxx.cc Startup system software: flash:/xxx.cc Next startup system software: flash:/xxx.cc Startup saved-configuration file: NULL Next startup saved-configuration file: flash:/vrpcfg.zip Startup paf file: default Next startup paf file: default Startup patch package: NULL Next startup patch package: NULL
Next startup saved-configuration file indicates the configuration file for the next startup. The displayed information indicates that the configuration file is in vrpcfg.zip format.
The configuration file must be a *.zip or *.cfg file. If the configuration file is a *.dat file, this file cannot be synchronized to the MM910.
If the configuration file is a *.dat file, perform the following operations:
- Run the save Configuration file name command to convert the configuration file into a *.zip or *.cfg file.
- Run the startup saved-configuration Configuration file name command to set the configuration file used for the next startup to the saved *.zip or *.cfg file.
For details, see the CX110 and CX31x Series Switch Modules V100R001C00 Command Reference.
- Save the converged switching plane configuration file from the CX310 to the MM910.
<HUAWEI> save
The command output is as follows:
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. <HUAWEI>
- Check that the configuration file is synchronized to the MM910 successfully.
<HUAWEI> reboot
If the following information is displayed, the configuration file is successfully synchronized.
slot 2: Next startup system software: flash:/xxx.cc Next startup saved-configuration file: flash:/vrpcfg.zip Next startup paf file: default Next startup patch package: NULL begin synchronize configuration to SMM ... slot 2: upload configuration to SMM successfully. System will reboot! Continue? [Y/N]:
If a configuration file synchronization failure message is displayed, contact Huawei technical support.
- Enter N to reject the restart.
- Connect the Ethernet port on a PC to the MGMT ports on the active and standby MM910s over a local area network (LAN).
- If the MGMT port on the active MM910 is already connected with a network cable, do not remove the network cable from the MGMT port. Otherwise, an active/standby switchover of the MM910s will be triggered, which may cause network interruption.
- If you want to connect your local PC directly to the MM910 using a network cable but the MGMT port on the active MM910 is already connected with a network cable, connect the network cable from the local PC to the STACK port of the active MM910 in the chassis. If the STACK port on the active MM910 is also used, connect the network cable to an idle STACK port on an active MM910 in a chassis cascaded with the E9000 chassis.
- Connect to the MM910 floating IP address over SSH to log in to the MM910 CLI.
PuTTY is used as an example for login over SSH. For details, see Logging In to the MM910 CLI over a Network Port by Using PuTTY.
- Query the version of the MM910.
smmget -l smm -d version
The information is displayed as follows:
SMM Version Information: Uboot Version :(U54)012 CPLD Version :(U1082)008 121120 PCB Version :SMMA REV B BOM Version : 003 FPGA Version :(U1049)007 121116 Software Version :(U54)2.0 IPMI Module Built:Mar 14 2013 22:31:44
The value of the parameter Software Version is the software version of the MM910.
- Select an operation based on the MM910 software version.
- Use a cross-platform file transfer tool, and enter the MM910 floating IP address to download the configuration file to the PC in binary file transmission mode.
- The configuration file of the converged switching plane on the MM910 is 2_1_1.cfg. The file name is different from that on the switch module.
- The path for storing the configuration file is /common/flash/bladecfg/swiN.
N is the CX310 slot number that ranges from 1 to 4, which map to the logical slot numbers 1E, 2X, 3X, and 4E from left to right.
WinSCP is used as an example cross-platform file transfer tool. For details, see Transferring Files Using WinSCP.
Set the WinSCP transfer mode to the binary mode as follows: Press the shortcut keys Ctrl+Alt+P. The Preferences window is displayed. In the navigation tree on the left, choose Transfer, and click Binary and OK.
- Run the following command on the MM910 CLI to export the configuration file of the converged switching plane:
root@SMM:/# swiconfexport swiN
N is the slot number of a switch module. Its value ranges from 1 to 4, mapping to switch module slots 1E, 2X, 3X, and 4E from left to right.
The following information is displayed with the configuration file name and directory.
Succeed Please check "/tmp/exchang/swiN/swiN.tar.gz"
- Use a cross-platform file transfer tool, and enter the MM910 floating IP address to download the configuration file shown in the command output to the PC in binary file transmission mode.
WinSCP is used as an example cross-platform file transfer tool. For details, see Transferring Files Using WinSCP.
Set the WinSCP transfer mode to the binary mode as follows: Press the shortcut keys Ctrl+Alt+P. The Preferences window is displayed. In the navigation tree on the left, choose Transfer, and click Binary and OK.
After the configuration file is downloaded to the PC and decompressed, the converged switching plane configuration file is 2_1_1.cfg.
- Run the following command on the converged switching plane CLI to view the configuration file required for the next startup of the converged switching plane: