• 产品与解决方案
  • 行业解决方案
  • 服务
  • 支持
  • 合作伙伴
  • 新华三人才研学中心
  • 关于我们

H3C EPC3108核心网 基础命令参考(E2123P01)-5W101

05-软件升级命令

本章节下载 05-软件升级命令  (157.57 KB)

docurl=/cn/Service/Document_Software/Document_Center/LTE/Catalog/Core_Network/H3C_EPC3100/Command/Command_Manual/H3C_EPC3108_CR(E2123)/202108/1436446_30005_0.htm

05-软件升级命令


1 软件升级

如果将可插拔存储介质内的软件包指定为设备下次启动时使用的软件包,重启设备时不要将可插拔存储介质从设备上拔出,否则可能导致设备无法正常启动。建议将设备出厂时的缺省介质作为设备下次启动时使用软件包的存储位置。

1.1  软件升级配置命令

1.1.1  boot-loader file

boot-loader file命令用来配置设备下次启动时使用的软件包。

【命令】

boot-loader file boot filename system filename [ feature filename&<1-30> ] { all | slot slot-number } { backup | main }

boot-loader file ipe-filename { all | slot slot-number } { backup | main }

【视图】

用户视图

【缺省用户角色】

network-admin

【参数】

boot:Boot包。

system:System包。

feature:Feature包。

filename&<1-30>:软件包的名称,形如filesystemname/filename.bin。该文件必须保存在设备任一文件系统的根目录下,该参数中必须包含文件系统的名称,从存储介质名称开始最多可输入63个字符。&<1-30>表示前面的参数最多可以输入30次。

ipe-filename:IPE(Image Package Envelope,复合软件包套件)文件的名称,形如filesystemname/filename.ipe。该文件必须保存在设备任一文件系统的根目录下,该参数中必须包含文件系统的名称,从存储介质名称开始最多可输入63个字符。

all:指定系统中软件包适用的所有的硬件。

slot slot-number:表示待升级的主控板所在的槽位号。

backup:指定该软件包为备用启动软件包。备用启动软件包用于主用启动软件包不可用或异常情况时,引导设备启动。

main:指定该软件包为主用启动软件包。主用启动软件包用于引导设备启动。

【使用指导】

成功执行该命令后,系统会用命令中指定的软件包替换现有的软件包列表。如果命令行中没有指定Feature包,则更新后的软件包列表中不会有Feature包。

需要重启系统来完成指定下次启动软件包的加载。

系统会自动检查指定slot上对应路径下是否存在同名文件,如果不存在,则直接从指定路径拷贝一份并设置为下次启动软件包;如果存在,则提示用户是否从指定路径拷贝一份并设置为下次启动软件包。

【举例】

# 配置指定slot下次启动时所用的主用启动文件为cfa0:/epc3100-cmw710-a2121p01.ipe。

<Sysname> boot-loader file cfa0:/epc3100-cmw710-a2121p01.ipe slot 1 main

Verifying the file cfa0:/epc3100-cmw710-a2121p01.ipe on slot 1.......Done.

EPC3100 images in IPE:

  EPC3100-CMW710-BOOT-A2121P01.bin

  EPC3100-CMW710-SYSTEM-A2121P01.bin

This command will set the main startup software images. Please do not reboot any MPU during the upgrade. Continue? [Y/N]:y

Add images to slot 1.

Decompressing file EPC3100-CMW710-BOOT-A2121P01.bin to cfa0:/EPC3100-CMW710-BOOT-A2121P01.bin..............Done.

Decompressing file EPC3100-CMW710-SYSTEM-A2121P01.bin to cfa0:/EPC3100-CMW710-SYSTEM-A2121P01.bin..................................................................................................................................................................Done.

Verifying the file cfa0:/EPC3100-CMW710-BOOT-A2121P01.bin on slot 1...Done.

Verifying the file cfa0:/EPC3100-CMW710-SYSTEM-A2121P01.bin on slot 1......Done.

The images that have passed all examinations will be used as the main startup software images at the next reboot on slot 1.

Decompression completed.

You are recommended to delete the .ipe file after you set startup software images for all slots.

