admin管理员组

文章数量:1564171

2024年7月30日发(作者:)

目 录

1 软件升级指南.....................................................................................................................................1-1

1.1 设备软件简介.....................................................................................................................................1-1

1.2 软件升级方式简介.............................................................................................................................1-1

1.3 通过命令行进行软件升级..................................................................................................................1-2

1.3.1 独立运行模式下的软件升级....................................................................................................1-2

1.3.2 IRF模式下的软件升级.............................................................................................................1-8

1.4 通过BootWare菜单进行软件升级....................................................................................................1-15

1.4.1 进入BootWare菜单...............................................................................................................1-15

1.4.2 BootWare子菜单介绍...........................................................................................................1-17

1.4.3 通过BootWare菜单升级启动文件.........................................................................................1-20

1.4.4 通过BootWare菜单升级1-30

1.4.5 通过BootWare菜单进行文件管理.........................................................................................1-41

1.5 软件升级失败的处理........................................................................................................................1-43

i

1

软件升级指南

1.1

设备软件简介

1. BootWare文件

用于升级单板BootWare的程序文件。完整的BootWare包含BootWare基本段和BootWare扩展

段。BootWare文件可以分为用于升级主控板的BootWare文件、用于升级业务板的BootWare文

件和用于升级网板的BootWare文件。

一般情况下,用户不需要单独升级BootWare程序,使用设备自带的Bootware程序即可。

2. 启动文件

用于引导设备启动的程序文件。S7600X系列交换机支持配置的启动文件如下:

z

z

z

主用启动文件(main),缺省情况下,设备使用主用启动文件启动设备。

备用启动文件(backup),当主用启动文件不可用时,设备使用备用启动文件启动设备。

安全启动文件(secure),当备用启动文件不可用时,设备使用安全启动文件启动设备。如

果安全启动文件不可用,系统将提示失败信息。

通常情况下,启动文件是一个后缀名为.bin的文件(例如:)。

3. 补丁文件

补丁(又称为补丁单元)是用来修复设备软件某个缺陷的程序包,补丁文件由补丁组成,一个补丁

文件可以包含一个或多个补丁,不同的补丁具有不同的功能。补丁文件与启动文件的版本一一对应,

补丁文件只能修复与其对应的启动文件的缺陷,不涉及功能的添加和删除。设备需要的同期发布的

多个补丁文件可以打包生成一个补丁包文件,这样就可以将原先对应于不同类型单板的多个补丁文

件合为一个整体,便于实际操作。目前S7600X系列交换机的补丁主要以补丁包文件的形式发布。

1.2

软件升级方式简介

表1-1 软件升级方式简介

升级方式

z

可执行操作

升级BootWare

升级启动文件

z

z

z

z

说明

需要重启设备来实现设备软件的升级。

使用该方式升级设备软件时会导致当前业务中断。

在升级过程中不会中断设备当前正在运行的业务。

只能修复与补丁文件对应启动文件的缺陷。

通过命令行进行软件升级

z

安装补丁

通过BootWare菜单进行软件升级

z

z

升级BootWare

升级启动文件

可在设备无法正常启动时升级设备软件。

1-1

z

设备支持通过ISSU(In-Service Software Upgrade,不中断业务升级)方式升级启动文件,ISSU

方式能够保证设备在升级过程中业务不中断,详细介绍请参见《H3C S7600[S7600-X]系列以

太网交换机 配置指导》中的“基础配置指导”。

为了确保主用主控板和备用主控板软件版本的一致,请使用相同的升级方式对主用主控板和备

用主控板进行升级。

进行软件升级前请确认当前的启动文件版本及BootWare版本,确保使用正确的文件。版本配

套关系请参见产品《版本说明书》中的版本配套表。

业务板和网板的BootWare程序只能通过命令行进行升级。

文中的举例仅做参考,设备的显示信息请以实际情况为准。

z

z

z

z

1.3

通过命令行进行软件升级

设备在独立运行模式和IRF模式下的升级步骤略有不同,请根据实际组网情况选择合适的升级步骤。

z

z

独立运行模式下的软件升级

IRF模式下的软件升级

S7600X系列交换机支持设备建立IRF(Intelligent Resilient Framework,智能弹性架构),配置了

IRF功能的S7600X交换机相互连接之后即虚拟化成一台IRF模式下的设备。IRF的相关介绍请参

见《H3C S7600[S7600-X]系列以太网交换机 配置指导》中的“IRF配置指导”。

1.3.1 独立运行模式下的软件升级

1. 软件升级准备操作

# 用户PC通过Telnet或者Console口登录到交换机上。

# 查看设备信息。

display device

Slot No. Brd Type Brd Status Subslot Num Sft Ver Patch Ver

0 LSU1SUPA Master 0 S7600X P001

1 LSU1SUPA Slave 0 S7600X P001

2 LSU1GP24TXSE Normal 0 S7600X P001

3 LSU1GP48EB Normal 0 S7600X P001

4 NONE Absent 0 NONE None

5 NONE Absent 0 NONE None

6 LSU1FAB04A Normal 0 S7600X P001

7 NONE Absent 0 NONE None

8 NONE Absent 0 NONE None

9 NONE Absent 0 NONE None

1-2

通过以上信息得出设备有两块主控板,主用主控板所在的槽位号为0,备用主控板所在的槽位号为

1,用户需要分别对主用主控板和备用主控板进行升级。

如果设备只安装一块主控板,则用户只需对此主控板进行升级操作。

# 查看主用主控板和备用主控板存储介质的剩余空间大小。

z

查看主用主控板存储介质的剩余空间大小。

dir

Directory of flash:/

0 -rw- 31912384 May 23 2000 144:40:52

1 drw- - Apr 01 2000 23:55:57 seclog

2 -rw- 5582 Apr 12 2000 06:46:17

3 -rw- 4866 Apr 11 2000 19:04:33

4 -rw- 31911744 Apr 06 2000 17:23:33

5 -rw- 9176 Apr 11 2000 17:44:02

6 -rw- 172 Apr 11 2000 17:44:10 patch_

7 -rw- 460 Apr 11 2000 17:44:16 patch_

8 -rw- 172 Apr 11 2000 17:44:28 patch_

9 -rw- 460 Apr 11 2000 17:44:37 patch_

10 -rw- 1526 Apr 02 2000 01:02:50 patchstate

11 drw- - Apr 11 2000 18:57:42 test

12 -rw- 118773 Apr 11 2000 21:17:30

13 drw- - Apr 02 2000 03:06:40 cd

125349 KB total (62857 KB free)

z

查看备用主控板存储介质的剩余空间大小。

dir slot1#flash:/

Directory of slot1#flash:/

0 -rw- 31912384 May 23 2000 144:40:52

1 drw- - Apr 01 2000 23:55:57 seclog

2 -rw- 5582 Apr 12 2000 06:46:17

3 -rw- 4866 Apr 11 2000 19:04:33

4 -rw- 31911744 Apr 06 2000 17:23:33

5 -rw- 9176 Apr 11 2000 17:44:02

6 -rw- 172 Apr 11 2000 17:44:10 patch_

7 -rw- 460 Apr 11 2000 17:44:16 patch_

8 -rw- 172 Apr 11 2000 17:44:28 patch_

9 -rw- 460 Apr 11 2000 17:44:37 patch_

10 -rw- 1526 Apr 02 2000 01:02:50 patchstate

11 drw- - Apr 11 2000 18:57:42 test

12 -rw- 118773 Apr 11 2000 21:17:30

13 drw- - Apr 02 2000 03:06:40 cd

1-3

125349 KB total (62857 KB free)

通过以上显示信息可以查看主用主控板和备用主控板的存储介质剩余空间大小。

用户可以将各主控板的存储介质剩余空间大小和待升级文件大小进行对比,判断存储介质剩余空间

是否足够。当剩余空间不足时,可使用delete /unreserved命令删除存储介质中的多余文件,释放

存储空间。

# 删除主用主控板和备用主控板存储介质中的多余文件。

z

删除主用主控板存储介质中的多余文件。

delete /unreserved flash:/

The contents cannot be restored!!! Delete flash:/?[Y/N]:y

Deleting a file permanently will take a long time.

..................................................

%Delete file flash:/...Done.

z

删除备用主控板存储介质中的多余文件。

delete /unreserved slot1#flash:/

The contents cannot be restored!!! Delete slot1#flash:/?[Y/N]:y

Deleting a file permanently will take a long time.

..................................................

%Delete file slot1#flash:/...Done.

z

z

使用delete /unreserved file-url命令删除文件,被删除的文件将被彻底删除,不能再恢复。

使用delete file-url命令删除文件,被删除的文件被保存在回收站中,仍会占用存储空间。如果

要彻底删除回收站中的某个废弃文件,必须在该文件的原目录下执行reset recycle-bin命令,

清空回收站。

2. 下载待升级文件到交换机

在通过命令行方式升级交换机的BootWare和启动文件之前,首先要将待升级文件保存到主用主控

板和备用主控板的存储介质(FLASH)中。如果待升级文件已经保存到主用主控板和备用主控板的

存储介质中,可略过此步。

用户可以通过FTP或TFTP方式把待升级文件下载到交换机的存储介质中,下面以交换机作为FTP

Client、用户PC作为FTP Server为例进行介绍:

