To add new features, optimize existing features, or solve problems in the current version, you need to upgrade the device. To upgrade the device, load the upgrade system software and restart the device.
Networking Requirements
As shown in Figure 1-1, the device has dual main processing units (MPUs), and the current system software cannot meet user needs. The device must load new software version with more features. Then the device software needs to be upgraded remotely.
Figure 1-1 Configuring System Startup Networking
Configuration Roadmap
The configuration roadmap is as follows:
1. Upload the new system software to the root directory of the device. When the device has dual MPUs, save the system software to both the master MPU and slave MPU.
2. Save the current configuration so that it remains active after upgrade.
3. Specify the system software for next startup.
4. Specify the configuration file for next startup of the device.
5. Restart the device to complete upgrade.
Procedure
Step 1 Upload the new system software to the root directory of the device.
Before configuration, run the display startup command to view the files for next startup.
<HUAWEI> system-view
[HUAWEI] sysname Switch
[Switch] quit
<Switch> display startup
MainBoard:
Configured startup system
software: flash:/basicsoft.cc
Startup system
software:
flash:/basicsoft.cc
Next startup system
software:
flash:/basicsoft.cc
Startup saved-configuration
file: flash:/vrpcfg.zip
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
SlaveBoard:
Configured startup system
software: flash:/basicsoft.cc
Startup system
software:
flash:/basicsoft.cc
Next startup system
software:
flash:/basicsoft.cc
Startup saved-configuration
file: flash:/vrpcfg.zip
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
# Upload the new system software to the device. This example uses FTP to transfer the system software. Configure the device as an FTP server and upload the system software to the device from the FTP client. Make sure there is enough space in the storage device before uploading files. If the space is insufficient, delete unnecessary files to free up space in the storage device.
<Switch> system-view
[Switch] ftp server enable
[Switch] aaa
[Switch-aaa] local-user huawei password irreversible-cipher Helloworld@6789
[Switch-aaa] local-user huawei service-type ftp
[Switch-aaa] local-user huawei ftp-directory flash:
[Switch-aaa] local-user huawei level 15
[Switch-aaa] commit
[Switch-aaa] quit
[Switch] quit
# Run the ftp 10.1.1.1 command in the command line window of the PC to set up an FTP connection with the device. Run the put command to upload new system software newbasicsoft.cc. After the upload completes, run the dir command to check the system software.
<Switch> dir
Directory of flash:/
Idx Attr Size(Byte)
Date
Time FileName
0
drw-
- Apr 16 2012 13:19:58 logfile
1 -rw- 85,925,409 Apr 16
2012 13:18:02 basicsoft.cc
2
-rw-
4 Oct 27 2011 17:25:22 snmpnotilog.txt
3
-rw- 6,033 Jul 16
2012 16:40:02 private-data.txt
4
-rw- 3,275 Jul 14
2012 14:18:08 vrpcfg.zip
5
drw-
- Nov 14 2011 19:14:26 sysdrv
6 drw- 88,239,759 Jul 16
2012 19:14:26 newbasicsoft.cc
...
3,304,060 KB total (2,044,124 KB free)
# Copy the newbasicsoft.cc file to the slave MPU.
<Switch> copy newbasicsoft.cc slave#flash:/newbasicsoft.cc
Run dir slave#flash: to check whether the file has been copied to the slave MPU.
Step 2 Save the current configuration to both the master and slave MPUs.
<Switch> save
The current configuration will be written to the
device.
Are you sure to continue? [Y/N]y
Now saving the current configuration to the slot 0
.
Info: Save the configuration successfully.
Step 3 Specify the system software to be loaded for next startup.
# Configure the system software for next startup on master MPU.
<Switch> startup system-software newbasicsoft.cc
# Configure the system software for next startup on slave MPU.
<Switch> startup system-software newbasicsoft.cc slave-board
When the device has double MPUs, save the system software to both master and slave MPUs. Then configure the system software for next startup on both the master and slave MPUs.
Step 4 Specify the configuration file for next startup.
<Switch> startup saved-configuration vrpcfg.zip
l In step 1, you can run the display startup command to check the configuration file for next startup. The message "Next startup saved-configuration file: flash:/vrpcfg.zip will be displayed. This means that the vrpcfg.zip configuration file has been specified for next startup, so skip this step. To specify another file for next startup, perform this step.
l If a configuration file is specified for next startup on the master MPU, the slave MPU automatically updates the configuration for next startup.
Step 5 Checking the configuration
# Run the following command to view the system software and configuration file for next startup.
<Switch> display startup
MainBoard:
Configured startup system
software: flash:/basicsoft.cc
Startup system
software:
flash:/basicsoft.cc
Next startup system
software:
flash:/newbasicsoft.cc
Startup saved-configuration
file: flash:/vrpcfg.zip
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
SlaveBoard:
Configured startup system
software: flash:/basicsoft.cc
Startup system
software:
flash:/basicsoft.cc
Next startup system
software:
flash:/newbasicsoft.cc
Startup saved-configuration
file: flash:/vrpcfg.zip
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
Step 6 Restart the device.
# Since the configuration file has been saved, run the reboot fast command to restart the device quickly.
<Switch> reboot fast
System will reboot! Continue? [Y/N]:y
Info: system is rebooting ,please wait...
Step 7 Verify the configuration.
# Wait for several minutes until the device restart is complete. Run the display version command to check the current system version. If the current system software is new, the upgrading has succeeded.
The display version command output is not provided here.
----End