Upgrade the Package File
The package file contains the image, bootloader files, which can be upgraded once via the package file.
Configuration Preparations
Before upgrading the package file, you need to complete the following task:
- Ensure that the route between the TFTP/FTP server and the device interface is reachable, and they can ping each other.
- The TFTP/FTP server is configured correctly, and the package file is correctly placed in the specified directory of TFTP/FTP.
- Back up the configuration file.
Upgrade Package File via TFTP/FTP
Enter the privileged user mode, ensure that the device can get the upgrade program from the external TFTP/FTP server, and then, upgrade via the sysupdate package command.
Table 10-5 Upgrade the package file via TFTP/FTP
Step
|
Command
|
Description
|
Enter the privileged user mode.
|
None
|
Mandatory.
|
Upgrade the package file
|
sysupdate package dest-ip-address filename [ftp ftp-username ftp-password ][ no-comparision][ reload]
|
Mandatory
If not specifying the FTP option, use TFTP to upgrade by default.
|
#Upgrade the sp35-g-9.4.0.17(R)-001.pkg file of the device via the FTP server 130.255.168.45.
Hostname# sysupdate package 130.255.168.45 sp35-g-9.4.0.17(R)-001.pkg FTP a a |
-
If the command option reload is added, the system prompts whether to save the configuration, and whether to restart the device immediately. However, usually the device is started after all programs are upgraded. Therefore, the reload option is not recommended.
-
During the upgrade process, the device must not be powered off. Otherwise, the system may fail to start, or the file may be damaged.