(1) 在用户PC(假设IP地址为10.10.110.1)上运行FTP Server程序,设置用户名和密码,以

及正确的文件保存目录,并把待升级文件保存在FTP Server的工作目录下。

FTP Server软件由用户自己购买和安装,H3C S7600X系列交换机不附带此软件。

1-4

(2) 确保用户PC和交换机之间路由可达。

(3) 将待升级软件(以为例)下载到交换机主用主控板的存储介质中。

# 设备作为FTP Client登录到FTP Server。

ftp 10.10.110.1

Trying 10.10.

Press CTRL+K to abort

Connected to 10.10.110.1

220 FTP service ready.

User(10.10.110.1:(none)):username ---输入用户名

331 Password required for username.

Password: ---输入密码

230 User logged in

# 将传输模式设置为二进制模式,以便传输启动文件。

[ftp] binary

200 Type set to I.

# 将启动文件从FTP服务器下载到主用主控板存储介质的根目录下。

[ftp] get

227 Entering Passive Mode (10,10,110,1,17,97).

125 BINARY mode data connection already open, transfer starting for /

226 Transfer complete.

FTP: 28945856 byte(s) received in 35.974 second(s), 896.00K byte(s)/sec.

[ftp] bye

221 Server closing.

(4) 将待升级软件(以为例)拷贝到交换机备用主控板的存储介质的根目录下。

# 将启动文件从主用主控板拷贝到备用主控板(所在槽位号为1)存储介质的根目录下。

copy slot1#flash:/

Copy flash:/ to slot1#flash:/?[Y/N]:y

%Copy file flash:/ to slot1#flash:/...Done.

z

使用FTP方式下载时,交换机既可以充当FTP Server也可以充当FTP Client,使用TFTP下

载时,交换机只能充当TFTP Client,三种下载方式略有差异。有关FTP和TFTP配置的详细

介绍,请参见《H3C S7600[S7600-X]系列以太网交换机 配置指导》中的“基础配置指导”。

通过命令行进行软件升级时,BootWare文件、启动文件和补丁包文件的下载方法相同。

z

3. 通过命令行进行软件升级

进行软件升级前,请确认已经将待升级文件保存到设备主用主控板和备用主控板的存储介质的根目

录下。

用户可以根据升级对象以及用于升级的软件类型选择对应的升级操作:

1-5

z

z

z

升级BootWare

升级启动文件

安装补丁

(1) 升级BootWare

用于升级BootWare的文件已经下载并保存到设备主用主控板和备用主控板的存储介质的根目录

下。(下面举例中,用于升级主控板的BootWare文件为,用于升级业务板的BootWare

文件为和用于升级网板的BootWare文件为。)

存储在主用主控板上的BootWare文件可以升级主用主控板、业务板和网板上的BootWare程序,

而存储在备用主控板的BootWare文件只能升级备用主控板上的BootWare程序。

# 升级主用主控板(所在槽位号为0)的BootWare。

bootrom update file flash:/ slot 0

This command will update bootrom file on the specified board(s),

Continue? [Y/N]:y

Now updating bootrom,

Start accessing

Bootrom update succeeded in slot 0.

# 升级备用主控板(所在槽位号为1)的BootWare。

bootrom update file slot1#flash:/ slot 1

This command will update bootrom file on the specified board(s),

Continue? [Y/N]:y

Now updating bootrom,

Start accessing

Bootrom update succeeded in slot 1.

# 升级业务板(所在槽位号为3)的BootWare。(设备上其它业务板升级方式相同。)

bootrom update file flash:/ slot 3

This command will update bootrom file on the specified board(s),

Continue? [Y/N]:y

Now updating bootrom,

Board has finished loading file on Chassis 0 Slot 3.

Start accessing

Bootrom update succeeded in slot 3.

# 升级网板(所在槽位号为6)的BootWare。

bootrom update file flash:/ slot 6

This command will update bootrom file on the specified board(s),

Continue? [Y/N]:y

Now updating bootrom,

Board has finished loading file on Chassis 0 Slot 6.

Start accessing

Bootrom update succeeded in slot 6.

# 重启设备,完成对BootWare的升级。

reboot

1-6

Start to check configuration with next startup configuration file, please wait.

........DONE!

This command will reboot the device. Continue? [Y/N]:y

Reboot device by command.

(2) 升级启动文件

用于升级启动文件的软件(此处以为例)已经下载并保存到设备主用主控板和备用主控

板的存储介质的根目录下。

# 将指定为主用主控板(所在槽位号为0)的主用启动文件。

boot-loader file flash:/ slot 0 main

This command will set the boot file of the specified board. Continue? [Y/N]:y

The specified file will be used as the main boot file at the next reboot on slot 0!

# 将指定为备用主控板(所在槽位号为1)的主用启动文件。

boot-loader file slot1#flash:/ slot 1 main

This command will set the boot file of the specified board. Continue? [Y/N]:y

The specified file will be used as the main boot file at the next reboot on slot 1!

# 重启设备,完成对启动文件的升级。

reboot

Start to check configuration with next startup configuration file, please wait.

........DONE!

This command will reboot the device. Continue? [Y/N]:y

Reboot device by command.

z

z

重启设备以前,请先保存当前配置,防止设备重启而造成配置丢失。

启动文件必须保存在存储介质的根目录下,请确保已将启动文件保存到设备主用主控板和备用

主控板的存储介质的根目录下。可使用文件的拷贝或移动操作来调整文件的路径。关于

boot-loader命令的详细介绍请参见《H3C S7600[S7600-X]系列以太网交换机 命令参考》中

的“基础配置命令参考”。

(3) 安装补丁

请确保已将补丁包文件保存到主用主控板和备用主控板Flash的根目录下。

# 通过补丁包文件(以为例)安装补丁,并且要求设备重启后补丁继

续生效。

system-view

[Sysname] patch install file

Patches will be installed. Continue? [Y/N]:y

Do you want to run patches after reboot? [Y/N]:y

Installing patches…

1-7

如果设备以前安装过补丁,需要先将历史补丁卸载,才能安装新补丁。用户可以使用display patch

information显示设备的补丁信息。有关安装补丁的详细介绍请参见《H3C S7600[S7600-X]系列以

太网交换机 配置指导》中的“基础配置指导”。

1.3.2 IRF模式下的软件升级

1. 软件升级准备操作

# 用户PC通过Telnet或者Console口登录到交换机上。

# 查看设备信息。

display device

Chassis Slot Type State Subslot Soft Ver Patch Ver

1 0 LSU1SUPA Master 0 S7600X P001

1 1 LSU1SUPA Slave 0 S7600X P001

1 2 LSU1GP24TXSE Normal 0 S7600X P001

1 3 LSU1TGX4SE Normal 0 S7600X P001

1 4 NONE Absent 0 NONE None

1 5 NONE Absent 0 NONE None

1 6 LSU1FAB04A Normal 0 S7600X P001

1 7 NONE Absent 0 NONE None

1 8 NONE Absent 0 NONE None

1 9 NONE Absent 0 NONE None

2 0 LSU1SUPA Slave 0 S7600X P001

2 1 LSU1SUPA Slave 0 S7600X P001

2 2 LSU1GP24TXSE Normal 0 S7600X P001

2 3 LSU1TGX4SE Normal 0 S7600X P001

2 4 NONE Absent 0 NONE None

2 5 NONE Absent 0 NONE None

2 6 LSU1FAB04A Normal 0 S7600X P001

2 7 NONE Absent 0 NONE None

2 8 NONE Absent 0 NONE None

2 9 NONE Absent 0 NONE None

通过以上信息看出设备运行在IRF模式下。IRF模式下该设备各主控板信息如表1-2。

表1-2 IRF模式下的主控板列表

主控板

全局主用主控板

全局备用主控板

全局备用主控板

全局备用主控板

成员编号 槽位号

1 0

1 1

2 0

2 1

1-8

# 分别查看全局主用主控板及各全局备用主控板存储介质的剩余空间大小。

z

查看全局主用主控板的存储介质的剩余空间大小。

dir

Directory of flash:/

0 -rw- 31912384 May 23 2000 144:40:52

1 drw- - Apr 01 2000 23:55:57 seclog

2 -rw- 5582 Apr 12 2000 06:46:17

3 -rw- 4866 Apr 11 2000 19:04:33

4 -rw- 31911744 Apr 06 2000 17:23:33

5 -rw- 9176 Apr 11 2000 17:44:02

6 -rw- 172 Apr 11 2000 17:44:10 patch_

7 -rw- 460 Apr 11 2000 17:44:16 patch_

8 -rw- 172 Apr 11 2000 17:44:28 patch_

9 -rw- 460 Apr 11 2000 17:44:37 patch_

10 -rw- 1526 Apr 02 2000 01:02:50 patchstate

11 drw- - Apr 11 2000 18:57:42 test

12 -rw- 118773 Apr 11 2000 21:17:30

13 drw- - Apr 02 2000 03:06:40 cd

125349 KB total (62857 KB free)

z

查看全局备用主控板(成员设备编号为1,槽位号为1)的存储介质的剩余空间大小。

dir chassis1#slot1#flash:/

Directory of chassis1#slot1#flash:/

0 -rw- 31912384 May 23 2000 144:40:52

1 drw- - Apr 01 2000 23:55:57 seclog

2 -rw- 5582 Apr 12 2000 06:46:17

