Upgrade the image Program Package
Configuration Condition
Before upgrading the image program package, ensure that:
- The route between the TFTP/FTP server and the device interface is reachable, and the TFTP/FTP server and the device can ping each other successfully.
- The TFTP/FTP server configuration is correct, and the image program is stored in the specified directory of the TFTP/FTP server.
- The remaining space of the corresponding storage path is sufficient. If the space is insufficient, manually delete the unnecessary files in the corresponding storage path.
- The configuration files have been backed up.
Upgrade the image Program Package in TFTP/FTP Mode
Enter the privileged user mode, ensure that the device can obtain the upgrade program through the external TFTP/FTP server, and then use the sysupdate image command to upgrade the program package.
Table 10-2 Upgrading the image Program Package in TFTP/FTP Mode
Step
|
Command
|
Description
|
Enter the privileged user mode.
|
None
|
Mandatory.
|
Upgrade the image program package.
|
sysupdate image [device {memberId | all}] mpu dest-ip-address filename [ ftp ftp-username ftp-password ] [ reload ]
|
Mandatory.
If the FTP option is not specified, TFTP is used for upgrade by default.
|
Example: In the stacking mode, make use of the FTP server 130.255.168.45 to upgrade the image program package with the image file name sp9b-g-6.6.6.1.2(R).pck through the device interface.
Hostname #sysupdate image device all mpu 130.255.168.45 sp9b-g-6.6.6.1.2(R).pck ftp a 123456
checking "sp35-g-9.4.0.12(R).pck" : ... OK
downloading "sp35-g-9.4.0.12(R).pck" : ###########OK
Download "sp35-g-9.4.0.12(R).pck" (40175300 Bytes) successfully
Sysupdate start to write image sp35-g-9.4.0.12(R).pck:
Verify the image...valid!
Writing file /flash/ sp35-g-9.4.0.12(R).pck ................................OK!
write ios to backup file-system............................OK!
%Sysupdate image is in process, please wait...
%Sysupdate image finished...
sysupdate image result information list:
----------------------------------------------------------------
Card result information
----------------------------------------------------------------
Device 0 - Mpu sysupdate successfully!
Hostname #
|
#The above message indicates that the image program of the device has been upgraded successfully. After upgrading is complete, output the report and log information of the upgrading result.
-
If the command option reload is added, the system prompts whether to save the configuration and whether to restart the device. Usually, the device is started after all programs are upgraded. Therefore, the reload option is not recommended.
- Before the upgrade, ensure that there is sufficient remaining space in the corresponding storage path. If the space is insufficient, the upgrade fails. In this case, you can manually delete files that are not in need from the corresponding storage path to obtain more space for upgrading application programs.
- It takes a long time to upgrade the image program package. A smaller remaining space in the corresponding storage path results in longer upgrade time.
- After the upgrade is completed, to run the new image program, restart the device.
- If the device fails to start normally, open the bootloader screen, modify the startup mode to network startup. After the device is started successfully, start the upgrade. For the method, refer to the related section in the bootloader configuration manual and technical manual.
-
During the upgrade process, the device must not be powered off. Otherwise, the system may fail to start, or the corresponding storage path file system of the device may be damaged.