07-软件升级命令
本章节下载: 07-软件升级命令 (176.43 KB)
如果将可插拔存储介质内的软件包指定为设备下次启动时使用的软件包,重启设备时不要将可插拔存储介质从设备上拔出,否则可能导致设备无法正常启动。建议将设备出厂时的缺省介质作为设备下次启动时使用软件包的存储位置。可插拔存储介质的支持情况与设备型号有关,请以设备实际情况为准。
boot-loader file命令用来配置设备下次启动时使用的软件包。
【命令】
boot-loader file boot filename system filename [ feature filename&<1-30> ] [ patch filename&<1-30> ] { backup | main }
boot-loader file ipe-filename [ patch filename&<1-30> ] { backup | main [ undecompressed ] }
【视图】
用户视图
【缺省用户角色】
network-admin
【参数】
boot:Boot包。
system:System包。
feature:Feature包。
filename&<1-30>:软件包的名称,形如filesystemname/filename.bin。该文件必须保存在设备任一文件系统的根目录下,该参数中必须包含文件系统的名称,从存储介质名称开始最多可输入63个字符。&<1-30>表示前面的参数最多可以输入30次。有关指定文件夹和文件详细介绍请参见“基础配置指导”中的“文件系统管理”。
patch:Patch包。该参数既可以指定叠加补丁也可以指定非叠加补丁。叠加补丁最多可以同时安装30个;由于每个非叠加补丁包只能为一个Boot、System或Feature包打补丁,所以非叠加补丁最多只能同时安装16个。
ipe-filename:IPE(Image Package Envelope,复合软件包套件)文件的名称,形如filesystemname/filename.ipe。该文件必须保存在设备任一文件系统的根目录下,该参数中必须包含文件系统的名称,从存储介质名称开始最多可输入63个字符。有关指定文件夹和文件详细介绍请参见“基础配置指导”中的“文件系统管理”。
backup:指定该软件包为备用启动软件包。备用启动软件包用于主用启动软件包不可用或异常情况时,引导设备启动。
main:指定该软件包为主用启动软件包。主用启动软件包用于引导设备启动。
undecompressed:表示不解压IPE包,直接将其设置为下次启动软件包。不指定该参数时,设备将立即解压IPE包并将解压出的BIN包设置为下次启动软件包。当设备存储介质上空间足够的时候,建议不要指定该参数。
【使用指导】
当前软件不能满足现网运行或用户业务需求时,可以使用本命令进行软件升级,实现设备性能优化,以满足用户的业务需求。
成功执行该命令后,系统会用命令中指定的软件包替换现有的软件包列表。如果命令行中没有指定Feature包,则更新后的软件包列表中不会有Feature包。
成功执行本命令后,系统在用命令中指定的软件包替换现有的软件包列表前会对软件包进行数字签名校验,如果软件包通过校验则会替换现有的软件包列表;如果软件包未通过校验则不会替换现有的软件包列表,并返回错误提示信息。
需要重启系统来完成指定下次启动软件包的加载。
本命令不支持安装叠加补丁。
对于存储空间不足的设备指定下次主用启动软件包时,可以指定undecompressed参数,此时设备便不解压IPE包,直接将IPE包设置为主用下次启动软件包,并将当前的主用下次启动软件包设置为备用下次启动软件包。设备将在重启时解压IPE包,将解压出的BIN包设置为主用下次启动软件包来加载设备、完成启动,同时将IPE包删除。若解压IPE包、加载设备失败,则会使用备用下次启动软件包启动设备。
【举例】
# 配置设备下次启动时所用的主用启动文件为flash:/all.ipe。
<Sysname> boot-loader file flash:/all.ipe main
Verifying the file flash:/all.ipe on the device.............Done.
H3C WA6526E Switch images in IPE:
boot.bin
system.bin
This command will set the main startup software images. Continue? [Y/N]:Y
Add images to the device.
File flash:/boot.bin already exists on the device.
File flash:/system.bin already exists on the device.
Overwrite or rename the new file? [Yes/No/Rename]: R
Please input the file name (*.bin)[boot_1.bin]
(To use the recommended file name, press the Enter key):
Decompressing file boot.bin to flash:/boot_1.bin........................Done.
Please input the file name (*.bin)[system_1.bin]
(To use the recommended file name, press the Enter key):system_backup.bin
Decompressing file system.bin to flash:/system_backup.bin...........................Done.
Verifying the file flash:/boot_1.bin on the device...Done.
Verifying the file flash:/system_backup.bin on the device.............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命令用来显示本次启动和下次启动所采用的启动软件包的名称。
【命令】
display boot-loader
【视图】
任意视图
【缺省用户角色】
network-admin
network-operator
【举例】
# 显示本次启动和下次启动所采用的启动软件包的名称。
<Sysname> display boot-loader
Software images on the device:
Current software images:
flash:/boot.bin
flash:/system.bin
Main startup software images:
flash:/boot.bin
flash:/system.bin
Backup startup software images:
flash:/boot_backup.bin
flash:/system_backup.bin
# 显示本次启动和下次启动所采用的启动软件包的名称。
<Sysname> display boot-loader
Software images on the device:
Current software images:
Image Version
flash:/boot.bin Release 0053
flash:/system.bin Release 0053
Main startup software images:
Image Version
flash:/boot.bin Releae 0054
flash:/system.bin Releae 0054
Backup startup software images:
Image Version
flash:/boot_1.bin --
flash:/system_1.bin --
表1-1 display boot-loader命令显示信息描述表
字段 |
描述 |
Software images |
启动软件包的相关信息 |
Current software images |
最近一次启动使用的启动软件包列表 |
Main startup software images |
主用下次启动软件包列表 |
Image |
软件包的名称 |
Version |
软件包的版本号 当软件包被损坏或删除导致无法读取到版本号,则显示为— |
Backup startup software images |
备用下次启动软件包列表 显示为None时,表示未指定备用下次启动软件包 |
【相关命令】
不同款型规格的资料略有差异, 详细信息请向具体销售和400咨询。H3C保留在没有任何通知或提示的情况下对资料内容进行修改的权利!