3 -rw- 4866 Apr 11 2000 19:04:33

4 -rw- 31911744 Apr 06 2000 17:23:33

5 -rw- 9176 Apr 11 2000 17:44:02

6 -rw- 172 Apr 11 2000 17:44:10 patch_

7 -rw- 460 Apr 11 2000 17:44:16 patch_

8 -rw- 172 Apr 11 2000 17:44:28 patch_

9 -rw- 460 Apr 11 2000 17:44:37 patch_

10 -rw- 1526 Apr 02 2000 01:02:50 patchstate

11 drw- - Apr 11 2000 18:57:42 test

12 -rw- 118773 Apr 11 2000 21:17:30

13 drw- - Apr 02 2000 03:06:40 cd

125349 KB total (62857 KB free)

z

查看全局备用主控板(成员设备编号为2,槽位号为0)的存储介质的剩余空间大小。

dir chassis2#slot0#flash:/

Directory of chassis2#slot0#flash:/

0 -rw- 31912384 May 23 2000 144:40:52

1 drw- - Apr 01 2000 23:55:57 seclog

1-9

2 -rw- 5582 Apr 12 2000 06:46:17

3 -rw- 4866 Apr 11 2000 19:04:33

4 -rw- 31911744 Apr 06 2000 17:23:33

5 -rw- 9176 Apr 11 2000 17:44:02

6 -rw- 172 Apr 11 2000 17:44:10 patch_

7 -rw- 460 Apr 11 2000 17:44:16 patch_

8 -rw- 172 Apr 11 2000 17:44:28 patch_

9 -rw- 460 Apr 11 2000 17:44:37 patch_

10 -rw- 1526 Apr 02 2000 01:02:50 patchstate

11 drw- - Apr 11 2000 18:57:42 test

12 -rw- 118773 Apr 11 2000 21:17:30

13 drw- - Apr 02 2000 03:06:40 cd

125349 KB total (62857 KB free)

z

查看全局备用主控板(成员设备编号为2,槽位号为1)的存储介质的剩余空间大小。

dir chassis2#slot1#flash:/

Directory of chassis2#slot1#flash:/

0 -rw- 31912384 May 23 2000 144:40:52

1 drw- - Apr 01 2000 23:55:57 seclog

2 -rw- 5582 Apr 12 2000 06:46:17

3 -rw- 4866 Apr 11 2000 19:04:33

4 -rw- 31911744 Apr 06 2000 17:23:33

5 -rw- 9176 Apr 11 2000 17:44:02

6 -rw- 172 Apr 11 2000 17:44:10 patch_

7 -rw- 460 Apr 11 2000 17:44:16 patch_

8 -rw- 172 Apr 11 2000 17:44:28 patch_

9 -rw- 460 Apr 11 2000 17:44:37 patch_

10 -rw- 1526 Apr 02 2000 01:02:50 patchstate

11 drw- - Apr 11 2000 18:57:42 test

12 -rw- 118773 Apr 11 2000 21:17:30

13 drw- - Apr 02 2000 03:06:40 cd

125349 KB total (62857 KB free)

通过以上显示信息可以分别得出全局主用主控板及各全局备用主控板的存储介质剩余空间大小,用

户可以将各主控板的存储介质剩余空间大小和待升级文件大小进行对比,判断该主控板的存储介质

剩余空间是否足够。当剩余空间不足时,可使用delete /unreserved命令删除存储介质中的多余文

件,释放存储空间。

# 删除全局主用主控板和全局备用主控板存储介质中的多余文件。

z

删除全局主用主控板存储介质中的多余文件。

delete /unreserved flash:/

The contents cannot be restored!!! Delete flash:/?[Y/N]:y

Deleting a file permanently will take a long time.

..................................................

%Delete file flash:/...Done.

z

删除成员设备编号为1、槽位号为1的全局备用主控板存储介质中的多余文件(其他全局备用

主控板上的多余文件删除方法相同)。

1-10

delete /unreserved chassis1#slot1#flash:/

The contents cannot be restored!!! Delete chassis1#slot1#flash:/?[Y/N]:y

Deleting a file permanently will take a long time.

..................................................

%Delete file chassis1#slot1#flash:/...Done.

z

z

使用delete /unreserved file-url命令删除文件,被删除的文件被彻底删除,不能再恢复。

使用delete file-url命令删除文件,被删除的文件被保存在回收站中,仍会占用存储空间。如果

要彻底删除回收站中的某个废弃文件,必须在该文件的原目录下执行reset recycle-bin命令,

清空回收站。

2. 下载待升级文件到交换机

在通过命令行方式升级交换机的BootWare或启动文件之前,首先要将待升级文件加载保存到全局

主用主控板和各备用主控板的存储介质(FLASH)中。如果待升级文件已经保存到全局主用主控板

和各备用主控板的存储介质中,可略过此步。

用户可以通过FTP或TFTP方式把待升级文件下载到交换机的存储介质中,下面以交换机作为FTP

Client、用户PC作为FTP Server为例进行介绍:

(1) 在用户PC(假设IP地址为10.10.110.1)上运行FTP Server程序,并设置用户名和密码,

以及正确的工作目录,并把待升级文件保存在FTP Server的工作目录下。

FTP Server软件由用户自己购买和安装,H3C S7600X系列交换机不附带此软件。

(2) 确保用户PC和交换机之间路由可达。

(3) 将待升级软件(以为例)下载到交换机全局主用主控板的存储介质中。

# 交换机作为FTP Client登录到FTP Server。

ftp 10.10.110.1

Trying 10.10.

Press CTRL+K to abort

Connected to 10.10.110.1

220 FTP service ready.

User(10.10.110.1:(none)):username ---输入用户名

331 Password required for username.

Password: ---输入密码

230 User logged in

# 将传输模式设置为二进制模式,以便传输启动文件。

1-11

[ftp] binary

200 Type set to I.

# 将启动文件从FTP服务器下载到全局主用主控板存储介质的根目录下。

[ftp] get

227 Entering Passive Mode (10,10,110,1,17,97).

125 BINARY mode data connection already open, transfer starting for /.

226 Transfer complete.

FTP: 28945856 byte(s) received in 35.974 second(s), 896.00K byte(s)/sec.

[ftp] bye

221 Server closing.

(4) 将待升级软件(以为例)从全局主用主控板拷贝到全局备用主控板存储介质的根

目录下。

# 将启动文件从全局主用主控板拷贝到全局备用主控板(成员设备编号为1,槽位号为

1)。

copy chassis1#slot1#flash:/

Copy flash:/ to chassis1#slot1#flash:/?[Y/N]:y

%Copy file flash:/ to chassis1#slot1#flash:/...Done.

# 将启动文件从全局主用主控板拷贝到全局备用主控板(成员设备编号为2,槽位号为

0)。

copy chassis2#slot0#flash:/

Copy flash:/ to chassis2#slot0#flash:/?[Y/N]:y

%Copy file flash:/ to chassis2#slot0#flash:/...Done.

# 将启动文件从全局主用主控板拷贝到全局备用主控板(成员设备编号为2,槽位号为

1)。

copy chassis2#slot1#flash:/

Copy flash:/ to chassis2#slot1#flash:/?[Y/N]:y

%Copy file flash:/ to chassis2#slot1#flash:/...Done.

z

使用FTP方式下载时,交换机既可以充当FTP服务器也可以充当FTP客户端,使用TFTP下

载时,交换机只能充当TFTP客户端,三种下载方式略有差异。有关FTP和TFTP配置的详细

介绍,请参见《H3C S7600[S7600-X]系列以太网交换机 配置指导》中的“基础配置指导”。

通过命令行进行软件升级时,BootWare文件、启动文件和补丁包文件的下载方法相同。

z

3. 通过命令行进行软件升级

进行软件升级前,请确认已经将待升级文件保存到设备全局主用主控板和各全局备用主控板的存储

介质的根目录下。

用户可以根据升级对象以及用于升级的软件类型选择对应的升级操作:

z

升级BootWare

1-12

z

z

升级启动文件

安装补丁

(1) 升级BootWare

用于升级BootWare的文件已经下载并保存到设备全局主用主控板和全局备用主控板的存储介质的

根目录下。(下面举例中,用于升级主控板的BootWare文件为,用于升级业务板的

BootWare文件为和用于升级网板的BootWare文件为。)

全局主用主控板上的BootWare文件可以升级全局主用主控板、业务板和网板上的BootWare程序,

而全局备用主控板的BootWare文件只能升级全局备用主控板上的BootWare程序。

# 升级全局主用主控板的BootWare。

bootrom update file flash:/ chassis 1 slot 0

This command will update bootrom file on the specified board(s),

Continue? [Y/N]:y

Now updating bootrom,

Start accessing

Bootrom update succeeded in chassis 1 slot 0.

# 升级全局备用主控板(成员设备编号为1,槽位号为1)的BootWare。(IRF系统中其它全局备

用主控板的BootWare升级方式相同。)

bootrom update file chassis1#slot1#flash:/ chassis 1 slot 1

This command will update bootrom file on the specified board(s), Continue? [Y/N]:y

Now updating bootrom,

Start accessing

Bootrom update succeeded in chassis 1 slot 1.

# 升级业务板(成员设备编号为2,槽位号为3)的BootWare。(IRF系统中其它业务板的BootWare

升级方式相同。)

bootrom update file flash:/ chassis 2 slot 3

