07-软件升级命令
本章节下载: 07-软件升级命令 (114.02 KB)
boot-loader file命令用来指定设备下次启动时使用的软件包/IPE文件(以下简称下次启动软件包/IPE文件)。
boot-loader file ipe-filename { backup | main }
boot boot-package:Boot包的名称,以.bin作为后缀名,从存储介质名开始为1~63个字符的字符串(包括存储介质名在内),不区分大小写。
system system-package:System包的名称,以.bin作为后缀名,从存储介质名开始为1~63个字符的字符串(包括存储介质名在内),不区分大小写。
feature feature-package:Feature包的名称,以.bin作为后缀名,从存储介质名开始为1~63个字符的字符串(包括存储介质名在内),不区分大小写。feature-package&<1-30>表示前面的参数最多可以输入30次。
ipe-filename:表示IPE(Image Package Envelope,复合软件包套件)文件的名称,以.ipe作为后缀名,从存储介质名开始为1~63个字符的字符串(包括存储介质名在内),不区分大小写。
all:用来升级整个系统。
backup:指定该软件包为备用启动软件包,并将该软件包的名称添加到备用启动软件包列表。备用启动软件包用于主用启动软件包不可用或异常情况时,引导设备启动。
main:指定该软件包为主用启动软件包,并将该软件包的名称添加到主用启动软件包列表。主用启动软件包用于引导设备启动。
请先查看软件包版本发布说明书,如果软件包需要License才能运行,且设备当前没有对应的有效的License时,需安装对应的License,再执行该命令。否则:
· 对于boot-loader file boot boot-package system system-package [ feature feature-package&<1-30> ] { backup | main }命令,只要指定某个的软件包当前没有有效的License,就会导致整条命令配置失败。
· 对于boot-loader file ipe-filename { backup | main }命令,只有当前没有有效的License的软件包配置失败,其它软件包会配置成功。
当配置该命令时,命令中指定的软件包/IPE文件必须放在设备存储介质主分区的根目录下,文件名中必须包含存储介质的名称,形如flash:/xx.bin(flash:/xx.ipe)。
成功执行该命令后,系统会用命令中指定的软件包替换现有的软件包列表。如果命令行中没有指定Feature包,则更新后的软件包列表中不会有Feature包。
# 指定设备下次启动时所用的主用启动文件为flash:/all.ipe。
<Sysname> boot-loader file flash:/all.ipe main
Verifying the IPE file and the images............Done.
Images in IPE:
la3616-cmw710-boot-r0304.bin
la3616-cmw710-system-r0304.bin
la3616-cmw710-wifidog-r0304.bin
la3616-cmw710-security-r0304.bin
la3616-cmw710-voice-r0304.bin
la3616-cmw710-data-r0304.bin
This command will set the main startup software images. Continue? [Y/N]:Y
Add images to the device.
File flash:/la3616-cmw710-boot-r0304.bin already exists on the device.
File flash:/la3616-cmw710-system-r0304.bin already exists on the device.
File flash:/la3616-cmw710-wifidog-r0304.bin already exists on the device.
File flash:/la3616-cmw710-security-r0304.bin already exists on the device.
File flash:/la3616-cmw710-voice-r0304.bin already exists on the device.
File flash:/la3616-cmw710-data-r0304.bin already exists on the device.
Overwrite the existing files? [Y/N]:Y
Decompressing file la3616-cmw710-boot-r0304.bin.bin to flash:/la3616-cmw710-boot-r0304.bin.bin........................Done.
Decompressing file la3616-cmw710-system-r0304.bin.bin to flash:/la3616-cmw710-system-r0304.bin.bin........................Done.
Decompressing file la3616-cmw710-wifidog-r0304.bin.bin to flash:/la3616-cmw710-wifidog-r0304.bin.bin........................Done.
Decompressing file la3616-cmw710-security-r0304.bin.bin to flash:/la3616-cmw710-security-r0304.bin.bin........................Done.
Decompressing file la3616-cmw710-voice-r0304.bin.bin to flash:/la3616-cmw710-voice-r0304.bin.bin........................Done.
Decompressing file la3616-cmw710-data-r0304.bin.bin to flash:/la3616-cmw710-data-r0304.bin.bin........................Done.
The images that have passed all examinations will be used as the main startup software images at the next reboot on the device..
# 指定设备下次启动时所用的主用启动文件为flash:/boot.bin和flash:/system.bin。
<Sysname> boot-loader file boot flash:/boot.bin system flash:/system.bin main
This command will set the main startup software images. Continue? [Y/N]:y
The images that have passed all examinations will be used as the main startup
software images at the next reboot on the device.
display boot-loader命令用来显示本次启动和下次启动所采用的启动软件包的名称。
# 显示本次启动和下次启动所采用的启动软件包的名称。
Software images on the device:
Current software images:
flash:/la3616-cmw710-boot-r0304.bin
flash:/la3616-cmw710-system-r0304.bin
flash:/la3616-cmw710-wifidog-r0304.bin
flash:/la3616-cmw710-security-r0304.bin
flash:/la3616-cmw710-voice-r0304.bin
flash:/la3616-cmw710-data-r0304.bin
Main startup software images:
flash:/la3616-cmw710-boot-r0304.bin
flash:/la3616-cmw710-system-r0304.bin
flash:/la3616-cmw710-wifidog-r0304.bin
flash:/la3616-cmw710-security-r0304.bin
flash:/la3616-cmw710-voice-r0304.bin
flash:/la3616-cmw710-data-r0304.bin
Backup startup software images:
flash:/la3616-cmw710-boot-r0304.bin
flash:/la3616-cmw710-system-r0304.bin
flash:/la3616-cmw710-wifidog-r0304.bin
flash:/la3616-cmw710-security-r0304.bin
flash:/la3616-cmw710-voice-r0304.bin
flash:/la3616-cmw710-data-r0304.bin
表1-1 display boot-loader命令显示信息描述表
firmware update命令用来升级4G模块固件。
firmware update slot slot-number module module-number file filename
slot slot-number:子卡所在的子槽位号。
module module-number:表示需要升级指定模块,module-number表示模块的编号。
file filename:升级文件的名称。不同固件升级文件的后缀可能不同,文件名从存储介质名开始为1~63个字符的字符串(包括存储介质名在内),不区分大小写。
固件升级后需要对其所在的板卡进行下电后重新上电才能生效,对板卡下电的方式有:切断外部电源、插拔板卡等方式,请根据板卡的实际支持情况,选择下电方式。
# 升级4G模块固件。
<Sysname> firmware update slot 1 module 0 file package.bin
Updating firmware for module on the specified card or subcard. Continue?[Y/N]:y
Please power cycle the card or subcard to activate the firmware.
不同款型规格的资料略有差异, 详细信息请向具体销售和400咨询。H3C保留在没有任何通知或提示的情况下对资料内容进行修改的权利!