Restoring the Configuration File
Scenarios
Restore the configuration file to the CX310.
Use one of the following methods to restore the converged switching plane configuration file:
- Power on the converged switching plane. The system automatically uses the configuration file of the MM910 to restore configuration data. This section does not describe the automatic restoration.
- Upload and load the configuration file of the converged switching plane to the MM910 and restart the converged switching plane. The system automatically uses the configuration file of the MM910 to restore configuration data. For details, see Procedure.
Prerequisites
Conditions
The PC contains a configuration file.
Procedure
- Log in to the converged switching plane CLI.
- Log in to the MM910 CLI.
- Restore the converged switching plane configuration file.
- 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.
- Run the following command on the CLI of the converged switching plane to disable converged switching plane configuration synchronization to the MM910 before a restart:
<HUAWEI> config-sync disable before-reboot
If the following information is displayed, the setting is successful:
XCU won't synchronize configuration to SMM before reboot.
- Use a cross-platform file transfer tool and enter the floating IP address of the MM910 to transfer the configuration file on the PC to the MM910 in binary file transmission mode.
You are advised to back up and rename the existing configuration file on the MM910 before the upload. Otherwise, it will be replaced by the uploaded configuration file. For details about how to back up the configuration file, see Backing Up the Configuration File.
- The configuration file name is 2_1_1.cfg.
- The path for storing the configuration file is /common/flash/bladecfg/swiN.
N ranges from 1 to 4, mapping to switch module slots 1E, 2X, 3X, and 4E from left to right.
This section uses WinSCP as the 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 converged switching plane CLI to restart the converged switching plane:
<HUAWEI> reboot
The command output is as follows:
slot 4: 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 Warning: Current configuration will be saved to the next startup saved-configuration file! Continue? [Y/N]:
Enter N. The following information is displayed:
System will reboot! Continue? [Y/N]:
Enter Y. The converged switching plane restarts and the configuration file is automatically restored after the restart.
- Use a cross-platform file transfer tool and enter the MM910 floating IP address to transfer the configuration file on the PC to the MM910 in binary file transmission mode.
You are advised to back up and rename the existing configuration file on the MM910 before the upload. Otherwise, it will be replaced by the uploaded configuration file. For details about how to back up the configuration file, see Backing Up the Configuration File.
- The configuration file name is 2_1_1.cfg.
- The upload path of the configuration file is /tmp/exchang/swiN.
N ranges from 1 to 4, mapping to switch module slots 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 load the configuration file of the converged switching plane:
root@SMM:/#smmset -l swiN -d offlineconfig -v bladetype planenum filename
The parameters are described as follows:
- N: specifies 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.
- bladetype: indicates the type of the blade where the configuration file is to be loaded. The value of the CX310 is 2.
- planenum: indicates the switching plane number. The value of the converged switching plane is 1.
- filename: indicates the name of the configuration file to be loaded.
The following information is displayed:
In this condition,if offline configuration success,the blade will reboot. Do you want to continue?[Y/N]:y Success
The converged switching plane restarts automatically after the configuration file is successfully loaded to the MM910, and the configuration file is automatically restored after 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).