This command will update bootrom file on the specified board(s), Continue? [Y/N]:y

Now updating bootrom,

Start accessing

Bootrom update succeeded in chassis 2 slot 3.

# 升级网板(成员设备编号为2,槽位号为6)的BootWare。(IRF系统中其它网板的BootWare

升级方式相同。)

bootrom update file flash:/ chassis 2 slot 6

This command will update bootrom file on the specified board(s), Continue? [Y/N]:y

Now updating bootrom,

Start accessing

Bootrom update succeeded in chassis 2 slot 6.

# 重启整个IRF,完成对BootWare的升级。

reboot

Start to check configuration with next startup configuration file, please wait.

........DONE!

This command will reboot the device. Continue? [Y/N]:y

1-13

Reboot device by command.

(2) 升级启动文件

用于升级启动文件的软件(此处以为例)已经下载并保存到设备全局主用主控板和全局

备用主控板的存储介质的根目录下。

# 将指定为全局主用主控板的主用启动文件。

boot-loader file chassis 1 slot 0 main

This command will set the boot file of the specified board. Continue? [Y/N]:y

The specified file will be used as the main boot file at the next reboot on chassis 1 slot

0!

# 将指定为全局备用主控板的主用启动文件。

z

将指定为全局备用主控板(成员设备编号为1,槽位号为1)的主用启动文件

boot-loader file chassis1#slot1#flash:/ chassis 1 slot 1 main

This command will set the boot file of the specified board. Continue? [Y/N]:y

The specified file will be used as the main boot file at the next reboot on chassis 1 slot

1!

z

将指定为全局备用主控板(成员设备编号为2,槽位号为0)的主用启动文件

boot-loader file chassis2#slot0#flash:/ chassis 2 slot 0 main

This command will set the boot file of the specified board. Continue? [Y/N]:y

The specified file will be used as the main boot file at the next reboot on chassis 2 slot

0!

z

将指定为全局备用主控板(成员设备编号为2,槽位号为1)的主用启动文件

boot-loader file chassis2#slot1#flash:/ chassis 2 slot 1 main

This command will set the boot file of the specified board. Continue? [Y/N]:y

The specified file will be used as the main boot file at the next reboot on chassis 2 slot

1!

# 重启设备,完成对启动文件的升级。

reboot

Start to check configuration with next startup configuration file, please wait.

........DONE!

This command will reboot the device. Continue? [Y/N]:y

Reboot device by command.

z

z

重启设备以前,请先保存当前配置,防止设备重启而造成配置丢失。

启动文件必须保存在存储介质的根目录下,请确保已将启动文件保存到设备全局主用主控板和

各全局备用主控板的存储介质的根目录下。可使用文件的拷贝或移动操作来调整文件的路径。

关于boot-loader命令的详细介绍请参见《H3C S7600[S7600-X]系列以太网交换机 命令参考》

中的“基础配置命令参考”。

(3) 安装补丁

请确保已将补丁包文件保存到所有主控板Flash的根目录下。

# 通过补丁包文件(以为例)安装补丁,并且要求设备重启后补丁继

续生效。

system-view

1-14

[Sysname] patch install file

Patches will be installed. Continue? [Y/N]:y

Do you want to run patches after reboot? [Y/N]:y

Installing patches…

如果设备以前安装过补丁,需要先将历史补丁卸载,才能安装新补丁。用户可以使用display patch

information显示设备的补丁信息。有关安装补丁的详细介绍请参见《H3C S7600[S7600-X]系列以

太网交换机 配置指导》中的“基础配置指导”。

1.4

通过

BootWare

菜单进行软件升级

通过BootWare菜单进行软件升级,无法同时升级主用主控板和备用主控板。为了确保主用主控板

和备用主控板的软件版本一致,请用户依次升级主用主控板和备用主控板。

1.4.1 进入BootWare菜单

终端(如一台PC)通过配置电缆与交换机的Console口相连,在终端上运行终端仿真程序,设置

终端参数。

终端参数如下:

z

z

z

z

z

z

波特率:9600

数据位:8

奇偶校验:无

停止位:1

数据流控制:无

终端仿真:VT100

交换机上电后将运行BooWare程序,终端屏幕上显示如下信息:

System

Booting Normal Extend BootWare.

The Extend BootWare

.....Done!

****************************************************************************

* *

* BootWare, Version 1.00 *

* *

****************************************************************************

Compiled Date : Jul 1 2010

CPU Type : XLS408

1-15

CPU L1 Cache : 32KB

CPU Clock Speed : 1000MHz

Memory Type : DDR2 SDRAM

Memory Size : 1024MB

Memory Speed : 533MHz

BootWare Size : 508KB

Flash Size : 128MB

BASIC CPLD Version : 3.0

EXTEND CPLD Version : 3.0

PCB Version : Ver.A

Press Ctrl+B to enter extended 2

z

出现“Press Ctrl+B to enter extended ”的5秒钟之内,键入,才能进入

BootWare主菜单。如果用户没有及时键入,请重新启动交换机。

不同型号设备的显示信息会有所不同,文中的举例仅做参考。

z

键入,系统提示用户输入BootWare密码:

Please input BootWare password:

用户输入正确的密码后,然后回车(交换机缺省设置为没有密码,直接回车即可),系统将进入

BootWare主菜单。

z

z

交换机使用过程中,请牢记BootWare密码。

若三次输入错误的密码,只能重新启动设备才能继续输入密码。

Note: The current operating device is flash

Enter < Storage Device Operation > to select device.

======================================================

|<1> Boot System |

|<2> Enter Serial SubMenu |

|<3> Enter Ethernet SubMenu |

|<4> File Control |

|<5> Modify BootWare Password |

|<6> Skip Current System Configuration |

|<7> BootWare Operation Menu |

|<8> Clear Super Password |

|<9> Storage Device Operation |

|<0> Reboot |

============================================================================

1-16

Enter your choice(0-9):

该菜单各选项含义如表1-3所示:

表1-3 BootWare主菜单说明

菜单项

<1> Boot System

<2> Enter Serial SubMenu

继续启动交换机

进入串口子菜单,详细描述请参见1.4.2 1.

通过串口子菜单可以实现利用Xmodem协议升级启动文件

进入以太网口子菜单,详细描述请参见1.4.2 2.

通过以太网口子菜单可以实现利用FTP/TFTP协议升级启动文件等操作

进入文件控制子菜单,详细描述请参见1.4.2 3.

通过文件控制子菜单可以实现显示文件、设置文件类型、删除文件等操作

修改BootWare密码

跳过当前配置文件

<6> Skip Current System

Configuration

z

说明

<3> Enter Ethernet SubMenu

<4> File Control

<5> Modify BootWare Password

用户口令的丢失会使用户无法进入系统,这时可以采用跳过当前配置文

件的方式启动

采用这种方式启动时,只是本次生效,下次重启时仍然会加载配置文件。

z

<7> BootWare Operation Menu

进入BootWare操作子菜单,详细描述请参见1.4.2 4.

在BootWare操作子菜单中可以备份、升级和恢复BootWare

清除超级用户密码

<8> Clear Super Password

超级用户密码用来设置切换用户级别时的密码,缺省情况下没有设置超级

用户密码

进入存储器操作子菜单,详细描述请参见1.4.2 5.

在存储器操作子菜单中可以对所用存储器件进行相关操作

重新启动设备

<9> Storage Device Operation

<0> Reboot

1.4.2 BootWare子菜单介绍

1. 串口子菜单

在BootWare主菜单下键入<2>,进入串口子菜单。显示如下:

======================================================

|Note:the operating device is flash |

|<1> Download Application Program To SDRAM And Run |

|<2> Update Main Application File |

|<3> Update Backup Application File |

|<4> Update Secure Application File |

|<5> Modify Serial Interface Parameter |

|<0> Exit To Main Menu |

============================================================================

Enter your choice(0-5):

该菜单各选项含义如表1-4所示:

1-17

表1-4 串口子菜单说明

菜单项

<1> Download Application Program To SDRAM And

Run

<2> Update Main Application File

<3> Update Backup Application File

<4> Update Secure Application File

<5> Modify Serial Interface Parameter

<0> Exit To Main Menu

说明

加载启动文件到SDRAM并运行

升级主用启动文件

升级备用启动文件

升级安全启动文件

修改串口参数

返回BootWare主菜单

2. 以太网口子菜单

在BootWare主菜单下键入<3>,进入以太网口子菜单。显示如下:

====================================================

|Note:the operating device is flash |

|<1> Download Application Program To SDRAM And Run |

|<2> Update Main Application File |

|<3> Update Backup Application File |

|<4> Update Secure Application File |

|<5> Modify Ethernet Parameter |

|<0> Exit To Main Menu |

| |

============================================================================

Enter your choice(0-5):

该菜单各选项含义如表1-5所示:

表1-5 以太网口子菜单说明

菜单项

<1> Download Application Program To SDRAM And

Run

<2> Update Main Application File

<3> Update Backup Application File

<4> Update Secure Application File

<5> Modify Ethernet Parameter

<0> Exit To Main Menu

说明

加载启动文件到SDRAM并运行

升级主用启动文件

升级备份启动文件

升级安全启动文件

修改以太网口参数

返回BootWare主菜单

3. 文件控制子菜单