Do you want to delete cfa0:/epc3100-cmw710-a2121p01.ipe now? [Y/N]:N

# 配置设备的主用下次启动软件为cfa0:/epc3100-cmw710-a2121p01.ipe。

<Sysname> boot-loader file cfa0:/epc3100-cmw710-a2121p01.ipe all main

Verifying the file cfa0:/epc3100-cmw710-a2121p01.ipe on slot 1.......Done.

EPC3100 images in IPE:

  EPC3100-CMW710-BOOT-A2121P01.bin

  EPC3100-CMW710-SYSTEM-A2121P01.bin

This command will set the main startup software images. Please do not reboot any MPU during the upgrade. Continue? [Y/N]:Y

Add images to slot 1.

Decompressing file EPC3100-CMW710-BOOT-A2121P01.bin to cfa0:/EPC3100-CMW710-BOOT-A2121P01.bin..............Done.

Decompressing file EPC3100-CMW710-SYSTEM-A2121P01.bin to cfa0:/EPC3100-CMW710-SYSTEM-A2121P01.bin...................................................................................................................................................................Done.

Verifying the file cfa0:/EPC3100-CMW710-BOOT-A2121P01.bin on slot 1...Done.

Verifying the file cfa0:/EPC3100-CMW710-SYSTEM-A2121P01.bin on slot 1......Done.

The images that have passed all examinations will be used as the main startup software images at the next reboot on slot 1.

Loading...........................................................Done.

Loading............................................................................................................................................................................................................................................................................................................................................................................................................................................Done.

Verifying the file cfa0:/EPC3100-CMW710-BOOT-A2121P01.bin on slot 0...Done.

Verifying the file cfa0:/EPC3100-CMW710-SYSTEM-A2121P01.bin on slot 0.........Done.

The images that have passed all examinations will be used as the main startup software images at the next reboot on slot 0.

Decompression completed.

Do you want to delete cfa0:/epc3100-cmw710-a2121p01.ipe now? [Y/N]:N

【相关命令】

·              display boot-loader

1.1.2  boot-loader update

boot-loader update命令用来实现当前软件版本的自动同步。

【命令】

boot-loader update { all | slot slot-number }

【视图】

用户视图

【缺省用户角色】

network-admin

【参数】

all:表示同步升级所有备用主控板。

slot slot-number:表示待升级的备用主控板所在的槽位号。

【使用指导】

对于新增的主控板,可以使用本命令同步启动软件包。

通过该命令指定备用主控板的下次启动软件包时,系统会进行如下处理:

·              如果主用主控板当前是使用主用启动软件包列表启动的,则将其主用下次启动软件包列表中的软件包拷贝到备用主控板的对应目录下,并设置为备用主控板的主用下次启动软件包。如果这些软件包中有任一软件包不存在或者不可用,则命令执行失败。

·              如果主用主控板当前是使用备用启动软件包列表启动的,则将其备用下次启动软件包列表中的软件包拷贝到备用主控板的对应目录下,并设置为备用主控板的主用下次启动软件包。如果这些软件包中有任一软件包不存在或者不可用,则命令执行失败。

【举例】

# 同步指定slot的软件版本。

<Sysname> boot-loader update slot 0

This command will update the specified standby MPU. Continue? [Y/N]:y

Updating. Please wait...

Verifying the file cfa0:/EPC3100-CMW710-BOOT-A2121P01.bin on slot 1...Done.

Verifying the file cfa0:/EPC3100-CMW710-SYSTEM-A2121P01.bin on slot 1.......Done.

Copying main startup software images to slot 0. Please wait...Done.

Setting copied images as main startup software images for slot 0...            

The images that have passed all examinations will be used as the main startup software images at the next reboot on slot 0.                                     Done.

Successfully updated the startup software images of slot 0.   

【相关命令】

·              display boot-loader

1.1.3  display boot-loader

display boot-loader命令用来显示本次启动和下次启动所采用的启动软件包的名称。

【命令】

display boot-loader [ slot slot-number ]

【视图】

任意视图

【缺省用户角色】

network-admin

network-operator

【参数】

slot slot-number:表示主控板所在的槽位号。不指定该参数时,表示设备上的所有主控板。