在BootWare主菜单下键入<4>,进入文件控制子菜单。显示如下:

==============================================================

|Note:the operating device is flash |

|<1> Display All File(s) |

|<2> Set Application File type |

1-18

|<3> Delete File |

|<0> Exit To Main Menu |

============================================================================

Enter your choice(0-3):

该菜单各选项含义如表1-6所示:

表1-6 文件控制子菜单说明

菜单项

<1> Display All File(s)

<2> Set Application File type

<3> Delete File

<0> Exit To Main Menu

显示所有文件

设置文件类型

删除文件

返回BootWare主菜单

说明

4. BootWare操作子菜单

在BootWare主菜单下键入<7>,进入BootWare操作子菜单。显示如下:

===================================================

|Note:the operating device is flash |

|<1> Backup Full BootWare |

|<2> Restore Full BootWare |

|<3> Update BootWare By Serial |

|<4> Update BootWare By Ethernet |

|<0> Exit To Main Menu |

============================================================================

Enter your choice(0-4):

该菜单各选项含义如表1-7所示:

表1-7 BootWare操作子菜单说明

菜单项

<1> Backup Full BootWare

<2> Restore Full BootWare

<3> Update BootWare By Serial

<4> Update BootWare By Ethernet

<0> Exit To Main Menu

备份完整BootWare

恢复完整BootWare

通过串口升级BootWare

通过以太网口升级BootWare

返回BootWare主菜单

说明

5. 存储器操作子菜单

在BootWare主菜单下键入<9>,进入存储器操作子菜单。显示如下:

============================================================

|<1> Display All Available Nonvolatile Storage Device(s) |

|<2> Set The Operating Device |

|<3> Set The Default Boot Device |

|<0> Exit To Main Menu |

============================================================================

1-19

Enter your choice(0-3):

该菜单各选项含义如表1-8所示:

表1-8 存储器操作子菜单说明

菜单项

<1> Display All Available Nonvolatile Storage

Device(s)

<2> Set The Operating Device

<3> Set The Default Boot Device

<0> Exit To Main Menu

说明

显示所有可用的非易失性存储器件

设置当前读写操作所用存储器件

设置默认启动存储器件

返回BootWare主菜单

1.4.3 通过BootWare菜单升级启动文件

通过BootWare菜单升级启动文件,可以采用以下方式:

z

z

z

通过管理用以太网口利用TFTP升级启动文件

通过管理用以太网口利用FTP升级启动文件

通过Console口利用Xmodem升级启动文件

1. 通过管理用以太网口利用TFTP升级启动文件

(1) 交换机通过管理用以太网口与下载文件(一般为“.bin”文件)所在PC相连(需要知道该PC

的IP地址),同时交换机通过Console口外接一台PC(此PC与下载文件所在PC可以是同

一台)。

(2) 在与管理用以太网口相连的PC上运行TFTP Server程序,并指定下载程序的文件路径。

TFTP Server软件由用户自己购买和安装,H3C S7600X系列交换机不附带此软件。

(3) 在与Console口相连的PC上运行终端仿真程序,启动交换机,进入BootWare主菜单,有关

BootWare主菜单的进入方式请参见1.4.1

,系统出现提示“Enter your choice(0-9):”后,键

入<3>,进入以太网口子菜单,终端显示信息如下:

====================================================

|Note:the operating device is flash |

|<1> Download Application Program To SDRAM And Run |

|<2> Update Main Application File |

|<3> Update Backup Application File |

|<4> Update Secure Application File |

|<5> Modify Ethernet Parameter |

|<0> Exit To Main Menu |

| |

============================================================================

Enter your choice(0-5):

(4) 在以太网口子菜单中,键入<5>,设置以太网口的相关参数。

1-20

z

z

在设置参数时,直接输入新的参数即可;不输入参数,直接回车则会采用默认参数。

用户只需正确设置栏目下的参数即可,

ETHERNET PARAMETER SET>栏目下的参数设置不影响升级过程。

终端显示如下:

=============================================

|Note: '.' = Clear field. |

| '-' = Go to previous field. |

| Ctrl+D = Quit. |

============================================================================

Protocol (FTP or TFTP):tftp

Load File Name :

:

Target File Name :

:

Server IP Address :192.168.80.22

Local IP Address :192.168.80.10

Gateway IP Address :0.0.0.0

=============================================

|Note: '.' = Clear field. |

| '-' = Go to previous field. |

| Ctrl+D = Quit. |

============================================================================

Protocol (FTP or TFTP) :tftp

Load File Name :

:

Target File Name :

:

Server IP Address :192.168.80.22

Local IP Address :192.168.80.10

Gateway IP Address :0.0.0.0

表1-9 设置以太网口参数显示信息描述表

显示信息

'.' = Clear field

'-' = Go to previous field

Ctrl+D = Quit

Protocol (FTP or TFTP)

Load File Name

Target File Name

说明

在菜单项中键入“.”表示清除当前输入

在菜单项中键入“-”表示返回到前一个参数域

快捷键表示退出参数设置界面

选择通过TFTP/FTP升级启动文件

下载文件的名称,要与下载的文件名一致

下载到交换机后的目标文件名,文件的后缀需要和下载文件的后缀保持一致

1-21

显示信息

Server IP Address

Local IP Address

Gateway IP Address

FTP/TFTP服务器的IP地址

交换机IP地址

网关IP地址,如果设备与下载文件所在PC不在同一个网段中,需要配置网关

IP地址

说明

(5) 根据实际情况,设置完TFTP协议相关参数后,系统返回以太网口子菜单:

====================================================

|Note:the operating device is flash |

|<1> Download Application Program To SDRAM And Run |

|<2> Update Main Application File |

|<3> Update Backup Application File |

|<4> Update Secure Application File |

|<5> Modify Ethernet Parameter |

|<0> Exit To Main Menu |

| |

============================================================================

Enter your choice(0-5):

(6) 根据所需升级的启动文件类型在以太网口子菜单中键入2~4,选择升级主用启动文件、备用

启动文件或者安全启动文件。此处以升级主用启动文件为例。在以太网口子菜单中键入<2>,

终端显示如下信息:

............................................................................

.........................Done!

31911744 bytes downloaded!

Updating File flash:/...............................................

....................................................Done!

====================================================

|Note:the operating device is flash |

|<1> Download Application Program To SDRAM And Run |

|<2> Update Main Application File |

|<3> Update Backup Application File |

|<4> Update Secure Application File |

|<5> Modify Ethernet Parameter |

|<0> Exit To Main Menu |

| |

============================================================================

Enter your choice(0-5):

(7) 升级成功后,在以太网口子菜单中键入<0>,返回到BootWare主菜单,然后键入<1>,继续

启动交换机。

2. 通过管理用以太网口利用FTP升级启动文件

(1)

将交换机通过管理用以太网接口与下载文件(一般为“.bin”文件)所在PC相连(需要知道

该PC的IP地址),同时交换机通过Console外接一台PC(此PC与下载文件所在PC可以

是同一台)。

1-22

(2) 在与管理用以太网口相连的PC上运行FTP Server程序,并指定下载程序的文件路径,完成

登录用户名、用户口令的设置。

FTP Server软件由用户自己购买和安装,H3C S7600X系列交换机不附带此软件。

(3) 在与Console口相连的PC上运行终端仿真程序,启动交换机,进入BootWare主菜单,有关

BootWare主菜单的进入方式请参见1.4.1

,系统出现提示“Enter your choice(0-9):”后,键

入<3>,进入以太网口子菜单,菜单内容如下:

====================================================

|Note:the operating device is flash |

|<1> Download Application Program To SDRAM And Run |

|<2> Update Main Application File |

|<3> Update Backup Application File |

|<4> Update Secure Application File |

|<5> Modify Ethernet Parameter |

|<0> Exit To Main Menu |

| |

============================================================================

Enter your choice(0-5):

(4) 在以太网口子菜单中,键入<5>,设置以太网口的相关参数。

z

z

在设置参数时,直接输入新的参数即可;不输入参数,直接回车则会采用默认参数。

用户只需正确设置栏目下的参数即可,

ETHERNET PARAMETER SET>栏目下的参数设置不影响升级过程。

终端显示如下:

=============================================

|Note: '.' = Clear field. |

| '-' = Go to previous field. |

| Ctrl+D = Quit. |

============================================================================

Protocol (FTP or TFTP):ftp

Load File Name :

:

Target File Name :

:

Server IP Address :192.168.80.20

Local IP Address :192.168.80.10

Gateway IP Address :0.0.0.0

FTP User Name :UserN

1-23

FTP User Password :PWD

=============================================

|Note: '.' = Clear field. |

| '-' = Go to previous field. |

| Ctrl+D = Quit. |

============================================================================

Protocol (FTP or TFTP):ftp

Load File Name :

:

Target File Name :

:

Server IP Address :192.168.80.20

Local IP Address :192.168.80.10

Gateway IP Address :0.0.0.0

FTP User Name :UserN

FTP User Password :PWD

表1-10 设置以太网口参数显示信息描述表

显示信息

'.' = Clear field

'-' = Go to previous field

Ctrl+D = Quit

Protocol (FTP or TFTP)

Load File Name

Target File Name

Server IP Address

Local IP Address

Gateway IP Address

FTP User Name

FTP User Password

说明

在菜单项中键入“.”表示清除当前输入

在菜单项中键入“-”表示返回到前一个参数域

快捷键表示退出参数设置界面

选择通过TFTP/FTP升级启动文件

下载文件的名称,要与下载的文件名一致

下载到交换机后的目标文件名,文件的后缀需要和下载文件的后缀保持一致

FTP/TFTP服务器的IP地址

交换机IP地址

网关IP地址,如果设备与下载文件所在PC不在同一个网段中,需要配置网关

IP地址

FTP用户名

FTP下载密码

(5) 根据实际情况,设置完FTP协议相关参数后,系统再次进入以太网口子菜单:

====================================================

|Note:the operating device is flash |

|<1> Download Application Program To SDRAM And Run |

|<2> Update Main Application File |

|<3> Update Backup Application File |

|<4> Update Secure Application File |

|<5> Modify Ethernet Parameter |

|<0> Exit To Main Menu |

| |

1-24

============================================================================

Enter your choice(0-5):

(6) 根据所需升级的启动文件类型在以太网口子菜单中键入2~4,选择升级主用启动文件、备用

启动文件或者安全启动文件。此处以升级主用启动文件为例。在以太网口子菜单中键入<2>,

终端显示如下信息:

............................................................................

.........................Done!

31911744 bytes downloaded!

Updating File flash:/...............................................

....................................................Done!

====================================================

|Note:the operating device is flash |

|<1> Download Application Program To SDRAM And Run |

|<2> Update Main Application File |

|<3> Update Backup Application File |

|<4> Update Secure Application File |

|<5> Modify Ethernet Parameter |

|<0> Exit To Main Menu |

| |

============================================================================

Enter your choice(0-5):

(7) 升级成功后,在以太网口子菜单中键入<0>,返回到BootWare主菜单,然后键入<1>,继续

启动交换机。

3. 通过Console口利用Xmodem升级启动文件

(1)

交换机通过Console外接一台PC,下载文件(一般为“.bin”文件)在该PC上。

(2) 在与Console口相连的PC上运行终端仿真程序,启动交换机,进入BootWare主菜单,有关

BootWare主菜单的进入方式请参见1.4.1

,系统出现提示“Enter your choice(0-9):”后,键

入<2>,进入串口子菜单,菜单内容如下:

======================================================

|Note:the operating device is flash |

|<1> Download Application Program To SDRAM And Run |

|<2> Update Main Application File |

|<3> Update Backup Application File |

|<4> Update Secure Application File |

|<5> Modify Serial Interface Parameter |

|<0> Exit To Main Menu |

============================================================================

Enter your choice(0-5):

(3) 在串口子菜单中,键入<5>,系统会提示修改串口波特率:

==============================================================

|Note:'*'indicates the current baudrate |

| Change The HyperTerminal's Baudrate Accordingly |

|------------------------------------------------------|

|<1> 9600(Default)* |

|<2> 19200 |

1-25

|<3> 38400 |

|<4> 57600 |

|<5> 115200 |

|<0> Exit |

============================================================================

Enter your choice(0-5):2

(4) 根据实际情况,选择合适的下载波特率,若如上所示键入<2>,即选择19200bps,终端显示

提示信息:

Baudrate has been changed to 19200 bps.

Please change the terminal's baudrate to 19200 bps, press ENTER when ready.

如果下载波特率选择为9600bps,用户不用修改超级终端的波特率,不用进行下面的第(5)至(7)

步操作,直接进入第(8)步的操作。

(5) 单击超级终端的[呼叫/断开]菜单项,即断开超级终端和交换机的连接。

图1-1 断开终端连接

(6) 点击[文件/属性]菜单,在弹出的对话框单击<配置(F)…>按钮,进入Console口配置对话框,

将波特率配置为19200bps。

1-26

图1-2 进入属性对话框

图1-3 Console口配置对话框

1-27

(7) 设置完波特率后,点击[呼叫/呼叫]按钮,重新建立超级终端和交换机的连接。

图1-4 重新建立连接

回车后,终端显示如下信息:

The current baudrate is 19200 bps

==============================================================

|Note:'*'indicates the current baudrate |

| Change The HyperTerminal's Baudrate Accordingly |

|------------------------------------------------------|

|<1> 9600(Default) |

|<2> 19200* |

|<3> 38400 |

|<4> 57600 |

|<5> 115200 |

|<0> Exit |

============================================================================

Enter your choice(0-5):

如果通过改变串口波特率下载文件来升级启动文件,完成升级后应及时将超级终端的连接波特率恢

复为9600bps,以防止启动或重新启动时终端无法显示信息。

(8) 在波特率设置菜单中键入<0>,返回串口子菜单。终端显示如下信息:

======================================================

|Note:the operating device is flash |

|<1> Download Application Program To SDRAM And Run |

|<2> Update Main Application File |

|<3> Update Backup Application File |

|<4> Update Secure Application File |

|<5> Modify Serial Interface Parameter |

|<0> Exit To Main Menu |

============================================================================

Enter your choice(0-5):

(9) 根据所需升级的启动文件类型在串口子菜单中键入2~4,选择升级主用启动文件、备用启动

文件或者安全启动文件。此处以升级主用启动文件为例。在串口子菜单下键入<2>,终端显示

信息:

Please Start To Transfer File, Press To Exit.

1-28

Waiting ...CCCCC

此时,从终端窗口选择[传送发送文件],在弹出的对话框(如下图)中点击[浏览]按扭,选择需要下

载的软件,并将下载使用的协议改为XModem。

图1-5 [发送文件]对话框

(10) 选择完成后,点击[发送]按钮,系统弹出如下图所示的界面。

图1-6 正在发送文件界面

文件下载成功后,终端显示如下信息:

Download successfully!

31911808 bytes downloaded!

Input the File Name:

Updating File flash:/..............................................

.....................................................Done!

======================================================

|Note:the operating device is flash |

|<1> Download Application Program To SDRAM And Run |

|<2> Update Main Application File |

1-29

|<3> Update Backup Application File |

|<4> Update Secure Application File |

|<5> Modify Serial Interface Parameter |

|<0> Exit To Main Menu |

============================================================================

Enter your choice(0-5):

(11) 升级成功后,在串口子菜单中键入<0>,返回到BootWare主菜单,然后键入<1>,启动系统。

z

系统重启后,需要将超级终端的波特率调整为9600bps,过程请参考前面的第(5)至(7)步;

如果下载波特率选择为9600bps,用户不用修改超级终端的波特率。

启动文件较大,通过Console口升级启动文件速度较慢,推荐您使用管理用以太网口升级启动

文件。

z

1.4.4 通过BootWare菜单升级BootWare

通过BootWare菜单升级BootWare,可以采用以下方式:

z

z

z

通过管理用以太网口利用TFTP升级BootWare

通过管理用以太网口利用FTP升级BootWare

通过Console口利用Xmodem升级BootWare

1. 通过管理用以太网口利用TFTP升级BootWare

(1) 交换机通过管理用以太网口与下载文件(一般为“.btw”文件)所在PC相连(需要知道该

PC的IP地址),同时交换机通过Console口外接一台PC(此PC与下载文件所在PC可以

是同一台)。

(2) 在与管理用以太网口相连的PC上运行TFTP Server程序,并指定下载程序的文件路径。

TFTP Server软件由用户自己购买和安装,H3C S7600X系列交换机不附带此软件。

(3) 在与Console口相连的PC上运行终端仿真程序,启动交换机,进入BootWare主菜单,有关

BootWare主菜单的进入方式请参见1.4.1

,系统出现提示“Enter your choice(0-9):”后,键

入<7>,进入BootWare操作子菜单,菜单内容如下:

===================================================

|Note:the operating device is flash |

|<1> Backup Full BootWare |

|<2> Restore Full BootWare |

|<3> Update BootWare By Serial |

|<4> Update BootWare By Ethernet |

|<0> Exit To Main Menu |

============================================================================

Enter your choice(0-4):

1-30

(4) 在BootWare操作子菜单中,键入<4>,进入通过以太网口升级BootWare子菜单。终端显示

如下:

======================================

|<1> Update Full BootWare |

|<2> Update Extend BootWare |

|<3> Update Basic BootWare |

|<4> Modify Ethernet Parameter |

|<0> Exit To Main Menu |

============================================================================

Enter your choice(0-4):

(5) 在通过以太网口升级BootWare子菜单中键入<4>,设置以太网口的相关参数。

z

z

在设置参数时,直接输入新的参数即可;不输入参数,直接回车则会采用冒号后面的默认参数。

用户只需正确设置栏目下的参数即可,

ETHERNET PARAMETER SET>栏目下的参数设置不影响升级过程。

终端显示如下:

=============================================

|Note: '.' = Clear field. |

| '-' = Go to previous field. |

| Ctrl+D = Quit. |

============================================================================

Protocol (FTP or TFTP):tftp

Load File Name :

:

Target File Name :

:

Server IP Address :192.168.80.22

Local IP Address :192.168.80.10

Gateway IP Address :0.0.0.0

=============================================

|Note: '.' = Clear field. |

| '-' = Go to previous field. |

| Ctrl+D = Quit. |

============================================================================

Protocol (FTP or TFTP) :tftp

Load File Name :

:

Target File Name :

:

Server IP Address :192.168.80.22

Local IP Address :192.168.80.10

Gateway IP Address :0.0.0.0

1-31

表1-11 设置以太网口参数显示信息描述表