【举例】

# 显示本次启动和下次启动所采用的启动软件包的名称。

<Sysname> display boot-loader

Software images on slot 0:                                                     

Current software images:                                                        

  cfa0:/EPC3100-CMW710-BOOT-A2121P01.bin                                       

  cfa0:/EPC3100-CMW710-SYSTEM-A2121P01.bin                                     

Main startup software images:                                                  

  cfa0:/EPC3100-CMW710-BOOT-A2121P01.bin                                       

  cfa0:/EPC3100-CMW710-SYSTEM-A2121P01.bin                                     

Backup startup software images:                                                

  cfa0:/EPC3100-CMW710-BOOT-D2120.bin                                          

  cfa0:/EPC3100-CMW710-SYSTEM-D2120.bin                                        

Software images on slot 1:                                                     

Current software images:                                                        

  cfa0:/EPC3100-CMW710-BOOT-A2121P01.bin                                       

  cfa0:/EPC3100-CMW710-SYSTEM-A2121P01.bin                                     

Main startup software images:                                                   

  cfa0:/EPC3100-CMW710-BOOT-A2121P01.bin                                       

  cfa0:/EPC3100-CMW710-SYSTEM-A2121P01.bin                                     

Backup startup software images:                                                 

  cfa0:/EPC3100-CMW710-BOOT-D2120P01.bin                                       

  cfa0:/EPC3100-CMW710-SYSTEM-D2120P01.bin  

表1-1 display boot-loader命令显示信息描述表

字段

描述

Software images

启动软件包的相关信息

Current software images

最近一次启动使用的启动软件包列表

Main startup software images

主用下次启动软件包列表

Backup startup software images

备用下次启动软件包列表

 

【相关命令】

·              boot-loader file

1.1.4  version auto-update enable

version auto-update enable命令用来开启备用主控板自动加载启动软件包的功能。

undo version auto-update enable命令用来关闭备用主控板自动加载启动软件包的功能。

【命令】

version auto-update enable

undo version auto-update enable

【缺省情况】

备用主控板自动加载启动软件包的功能处于开启状态。当启动过程中,当备用主控板发现自己版本和主用主控板版本不一致时,会自动加载主用主控板的当前启动软件包。

【视图】

系统视图

【缺省用户角色】

network-admin

【使用指导】

备用主控板自动加载的是主用主控板当前的启动软件包。

配置本命令及undo version check ignore命令后,在设备启动过程中,当备用主控板发现自己当前启动软件包版本和主用主控板的当前启动软件包版本不一致时,会自动拷贝主用主控板的当前启动软件包列表中的所有软件包,设置为自己的主用下次启动软件包,并自动重启。这样,能够使得备用主控板启动后,和主用主控板启动软件包的版本一致。

【举例】

# 开启备用主控板自动加载启动软件包的功能。

<Sysname> system-view

[Sysname] version auto-update enable

【相关命令】

·              version check ignore

1.1.5  version check ignore

version check ignore命令用来关闭对备用主控板进行启动软件包版本一致性检查功能。

undo version check ignore命令用来恢复缺省情况。

【命令】

version check ignore

undo version check ignore

【缺省情况】

对备用主控板启动软件包版本一致性检查功能处于开启状态。

【视图】

系统视图

【缺省用户角色】

network-admin

【使用指导】

如果关闭对备用主控板进行启动软件包版本一致性检查功能,当备用主控板和主用主控板启动软件包版本不一致时,备用主控板仍然使用不一致的版本启动,可能会造成设备功能问题。

如果开启对备用主控板进行启动软件包版本一致性检查功能,当备用主控板和主用主控板启动软件包版本不一致时,备用主控板会停留在启动阶段,不能正常启动。

建议用户不要关闭启动软件包版本一致性检查功能。

【举例】

# 开启对备用主控板进行版本一致性检查功能。

<Sysname> system-view

[Sysname] undo version check ignore

【相关命令】

·              version auto-update enable

不同款型规格的资料略有差异, 详细信息请向具体销售和400咨询。H3C保留在没有任何通知或提示的情况下对资料内容进行修改的权利!

新华三官网
联系我们