显示信息

'.' = Clear field

'-' = Go to previous field

Ctrl+D = Quit

Protocol (FTP or TFTP)

Load File Name

Target File Name

Server IP Address

Local IP Address

Gateway IP Address

说明

在菜单项中键入“.”表示清除当前输入

在菜单项中键入“-”表示返回到前一个参数域

快捷键表示退出参数设置界面

选择通过TFTP/FTP升级BootWare

下载文件的名称,要与下载的文件名一致

下载到交换机后的目标文件名,文件的后缀需要和下载文件的后缀保持一致

FTP/TFTP服务器的IP地址

交换机IP地址

网关IP地址,如果设备与下载文件所在PC不在同一个网段中,需要配置网关

IP地址

(6) 根据实际情况,设置完TFTP协议相关参数后,系统再次进入通过以太网口升级BootWare

子菜单:

======================================

|<1> Update Full BootWare |

|<2> Update Extend BootWare |

|<3> Update Basic BootWare |

|<4> Modify Ethernet Parameter |

|<0> Exit To Main Menu |

============================================================================

Enter your choice(0-4):

(7) 根据所需升级的BootWare类型在通过以太网口升级BootWare子菜单中键入1~3,选择升

级完整BootWare、扩展BootWare或者基本BootWare。此处以升级完整BootWare为例。

在通过以太网口升级BootWare子菜单中键入<1>,终端显示如下信息:

Done!

447612 bytes downloaded!

Updating Basic BootWare? [Y/N]

(8) 键入,升级基本BootWare,升级完成后,终端显示如下信息:

Updating .Done!

Updating Extend BootWare? [Y/N]

(9) 键入,升级扩展BootWare,升级完成后,终端显示如下信息:

Updating .Done!

======================================

|<1> Update Full BootWare |

|<2> Update Extend BootWare |

|<3> Update Basic BootWare |

|<4> Modify Ethernet Parameter |

|<0> Exit To Main Menu |

============================================================================

1-32

Enter your choice(0-4):

(10) BootWare升级成功后,在通过以太网口升级BootWare子菜单中键入<0>,返回到BootWare

操作子菜单,再键入<0>,返回到BootWare主菜单。

(11) 在BootWare主菜单中键入<0>,重新启动交换机。

2. 通过管理用以太网口利用FTP升级BootWare

(1) 将交换机通过管理用以太网接口与下载文件(一般为“.btw”文件)所在PC相连(需要知道

该PC的IP地址),同时交换机通过Console外接一台PC(此PC与下载文件所在PC可以

是同一台)。

(2) 在与管理用以太网口相连的PC上运行FTP Server 程序,并指定下载程序的文件路径,完成

登录用户名、用户口令的设置。

FTP Server软件由用户自己购买和安装,H3C S7600X系列交换机不附带此软件。

(3) 在与Console口相连的PC上运行终端仿真程序,启动交换机,进入BootWare主菜单,有关

BootWare主菜单的进入方式请参见1.4.1

,系统出现提示“Enter your choice(0-9):”后,键

入<7>,进入BootWare操作子菜单,菜单内容如下:

===================================================

|Note:the operating device is flash |

|<1> Backup Full BootWare |

|<2> Restore Full BootWare |

|<3> Update BootWare By Serial |

|<4> Update BootWare By Ethernet |

|<0> Exit To Main Menu |

============================================================================

Enter your choice(0-4):

(4) 在BootWare操作子菜单中,键入<4>,进入通过以太网口升级BootWare子菜单。终端显示

如下:

======================================

|<1> Update Full BootWare |

|<2> Update Extend BootWare |

|<3> Update Basic BootWare |

|<4> Modify Ethernet Parameter |

|<0> Exit To Main Menu |

============================================================================

Enter your choice(0-4):

(5) 在通过以太网口升级BootWare子菜单中键入<4>,设置以太网口的相关参数。

1-33

z

z

在设置参数时,直接输入新的参数即可;不输入参数,直接回车则会采用默认参数。

用户只需正确设置栏目下的参数即可,

ETHERNET PARAMETER SET>栏目下的参数设置不影响升级过程。

终端显示如下:

=============================================

|Note: '.' = Clear field. |

| '-' = Go to previous field. |

| Ctrl+D = Quit. |

============================================================================

Protocol (FTP or TFTP):ftp

Load File Name :

:

Target File Name :

:

Server IP Address :192.168.80.20

Local IP Address :192.168.80.10

Gateway IP Address :0.0.0.0

FTP User Name :UserN

FTP User Password :PWD

=============================================

|Note: '.' = Clear field. |

| '-' = Go to previous field. |

| Ctrl+D = Quit. |

============================================================================

Protocol (FTP or TFTP):ftp

Load File Name :

:

Target File Name :

:

Server IP Address :192.168.80.20

Local IP Address :192.168.80.10

Gateway IP Address :0.0.0.0

FTP User Name :UserN

FTP User Password :PWD

表1-12 设置以太网口参数显示信息描述表

显示信息

'.' = Clear field

'-' = Go to previous field

Ctrl+D = Quit

说明

在菜单项中键入“.”表示清除当前输入

在菜单项中键入“-”表示返回到前一个参数域

快捷键表示退出参数设置界面

1-34

显示信息

Protocol (FTP or TFTP)

Load File Name

Target File Name

Server IP Address

Local IP Address

Gateway IP Address

FTP User Name

FTP User Password

说明

选择通过TFTP/FTP升级BootWare

下载文件的名称,要与下载的文件名一致

下载到交换机后的目标文件名,文件的后缀需要和下载文件的后缀保持一致

FTP/TFTP服务器的IP地址

交换机IP地址

网关IP地址,如果设备与下载文件所在PC不在同一个网段中,需要配置网关

IP地址

FTP用户名

FTP下载密码

(6) 根据实际情况,设置完FTP协议相关参数后,系统再次进入通过以太网口升级BootWare子

菜单:

======================================

|<1> Update Full BootWare |

|<2> Update Extend BootWare |

|<3> Update Basic BootWare |

|<4> Modify Ethernet Parameter |

|<0> Exit To Main Menu |

============================================================================

Enter your choice(0-4):

(7) 根据所需升级的BootWare类型在以太网口子菜单中键入1~3,选择升级完整BootWare、扩

展BootWare或者基本BootWare。此处以升级完整BootWare为例。在以太网口子菜单中键

入<1>,终端显示如下信息:

Done!

447612 bytes downloaded!

Updating Basic BootWare? [Y/N]

(8) 键入,升级基本BootWare,升级完成后,终端显示如下信息:

Updating .Done!

Updating Extend BootWare? [Y/N]

(9) 键入,升级扩展BootWare,升级完成后,终端显示如下信息:

Updating .Done!

======================================

|<1> Update Full BootWare |

|<2> Update Extend BootWare |

|<3> Update Basic BootWare |

|<4> Modify Ethernet Parameter |

|<0> Exit To Main Menu |

============================================================================

Enter your choice(0-4):

(10) BootWare升级成功后,在通过以太网口升级BootWare子菜单中键入<0>,返回到BootWare

操作子菜单,再键入<0>,返回到BootWare主菜单。

1-35

(11) 在BootWare主菜单中键入<0>,重新启动交换机。

3. 通过Console口利用Xmodem升级BootWare

(1)

交换机通过Console外接一台PC,下载文件(一般为“.btw”文件)在该PC上。

(2) 在与Console口相连的PC上运行终端仿真程序,启动交换机,进入BootWare主菜单,有关

BootWare主菜单的进入方式请参见1.4.1

,系统出现提示“Enter your choice(0-9):”后,键

入<7>,进入BootWare操作子菜单,菜单内容如下:

===================================================

|Note:the operating device is flash |

|<1> Backup Full BootWare |

|<2> Restore Full BootWare |

|<3> Update BootWare By Serial |

|<4> Update BootWare By Ethernet |

|<0> Exit To Main Menu |

============================================================================

Enter your choice(0-4):

(3) 在BootWare操作子菜单中,键入<3>,进入通过串口升级BootWare子菜单。终端显示如下:

========================================

|<1> Update Full BootWare |

|<2> Update Extend BootWare |

|<3> Update Basic BootWare |

|<4> Modify Serial Interface Parameter |

|<0> Exit To Main Menu |

============================================================================

Enter your choice(0-4):

(4) 在通过串口升级BootWare子菜单中,键入<4>,系统会提示修改串口波特率:

==============================================================

|Note:'*'indicates the current baudrate |

| Change The HyperTerminal's Baudrate Accordingly |

|------------------------------------------------------|

|<1> 9600(Default)* |

|<2> 19200 |

|<3> 38400 |

|<4> 57600 |

|<5> 115200 |

|<0> Exit |

============================================================================

Enter your choice(0-5):2

(5) 根据实际情况,选择合适的下载波特率,若如上所示键入<2>,即选择19200 bps ,终端显示

提示信息:

Baudrate has been changed to 19200 bps.

Please change the terminal's baudrate to 19200 bps, press ENTER when ready.

1-36

如果下载波特率选择为9600bps,用户不用修改超级终端的波特率,不用进行下面的第(6)至(8)

步操作,直接进入第(9)步的操作。

(6) 单击超级终端的[呼叫/断开]菜单项,即断开超级终端和交换机的连接。

图1-7 断开终端连接

(7) 点击[文件/属性]菜单,在弹出的对话框单击<配置(F)…>按钮,进入Console口配置对话框,

将波特率配置为19200bps。

图1-8 进入属性对话框

1-37

图1-9 Console口配置对话框

(8) 设置完波特率后,点击[呼叫/呼叫]按钮,重新建立超级终端和交换机的连接。

图1-10 重新建立连接

回车后,终端显示如下信息:

The current baudrate is 19200 bps

==============================================================

|Note:'*'indicates the current baudrate |

| Change The HyperTerminal's Baudrate Accordingly |

|------------------------------------------------------|

|<1> 9600(Default) |

|<2> 19200* |

|<3> 38400 |

|<4> 57600 |

|<5> 115200 |

|<0> Exit |

============================================================================

1-38

Enter your choice(0-5):

如果通过改变串口波特率下载文件来升级BootWare,那么完成升级后应及时将超级终端的连接波

特率恢复为9600bps,以防止启动或重新启动时终端无法显示信息。

(9) 在波特率设置菜单中键入<0>,返回通过串口升级BootWare子菜单。终端显示如下信息:

========================================

|<1> Update Full BootWare |

|<2> Update Extend BootWare |

|<3> Update Basic BootWare |

|<4> Modify Serial Interface Parameter |

|<0> Exit To Main Menu |

============================================================================

Enter your choice(0-4):

(10) 根据所需升级的BootWare类型在通过串口升级BootWare子菜单中键入1~3,选择升级完

整BootWare、扩展BootWare或者基本BootWare。此处以升级完整BootWare为例。在通

过以太网口升级BootWare子菜单中键入<1>,终端显示如下信息:

Please Start To Transfer File, Press To Exit.

Waiting ...CCCC

此时,从终端窗口选择[传送发送文件],在弹出的对话框(如下图)中点击[浏览]按扭,选择需要下

载的软件,并将下载使用的协议改为XModem。

图1-11 [发送文件]对话框

(11) 选择完成后,点击[发送]按钮,系统弹出如下图所示的界面。

1-39

图1-12 正在发送文件界面

文件下载成功后,终端显示如下信息:

Download successfully!

447616 bytes downloaded!

Updating Basic BootWare? [Y/N]

(12) 键入,升级基本BootWare,升级完成后,终端显示如下信息:

Updating .Done!

Updating Extend BootWare? [Y/N]

(13) 键入,升级扩展BootWare,升级完成后,终端显示如下信息:

Updating .Done!

========================================

|<1> Update Full BootWare |

|<2> Update Extend BootWare |

|<3> Update Basic BootWare |

|<4> Modify Serial Interface Parameter |

|<0> Exit To Main Menu |

============================================================================

Enter your choice(0-4):

(14) BootWare升级成功后,在通过串口升级BootWare子菜单中键入<0>,返回到BootWare操

作子菜单,再键入<0>,返回到BootWare主菜单。

(15) 在BootWare主菜单中键入<0>,重新启动交换机。

系统重启后,需要将超级终端的波特率调整为9600bps,过程请参考前面的第(6)至(8)步;如

果下载波特率选择为9600bps,用户不用修改超级终端的波特率。

1-40

1.4.5 通过BootWare菜单进行文件管理

在文件控制子菜单下可以完成显示文件、设置文件类型、删除文件等操作。在BootWare主菜单下

键入<4>,系统会进入文件控制子菜单。终端显示信息如下:

===============================================

|Note:the operating device is flash |

| <1> Display All File(s) |

| <2> Set Application File type |

| <3> Delete File |

| <0> Exit To Main Menu |

=============================================================

Enter your choice(0-3):

通过命令行进行文件管理的相关介绍请参见《H3C S7600[S7600-X]系列以太网交换机 配置指导》

中的“基础配置指导”。

1. 显示所有文件

在文件控制子菜单下键入<1>,终端显示信息如下:

Display all file(s) in flash:

'M' = MAIN 'B' = BACKUP 'S' = SECURE 'N/A' = NOT ASSIGNED

============================================================================

|NO. Size(B) Time Type Name |

|1 31912384 May/23/2000 144:40:5 N/A |

|2 4224 Apr/12/2000 08:47:53 N/A |

|3 5764 Apr/12/2000 08:48:09 N/A |

|4 4866 Apr/12/2000 08:48:03 N/A |

|5 31911744 Apr/06/2000 17:23:33 M |

|6 4 Apr/10/2000 22:11:31 N/A snmpboots |

|7 9176 Apr/11/2000 17:44:02 N/A |

|8 172 Apr/11/2000 17:44:10 N/A patch_ |

|9 460 Apr/11/2000 17:44:16 N/A patch_ |

|10 172 Apr/11/2000 17:44:28 N/A patch_ |

|11 460 Apr/11/2000 17:44:37 N/A patch_ |

|12 1526 Apr/02/2000 01:02:50 N/A patchstate |

|13 5844 Apr/11/2000 22:09:07 N/A test/my_archive_ |

|14 118773 Apr/11/2000 21:17:30 N/A |

============================================================================

==============================================================

|Note:the operating device is flash |

|<1> Display All File(s) |

|<2> Set Application File type |

|<3> Delete File |

|<0> Exit To Main Menu |

============================================================================

1-41

Enter your choice(0-3):

2. 设置文件类型

FLASH中类型为M、B或N/A的启动文件的文件类型可以在BootWare菜单中修改。

安全启动文件的文件类型不允许修改。

在文件控制子菜单下键入<2>,终端显示信息如下:

'M' = MAIN 'B' = BACKUP 'S' = SECURE 'N/A' = NOT ASSIGNED

============================================================================

|NO. Size(B) Time Type Name |

|1 31912384 May/23/2000 144:40:5 N/A |

|2 31911744 Apr/06/2000 17:23:33 M |

|0 Exit |

============================================================================

Enter file No:

输入文件号选择待设置类型的文件,终端显示信息如下:

Modify the file attribute:

============================================================================

|<1> +Main |

|<2> -Main |

|<3> +Backup |

|<4> -Backup |

|<0> Exit |

============================================================================

Enter your choice(0-4):

键入1~4可以指定主用启动文件、取消主用启动文件、指定为备用启动文件和取消备用启动文件。

当用户成功设置文件类型后,终端显示如下信息:

Set the file attribute success!

3. 删除文件

在文件控制子菜单下键入<3>,终端显示信息如下:

Deleting the file in flash:

'M' = MAIN 'B' = BACKUP 'S' = SECURE 'N/A' = NOT ASSIGNED

============================================================================

|NO. Size(B) Time Type Name |

|1 31912384 May/23/2000 144:40:5 B |

|2 4224 Apr/12/2000 08:47:53 N/A |

|3 5764 Apr/12/2000 08:48:09 N/A |

|4 4866 Apr/12/2000 08:48:03 N/A |

|5 31911744 Apr/06/2000 17:23:33 M |

|6 4 Apr/10/2000 22:11:31 N/A snmpboots |

|7 9176 Apr/11/2000 17:44:02 N/A |

|8 172 Apr/11/2000 17:44:10 N/A patch_ |

|9 460 Apr/11/2000 17:44:16 N/A patch_ |

|10 172 Apr/11/2000 17:44:28 N/A patch_ |

1-42

|11 460 Apr/11/2000 17:44:37 N/A patch_ |

|12 1526 Apr/02/2000 01:02:50 N/A patchstate |

|13 5844 Apr/11/2000 22:09:07 N/A test/my_archive_ |

|14 118773 Apr/11/2000 21:17:30 N/A |

|0 Exit |

============================================================================

Enter file No:

输入文件编号选择待删除的文件,这里以删除编号为13的文件为例,键入<13>,终端显示信息如

下:

The file you selected is flash:/test/my_archive_,Delete it? [Y/N]

键入,如果终端显示如下提示信息,则表明文件删除成功:

Done!

1.5

软件升级失败的处理

升级失败后,系统会使用原来的版本运行。用户可以通过以下方式尝试解决软件升级失败问题。

(1) 请检查物理端口是否连接完好,请确保端口物理连接正确。

(2) 通过Console口登录设备时,请检查超级终端相关参数是否设置正确,如波特率、数据位等。

(3) 查看超级终端上的显示信息,请检查是否有输入错误等。输入错误可能包括以下:

z

利用Xmodem协议下载时,如果选择了9600bps以外的波特率进行下载,没有及时修改超级

终端的波特率。超级终端的波特率和Console口的波特率必须保持一致;

在使用TFTP协议进行软件升级时,输入的IP地址、文件名称或指定的TFTP Server的工作

路径有误;

在使用FTP协议进行软件升级时,输入的IP地址、文件名字、指定的FTP Server的工作路

径、FTP用户名或FTP密码有误。

z

z

(4) 请检查FTP Server或者TFTP Server等软件是否正常运行,相关设置是否正确。

(5) 请检查Flash的剩余空间大小是否足够保存待上传的文件。

(6) 请确认启动文件版本及BootWare版本是否正确。软件版本配套关系请参见《版本说明书》中

的版本配套表。

(7) 升级BootWare时,请确认BootWare文件类型适用于待升级单板。

(8) 如果文件在加载结束后出现如下提示:Something is wrong with the file.请检查文件是否可用。

Copyright © 2011 杭州华三通信技术有限公司

1-43

本文标签: 文件升级主控板