最佳答案
设备在独立运行模式和IRF模式下的升级步骤略有不同,请根据实际组网情况选择合适的升级步骤。
S12500-X系列交换机支持设备建立IRF(Intelligent Resilient Framework,智能弹性架构),配置了IRF功能的S12500-X交换机相互连接之后即虚拟化成一台IRF模式下的设备。IRF的相关介绍请参见《H3C S12500-X系列交换机 配置指导》中的“IRF配置指导”。
# 用户PC通过Telnet或者Console口登录到交换机上。
# 查看设备信息。
<Sysname> display device
Slot Type State Subslot Soft Ver Patch Ver
0 NONE Absent 0 NONE None
1 NONE Absent 0 NONE None
2 NONE Absent 0 NONE None
3 NONE Absent 0 NONE None
4 NONE Absent 0 NONE None
5 NONE Absent 0 NONE None
6 NONE Absent 0 NONE None
7 NONE Absent 0 NONE None
8 NONE Absent 0 NONE None
9 LSX1TGS48EA1 Normal 0 S12510-X-1002P06 None
10 LSX1FAB10B1 Normal 0 S12510-X-1002P06 None
11 LSX1FAB10B1 Normal 0 S12510-X-1002P06 None
12 NONE Absent 0 NONE None
13 NONE Absent 0 NONE None
14 NONE Absent 0 NONE None
15 NONE Absent 0 NONE None
16 LSX1SUP10A1 Standby 0 S12510-X-1002P06 None
17 LSX1SUP10A1 Master 0 S12510-X-1002P06 None
通过以上信息得出设备有两块主控板,主用主控板所在的槽位号为17,备用主控板所在的槽位号为16,用户需要分别对主用主控板和备用主控板进行升级。
如果设备只安装一块主控板,则用户只需对此主控板进行升级操作。
# 查看主用主控板和备用主控板存储介质的剩余空间大小。
· 查看主用主控板存储介质的剩余空间大小。
<Sysname> dir
Directory of flash:
0 drw- - Aug 06 2013 17:26:38 diagfile
1 -rw- 42 Aug 07 2013 08:55:30 ifindex.dat
2 drw- - Aug 06 2013 17:26:38 license
3 drw- - Aug 06 2013 18:26:41 logfile
4 -rw- 102294528 Apr 07 2013 13:47:21 S12500X-CMW710-E1002P01.ipe
5 -rw- 14908416 Aug 06 2013 17:21:31 s12500x-cmw710-boot-e1002p06.bin
6 -rw- 110083072 Aug 06 2013 17:23:20 s12500x-cmw710-system-e1002p06.bin
7 drw- - Aug 06 2013 17:26:38 seclog
8 -rw- 1982 Aug 07 2013 08:55:30 startup.cfg
9 -rw- 33368 Aug 07 2013 08:55:31 startup.mdb
10 drw- - Aug 06 2013 17:26:40 versionInfo
1028096 KB total (487680 KB free)
· 查看备用主控板存储介质的剩余空间大小。
<Sysname> dir slot16#flash:
Directory of slot16#flash:
0 drw- - Aug 06 2013 17:26:38 diagfile
1 -rw- 42 Aug 07 2013 08:55:30 ifindex.dat
2 drw- - Aug 06 2013 17:26:38 license
3 drw- - Aug 06 2013 18:26:41 logfile
4 -rw- 102294528 Apr 07 2013 13:47:21 S12500X-CMW710-E1002P01.ipe
5 -rw- 14908416 Aug 06 2013 17:21:31 s12500x-cmw710-boot-e1002p06.bin
6 -rw- 110083072 Aug 06 2013 17:23:20 s12500x-cmw710-system-e1002p06.bin
7 drw- - Aug 06 2013 17:26:38 seclog
8 -rw- 1982 Aug 07 2013 08:55:30 startup.cfg
9 -rw- 33368 Aug 07 2013 08:55:31 startup.mdb
10 drw- - Aug 06 2013 17:26:40 versionInfo
1028096 KB total (487680 KB free)
通过以上显示信息可以查看主用主控板和备用主控板的存储介质剩余空间大小。
用户可以将各主控板的存储介质剩余空间大小和待升级文件大小进行对比,判断存储介质剩余空间是否足够。当剩余空间不足时,可使用delete /unreserved命令删除存储介质中的多余文件,释放存储空间。
# 删除主用主控板和备用主控板存储介质中的多余文件。
· 删除主用主控板存储介质中的多余文件。
<Sysname> delete /unreserved flash:/S12500X-CMW710-E1002P01.ipe
The contents cannot be restored!!! Delete flash:/S12500X-CMW710-E1002P01.ipe?[Y/N]:y
Deleting a file permanently will take a long time. Please wait...
..................................................
Deleting file flash:/S12500X-CMW710-E1002P01.ipe ...Done.
· 删除备用主控板存储介质中的多余文件。
<Sysname> delete /unreserved slot16#flash:/S12500X-CMW710-E1002P01.ipe
The contents cannot be restored!!! Delete slot16#flash:/S12500X-CMW710-E1002P01.ipe ?[Y/N]:y
Deleting a file permanently will take a long time. Please wait...
..................................................
Deleting file slot16#flash:/S12500X-CMW710-E1002P01.ipe ...Done.
· 使用delete /unreserved file-url命令删除文件,被删除的文件将被彻底删除,不能再恢复。
· 使用delete file-url命令删除文件,被删除的文件被保存在回收站中,仍会占用存储空间。如果要彻底删除回收站中的某个废弃文件,必须在该文件的原目录下执行reset recycle-bin命令,清空回收站。
在通过命令行方式升级交换机的BootWare或启动软件包之前,首先要将待升级文件保存到主用主控板和备用主控板的存储介质(FLASH)中。如果待升级文件已经保存到主用主控板和备用主控板的存储介质中,可略过此步。
用户可以通过FTP或TFTP方式把待升级文件下载到交换机的存储介质中,下面以交换机作为FTP Client、用户PC作为FTP Server为例进行介绍:
(1) 在用户PC(假设IP地址为10.10.110.1)上运行FTP Server程序,设置用户名和密码,以及正确的文件保存目录,并把待升级文件保存在FTP Server的工作目录下。
FTP Server软件由用户自己购买和安装,交换机不附带此软件。
(2) 确保用户PC和交换机之间路由可达。
(3) 将待升级软件(以newest.ipe为例)下载到交换机主用主控板的存储介质中。
# 设备作为FTP Client登录到FTP Server。
<Sysname> ftp 192.168.0.23
Connected to 192.168.0.23 (192.168.0.23).
220 WFTPD 2.0 service (by Texas Imperial Software) ready for new user
User (192.168.0.23:(none)):username ---输入用户名
331 Give me your password, please
Password: ---输入密码
230 Logged in successfully
Remote system type is MSDOS.
ftp>
# 将传输模式设置为二进制模式,以便传输启动软件包。
ftp> binary
200 Type is Image (Binary)
# 将启动软件包newest.ipe从FTP服务器下载到全局主用主控板存储介质的根目录下。
ftp> get newest.ipe
227 Entering Passive Mode (192,168,0,23,7,100)
150 "C:\ newest.ipe " file ready to send (385 bytes) in in IMAGE / Binary mode
226 Transfer finished successfully.
74948608 bytes received in 35.974 seconds (896.00 kbyte/s)
ftp> bye
221 Windows FTP Server (WFTPD, by Texas Imperial Software) says goodbye
(4) 将待升级软件(以newest.ipe为例)拷贝到交换机备用主控板的存储介质的根目录下。
# 将启动软件包newest.ipe从主用主控板拷贝到备用主控板(所在槽位号为16)存储介质的根目录下。
<Sysname> copy newest.ipe slot16#flash:/
Copy flash:/newest.ipe to slot16#flash:/newest.ipe?[Y/N]:y
Copying file flash:/newest.ipe to slot16#flash:/newest.ipe...Done.
· 使用FTP方式下载时,交换机既可以充当FTP Server也可以充当FTP Client,使用TFTP下载时,交换机只能充当TFTP Client,三种下载方式略有差异。有关FTP和TFTP配置的详细介绍,请参见《H3C S12500-X系列交换机 配置指导》中的“基础配置指导”。
· 通过命令行进行软件升级时,BootWare文件、启动软件包和补丁包文件的下载方法相同。
进行软件升级前,请确认已经将待升级文件保存到设备主用主控板存储介质的根目录下。
用户可以根据升级对象以及用于升级的软件类型选择对应的升级操作:
· 升级启动文件
· 安装补丁
用于升级BootWare的文件压缩在.ipe文件中,用户需要将.ipe文件下载并保存到设备主用主控板的存储介质的根目录下。(下面举例中,用于升级设备的BootWare文件压缩在newest.ipe文件中。)
# 将newest.ipe文件解压到主用主控板。
<Sysname>install add flash:/newest.ipe flash:
Verifying image file...Done.
This operation will take several minutes, please wait...........................
....................................................Done.
解压完成后会在主用主控板存储介质根目录下生成BOOT包文件(S12500X-CMW710-BOOT-E1002P08.bin)和SYSTEM包(S12500X-CMW710-SYSTEM-E1002P08.bin)文件。
# 升级主用主控板(所在槽位号为17)的BootWare。
<Sysname> bootrom update file flash:/S12500X-CMW710-BOOT-E1002P08.bin slot 17
This command will update bootrom file on the specified board(s),
Continue? [Y/N]:y
Now updating the Boot ROM, please wait........... ...........Done
# 升级备用主控板(所在槽位号为16)的BootWare。
<Sysname> bootrom update file slot16#flash:/S12500X-CMW710-BOOT-E1002P08.bin slot 16
This command will update bootrom file on the specified board(s),
Continue? [Y/N]:y
Now updating the Boot ROM, please wait........... ...........Done
# 升级业务板(所在槽位号为9)的BootWare。(设备上其它业务板升级方式相同。)
<Sysname> bootrom update file flash:/S12500X-CMW710-BOOT-E1002P08.bin slot 9
This command will update bootrom file on the specified board(s),
Continue? [Y/N]:y
Now updating the Boot ROM, please wait........... ...........Done
# 升级网板(所在槽位号为10)的BootWare。(设备上其它网板升级方式相同。)
<Sysname> bootrom update file flash:/S12500X-CMW710-BOOT-E1002P08.bin slot 10
This command will update bootrom file on the specified board(s),
Continue? [Y/N]:y
Now updating the Boot ROM, please wait........... ...........Done
# 重启设备,完成对BootWare的升级。
<Sysname> reboot
Start to check configuration with next startup configuration file, please wait.
........DONE!
This command will reboot the device. Continue? [Y/N]:y
Now rebooting, please wait...
# 将解压生成的S12500X-CMW710-BOOT-E1002P08.bin和S12500X-CMW710-SYSTEM-E1002P08.bin指定为主用主控板(所在槽位号为17)的主用启动文件。
<Sysname> boot-loader file boot flash:/S12500X-CMW710-BOOT-E1002P08.bin system flash:/S12500X-CMW710-SYSTEM-E1002P08.bin slot 17 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 slot 17
# 将解压生成的S12500X-CMW710-BOOT-E1002P08.bin和S12500X-CMW710-SYSTEM-E1002P08.bin指定为备用主控板(所在槽位号为16)的主用启动文件。
<Sysname> boot-loader file boot flash:/S12500X-CMW710-BOOT-E1002P08.bin system flash:/S12500X-CMW710-SYSTEM-E1002P08.bin slot 16 main
This command will set the main startup software images. Continue? [Y/N]:y
Successfully copied flash:/S12500X-CMW710-BOOT-E1002P08.bin to slot16#flash:/S12500X-CMW710-BOOT-E1002P08.bin.
Successfully copied flash:/S12500X-CMW710-SYSTEM-E1002P08.bin to slot16#flash:/S12500X-CMW710-SYSTEM-E1002P08.bin.
The images that have passed all examinations will be used as the main startup so
ftware images at the next reboot on slot 16
# 重启设备,完成对启动文件的升级。
<Sysname> reboot
Start to check configuration with next startup configuration file, please wait.
........DONE!
This command will reboot the device. Continue? [Y/N]:y
Now rebooting, please wait...
· 重启设备以前,请先保存当前配置,防止设备重启而造成配置丢失。
· 启动文件必须保存在存储介质的根目录下,请确保已将启动文件保存到设备主用主控板和备用主控板的存储介质的根目录下。可使用文件的拷贝或移动操作来调整文件的路径。关于boot-loader命令的详细介绍请参见《H3C S12500-X系列交换机 命令参考》中的“基础配置命令参考”。
请确保已将补丁包文件保存到主用主控板和备用主控板Flash的根目录下。
# 通过补丁包文件(以S12500X-CMW710-SYSTEM-E1002H08.bin为例)安装补丁到主用主控板。
<Sysname> install activate patch flash:/S12500X-CMW710-SYSTEM-E1002H08.bin slot 17
# 通过补丁包文件(以S12500X-CMW710-SYSTEM-E1002H08.bin为例)安装补丁到备用主控板。
<Sysname> install activate patch flash:/S12500X-CMW710-SYSTEM-E1002H08.bin slot 16
# 配置补丁在设备下次重启后继续生效。
<Sysname> install commit
# 执行display install active命令显示处于active状态补丁包的信息,需要注意此命令会显示所有处于激活状态的软件包的相关信息。
<Sysname> display install active
Active packages on slot 9:
flash:/S12500X-CMW710-BOOT-E1002P08.bin
flash:/S12500X-CMW710-SYSTEM-E1002P08.bin
flash:/S12500X-CMW710-SYSTEM-E1002H08.bin
Active packages on slot 10:
flash:/S12500X-CMW710-BOOT-E1002P08.bin
flash:/S12500X-CMW710-SYSTEM-E1002P08.bin
flash:/S12500X-CMW710-SYSTEM-E1002H08.bin
Active packages on slot 11:
flash:/S12500X-CMW710-BOOT-E1002P08.bin
flash:/S12500X-CMW710-SYSTEM-E1002P08.bin
flash:/S12500X-CMW710-SYSTEM-E1002H08.bin
Active packages on slot 16:
flash:/S12500X-CMW710-BOOT-E1002P08.bin
flash:/S12500X-CMW710-SYSTEM-E1002P08.bin
flash:/S12500X-CMW710-SYSTEM-E1002H08.bin
Active packages on slot 17:
flash:/S12500X-CMW710-BOOT-E1002P08.bin
flash:/S12500X-CMW710-SYSTEM-E1002P08.bin
flash:/S12500X-CMW710-SYSTEM-E1002H08.bin
· 如果设备以前安装过补丁或补丁包,需要先将历史补丁卸载,才能安装新补丁包。用户可以使用display install active显示设备的补丁信息。有关安装补丁的详细介绍请参见《H3C S12500-X系列交换机 配置指导》中的“基础配置指导”。
· 软件包安装只在设备本次运行过程中生效,用户只有通过install commit命令确认软件包的更改后,才能使此次激活的软件包在系统重启后仍处于激活状态。
# 用户PC通过Telnet或者Console口登录到交换机上。
# 查看设备信息。
<Sysname>display device
Chassis Slot Type State Subslot Soft Ver Patch Ver
1 0 NONE Absent 0 NONE None
1 1 NONE Absent 0 NONE None
1 2 NONE Absent 0 NONE None
1 3 NONE Absent 0 NONE None
1 4 NONE Absent 0 NONE None
1 5 NONE Absent 0 NONE None
1 6 NONE Absent 0 NONE None
1 7 NONE Absent 0 NONE None
1 8 NONE Absent 0 NONE None
1 9 LSX1TGS48EA1 Normal 0 S12510-X-1002P06 None
1 10 LSX1FAB10B1 Normal 0 S12510-X-1002P06 None
1 11 LSX1FAB10B1 Normal 0 S12510-X-1002P06 None
1 12 NONE Absent 0 NONE None
1 13 NONE Absent 0 NONE None
1 14 NONE Absent 0 NONE None
1 15 NONE Absent 0 NONE None
1 16 LSX1SUP10A1 Standby 0 S12510-X-1002P06 None
1 17 LSX1SUP10A1 Master 0 S12510-X-1002P06 None
2 0 NONE Absent 0 NONE None
2 1 NONE Absent 0 NONE None
2 2 NONE Absent 0 NONE None
2 3 NONE Absent 0 NONE None
2 4 NONE Absent 0 NONE None
2 5 NONE Absent 0 NONE None
2 6 NONE Absent 0 NONE None
2 7 NONE Absent 0 NONE None
2 8 NONE Absent 0 NONE None
2 9 LSX1TGS48EA1 Normal 0 S12510-X-1002P06 None
2 10 LSX1FAB10B1 Normal 0 S12510-X-1002P06 None
2 11 LSX1FAB10B1 Normal 0 S12510-X-1002P06 None
2 12 NONE Absent 0 NONE None
2 13 NONE Absent 0 NONE None
2 14 NONE Absent 0 NONE None
2 15 NONE Absent 0 NONE None
2 16 LSX1SUP10A1 Standby 0 S12510-X-1002P06 None
2 17 LSX1SUP10A1 Standby 0 S12510-X-1002P06 None
通过以上信息看出设备运行在IRF模式下。IRF模式下该设备各主控板信息如表2。
表2 IRF模式下的主控板列表
主控板 | 成员编号 | 槽位号 |
全局主用主控板 | 1 | 17 |
全局备用主控板 | 1 | 16 |
全局备用主控板 | 2 | 17 |
全局备用主控板 | 2 | 16 |
# 分别查看全局主用主控板及各全局备用主控板存储介质的剩余空间大小。
· 查看全局主用主控板的存储介质的剩余空间大小。
<Sysname> dir
Directory of flash:
0 drw- - Aug 06 2013 17:26:38 diagfile
1 -rw- 42 Aug 07 2013 08:55:30 ifindex.dat
2 drw- - Aug 06 2013 17:26:38 license
3 drw- - Aug 06 2013 18:26:41 logfile
4 -rw- 102294528 Apr 07 2013 13:47:21 S12500X-CMW710-E1002P01.ipe
5 -rw- 14908416 Aug 06 2013 17:21:31 s12500x-cmw710-boot-e1002p06.bin
6 -rw- 110083072 Aug 06 2013 17:23:20 s12500x-cmw710-system-e1002p06.bin
7 drw- - Aug 06 2013 17:26:38 seclog
8 -rw- 1982 Aug 07 2013 08:55:30 startup.cfg
9 -rw- 33368 Aug 07 2013 08:55:31 startup.mdb
10 drw- - Aug 06 2013 17:26:40 versionInfo
1028096 KB total (487680 KB free)
· 查看全局备用主控板(成员设备编号为1,槽位号为16)的存储介质的剩余空间大小。
<Sysname> dir chassis1#slot16#flash:
Directory of chassis1#slot16#flash:
0 drw- - Aug 06 2013 17:26:38 diagfile
1 -rw- 42 Aug 07 2013 08:55:30 ifindex.dat
2 drw- - Aug 06 2013 17:26:38 license
3 drw- - Aug 06 2013 18:26:41 logfile
4 -rw- 102294528 Apr 07 2013 13:47:21 S12500X-CMW710-E1002P01.ipe
5 -rw- 14908416 Aug 06 2013 17:21:31 s12500x-cmw710-boot-e1002p06.bin
6 -rw- 110083072 Aug 06 2013 17:23:20 s12500x-cmw710-system-e1002p06.bin
7 drw- - Aug 06 2013 17:26:38 seclog
8 -rw- 1982 Aug 07 2013 08:55:30 startup.cfg
9 -rw- 33368 Aug 07 2013 08:55:31 startup.mdb
10 drw- - Aug 06 2013 17:26:40 versionInfo
1028096 KB total (487680 KB free)
· 查看全局备用主控板(成员设备编号为2,槽位号为16)的存储介质的剩余空间大小。
<Sysname> dir chassis2#slot16#flash:
Directory of chassis2#slot16#flash:
0 drw- - Aug 06 2013 17:26:38 diagfile
1 -rw- 42 Aug 07 2013 08:55:30 ifindex.dat
2 drw- - Aug 06 2013 17:26:38 license
3 drw- - Aug 06 2013 18:26:41 logfile
4 -rw- 102294528 Apr 07 2013 13:47:21 S12500X-CMW710-E1002P01.ipe
5 -rw- 14908416 Aug 06 2013 17:21:31 s12500x-cmw710-boot-e1002p06.bin
6 -rw- 110083072 Aug 06 2013 17:23:20 s12500x-cmw710-system-e1002p06.bin
7 drw- - Aug 06 2013 17:26:38 seclog
8 -rw- 1982 Aug 07 2013 08:55:30 startup.cfg
9 -rw- 33368 Aug 07 2013 08:55:31 startup.mdb
10 drw- - Aug 06 2013 17:26:40 versionInfo
1028096 KB total (487680 KB free)
· 查看全局备用主控板(成员设备编号为2,槽位号为17)的存储介质的剩余空间大小。
<Sysname> dir chassis2#slot17#flash:
Directory of chassis2#slot17#flash:
0 drw- - Aug 06 2013 17:26:38 diagfile
1 -rw- 42 Aug 07 2013 08:55:30 ifindex.dat
2 drw- - Aug 06 2013 17:26:38 license
3 drw- - Aug 06 2013 18:26:41 logfile
4 -rw- 102294528 Apr 07 2013 13:47:21 S12500X-CMW710-E1002P01.ipe
5 -rw- 14908416 Aug 06 2013 17:21:31 s12500x-cmw710-boot-e1002p06.bin
6 -rw- 110083072 Aug 06 2013 17:23:20 s12500x-cmw710-system-e1002p06.bin
7 drw- - Aug 06 2013 17:26:38 seclog
8 -rw- 1982 Aug 07 2013 08:55:30 startup.cfg
9 -rw- 33368 Aug 07 2013 08:55:31 startup.mdb
10 drw- - Aug 06 2013 17:26:40 versionInfo
1028096 KB total (487680 KB free)
通过以上显示信息可以分别得出全局主用主控板及各全局备用主控板的存储介质剩余空间大小,用户可以将各主控板的存储介质剩余空间大小和待升级文件大小进行对比,判断该主控板的存储介质剩余空间是否足够。当剩余空间不足时,可使用delete /unreserved命令删除存储介质中的多余文件,释放存储空间。
# 删除全局主用主控板和全局备用主控板存储介质中的多余文件。
· 删除全局主用主控板存储介质中的多余文件。
<Sysname> delete /unreserved flash:/S12500X-CMW710-E1002P01.ipe
The contents cannot be restored!!! Delete flash:/S12500X-CMW710-E1002P01.ipe?[Y/N]:y
Deleting a file permanently will take a long time. Please wait...
..................................................
Deleting file flash:/S12500X-CMW710-E1002P01.ipe...Done.
· 删除成员设备编号为1、槽位号为16的全局备用主控板存储介质中的多余文件(其他全局备用主控板上的多余文件删除方法相同)。
<Sysname> delete /unreserved chassis1#slot16#flash:/S12500X-CMW710-E1002P01.ipe
The contents cannot be restored!!! Delete chassis1#slot16#flash:/S12500X-CMW710-E1002P01.ipe?[Y/N]:y
Deleting a file permanently will take a long time. Please wait...
..................................................
Deleting file chassis1#slot16#flash:/S12500X-CMW710-E1002P01.ipe...Done.
· 使用delete /unreserved file-url命令删除文件,被删除的文件被彻底删除,不能再恢复。
· 使用delete file-url命令删除文件,被删除的文件被保存在回收站中,仍会占用存储空间。如果要彻底删除回收站中的某个废弃文件,必须在该文件的原目录下执行reset recycle-bin命令,清空回收站。
在通过命令行方式升级交换机的BootWare或启动软件包之前,首先要将待升级文件加载保存到全局主用主控板和各备用主控板的存储介质(FLASH)中。如果待升级文件已经保存到全局主用主控板和各备用主控板的存储介质中,可略过此步。
用户可以通过FTP或TFTP方式把待升级文件下载到交换机的存储介质中,下面以交换机作为FTP Client、用户PC作为FTP Server为例进行介绍:
(1) 在用户PC(假设IP地址为10.10.110.1)上运行FTP Server程序,并设置用户名和密码,以及正确的工作目录,并把待升级文件保存在FTP Server的工作目录下。
FTP Server软件由用户自己购买和安装,交换机不附带此软件。
(2) 确保用户PC和交换机之间路由可达。
(3) 将待升级软件(以newest.ipe为例)下载到交换机全局主用主控板的存储介质中。
# 交换机作为FTP Client登录到FTP Server。
<Sysname> ftp 192.168.0.23
Connected to 192.168.0.23 (192.168.0.23).
220 WFTPD 2.0 service (by Texas Imperial Software) ready for new user
User (192.168.0.23:(none)):username ---输入用户名
331 Give me your password, please
Password: ---输入密码
230 Logged in successfully
Remote system type is MSDOS.
ftp>
# 将传输模式设置为二进制模式,以便传输启动软件包。
ftp> binary
200 Type is Image (Binary)
# 将启动软件包newest.ipe从FTP服务器下载到全局主用主控板存储介质的根目录下。
ftp> get newest.ipe
227 Entering Passive Mode (192,168,0,23,7,100)
150 "C:\ newest.ipe " file ready to send (385 bytes) in in IMAGE / Binary mode
226 Transfer finished successfully.
74948608 bytes received in 35.974 seconds (896.00 kbyte/s)
ftp> bye
221 Windows FTP Server (WFTPD, by Texas Imperial Software) says goodbye
(4) 将待升级软件(以newest.ipe为例)从全局主用主控板拷贝到全局备用主控板存储介质的根目录下。
# 将启动软件包newest.ipe从全局主用主控板拷贝到全局备用主控板(成员设备编号为1,槽位号为16)。
<Sysname> copy newest.ipe chassis1#slot16#flash:/
Copy flash:/newest.ipe to chassis1#slot16#flash:/newest.ipe?[Y/N]:y
Copying file flash:/newest.ipe to chassis1#slot16#flash:/newest.ipe...Done.
# 将启动软件包newest.ipe从全局主用主控板拷贝到全局备用主控板(成员设备编号为2,槽位号为16)。
<Sysname> copy newest.ipe chassis2#slot16#flash:/
Copy flash:/newest.ipe to chassis2#slot16#flash:/newest.ipe?[Y/N]:y
Copying file flash:/newest.ipe to chassis2#slot16#flash:/newest.ipe...Done.
# 将启动软件包newest.ipe从全局主用主控板拷贝到全局备用主控板(成员设备编号为2,槽位号为17)。
<Sysname> copy newest.ipe chassis2#slot17#flash:/
Copy flash:/newest.ipe to chassis2#slot17#flash:/newest.ipe?[Y/N]:y
Copying file flash:/newest.ipe to chassis2#slot17#flash:/newest.ipe...Done.
· 使用FTP方式下载时,交换机既可以充当FTP服务器也可以充当FTP客户端,使用TFTP下载时,交换机只能充当TFTP客户端,三种下载方式略有差异。有关FTP和TFTP配置的详细介绍,请参见《H3C S12500-X系列交换机 配置指导》中的“基础配置指导”。
· 通过命令行进行软件升级时,BootWare文件、启动软件包和补丁包文件的下载方法相同。
进行软件升级前,请确认已经将待升级文件保存到设备全局主用主控板的存储介质的根目录下。
用户可以根据升级对象以及用于升级的软件类型选择对应的升级操作:
· 升级启动文件
· 安装补丁
用于升级BootWare的文件压缩在.ipe文件中,用户需要将.ipe文件下载并保存到设备全局主用主控板存储介质的根目录下。(下面举例中,用于升级设备的BootWare文件压缩在newest.ipe文件中。)
# 将newest.ipe文件解压到全局主用主控板(成员设备编号为1,槽位号为17)。
<Sysname>install add flash:/newest.ipe flash:
Verifying image file...Done.
This operation will take several minutes, please wait...........................
....................................................Done.
解压完成后会在主用主控板存储介质根目录下生成BOOT包文件(S12500X-CMW710-BOOT-E1002P08.bin)和SYSTEM包(S12500X-CMW710-SYSTEM-E1002P08.bin)文件。
# 升级全局主用主控板的BootWare。
<Sysname> bootrom update file flash:/S12500X-CMW710-BOOT-E1002P08.bin chassis 1 slot 17
This command will update bootrom file on the specified board(s),
Continue? [Y/N]:y
Now updating the Boot ROM, please wait........... ...........Done.
# 升级全局备用主控板(成员设备编号为1,槽位号为16)的BootWare。(IRF中其它全局备用主控板的BootWare升级方式相同。)
<Sysname>bootrom update file chassis1#slot16#flash:/S12500X-CMW710-BOOT-E1002P08.bin chassis 1 slot 16
This command will update bootrom file on the specified board(s), Continue? [Y/N]:y
Now updating the Boot ROM, please wait........... ...........Done.
# 升级业务板(成员设备编号为2,槽位号为9)的BootWare。(IRF中其它业务板的BootWare升级方式相同。)
<Sysname>bootrom update file flash:/S12500X-CMW710-BOOT-E1002P08.bin chassis 2 slot 9
This command will update bootrom file on the specified board(s), Continue? [Y/N]:y
Now updating the Boot ROM, please wait........... ...........Done.
# 升级网板(成员设备编号为2,槽位号为10)的BootWare。(IRF中其它网板的BootWare升级方式相同。)
<Sysname>bootrom update file flash:/S12500X-CMW710-BOOT-E1002P08.bin chassis 2 slot 10
This command will update bootrom file on the specified board(s), Continue? [Y/N]:y
Now updating the Boot ROM, please wait........... ...........Done.
# 重启整个IRF,完成对BootWare的升级。
<Sysname> reboot
Start to check configuration with next startup configuration file, please wait.
........DONE!
This command will reboot the device. Continue? [Y/N]:y
Now rebooting, please wait...
# 将解压生成的S12500X-CMW710-BOOT-E1002P08.bin和S12500X-CMW710-SYSTEM-E1002P08.bin指定为全局主用主控板(成员设备编号为1,槽位号为17)的主用启动文件。
<Sysname> boot-loader file boot flash:/S12500X-CMW710-BOOT-E1002P08.bin system flash:/S12500X-CMW710-SYSTEM-E1002P08.bin chassis 1 slot 17 main
The images that have passed all examinations will be used as the main startup so
ftware images at the next reboot on chassis 1 slot 17..
# 将解压生成的S12500X-CMW710-BOOT-E1002P08.bin和S12500X-CMW710-SYSTEM-E1002P08.bin指定为全局备用主用主控板(成员设备编号为1,槽位号为16)的主用启动文件。
<Sysname> boot-loader file boot flash:/S12500X-CMW710-BOOT-E1002P08.bin system flash:/S12500X-CMW710-SYSTEM-E1002P08.bin chassis 1 slot 16 main
This command will set the main startup software images. Continue? [Y/N]:y
Successfully copied flash:/S12500X-CMW710-BOOT-E1002P08.bin to chassis1#slot16#flash:
/S12500X-CMW710-BOOT-E1002P08.bin.
Successfully copied flash:/S12500X-CMW710-SYSTEM-E1002P08.bin to chassis1#slot16#flas
h:/S12500X-CMW710-SYSTEM-E1002P08.bin.
The images that have passed all examinations will be used as the main startup so
ftware images at the next reboot on chassis 1 slot 16.
# 将解压生成的S12500X-CMW710-BOOT-E1002P08.bin和S12500X-CMW710-SYSTEM-E1002P08.bin指定为全局备用主用主控板(成员设备编号为2,槽位号为16)的主用启动文件。
<Sysname> boot-loader file boot flash:/S12500X-CMW710-BOOT-E1002P08.bin system flash:/S12500X-CMW710-SYSTEM-E1002P08.bin chassis 2 slot 16 main
This command will set the main startup software images. Continue? [Y/N]:y
Successfully copied flash:/S12500X-CMW710-BOOT-E1002P08.bin to chassis2#slot16#flash:
/S12500X-CMW710-BOOT-E1002P08.bin.
Successfully copied flash:/S12500X-CMW710-SYSTEM-E1002P08.bin to chassis2#slot16#flas
h:/S12500X-CMW710-SYSTEM-E1002P08.bin.
The images that have passed all examinations will be used as the main startup so
ftware images at the next reboot on chassis 2 slot 16.
# 将解压生成的S12500X-CMW710-BOOT-E1002P08.bin和S12500X-CMW710-SYSTEM-E1002P08.bin指定为全局备用主用主控板(成员设备编号为2,槽位号为17)的主用启动文件。
<Sysname> boot-loader file boot flash:/S12500X-CMW710-BOOT-E1002P08.bin system flash:/S12500X-CMW710-SYSTEM-E1002P08.bin chassis 2 slot 17 main
This command will set the main startup software images. Continue? [Y/N]:y
Successfully copied flash:/S12500X-CMW710-BOOT-E1002P08.bin to chassis2#slot17#flash:
/S12500X-CMW710-BOOT-E1002P08.bin.
Successfully copied flash:/S12500X-CMW710-SYSTEM-E1002P08.bin to chassis2#slot17#flas
h:/S12500X-CMW710-SYSTEM-E1002P08.bin.
The images that have passed all examinations will be used as the main startup so
ftware images at the next reboot on chassis 2 slot 17.
# 重启设备,完成对启动文件的升级。
<Sysname> reboot
Start to check configuration with next startup configuration file, please wait.
........DONE!
This command will reboot the device. Continue? [Y/N]:y
Now rebooting, please wait...
· 重启设备以前,请先保存当前配置,防止设备重启而造成配置丢失。
· 启动文件必须保存在存储介质的根目录下,请确保已将启动文件保存到设备全局主用主控板和各全局备用主控板的存储介质的根目录下。可使用文件的拷贝或移动操作来调整文件的路径。关于boot-loader命令的详细介绍请参见《H3C S12500-X系列交换机 命令参考》中的“基础配置命令参考”。
请确保已将补丁包文件保存到所有主控板Flash的根目录下。
# 通过补丁包文件(以S12500X-CMW710-SYSTEM-E1002H08.bin为例)安装补丁到全局主用主控板。
<Sysname> install activate patch flash:/S12500X-CMW710-SYSTEM-E1002H08.bin chassis 1 slot 17
# 通过补丁包文件(以S12500X-CMW710-SYSTEM-E1002H08.bin为例)安装补丁到全局备用主控板。
<Sysname> install activate patch flash:/S12500X-CMW710-SYSTEM-E1002H08.bin chassis 1 slot 16
<Sysname> install activate patch flash:/S12500X-CMW710-SYSTEM-E1002H08.bin chassis 2 slot 17
<Sysname> install activate patch flash:/S12500X-CMW710-SYSTEM-E1002H08.bin chassis 2 slot 16
# 配置补丁在设备下次重启后继续生效。
<Sysname> install commit
# 执行display install active命令显示处于active状态补丁包的信息,需要注意此命令会显示所有处于激活状态的软件包的相关信息。
<Sysname> display install active
Active packages on chassis 1 slot 9:
flash:/S12500X-CMW710-BOOT-E1002P08.bin
flash:/S12500X-CMW710-SYSTEM-E1002P08.bin
flash:/S12500X-CMW710-SYSTEM-E1002H08.bin
Active packages on chassis 1 slot 10:
flash:/S12500X-CMW710-BOOT-E1002P08.bin
flash:/S12500X-CMW710-SYSTEM-E1002P08.bin
flash:/S12500X-CMW710-SYSTEM-E1002H08.bin
Active packages on chassis 1 slot 11:
flash:/S12500X-CMW710-BOOT-E1002P08.bin
flash:/S12500X-CMW710-SYSTEM-E1002P08.bin
flash:/S12500X-CMW710-SYSTEM-E1002H08.bin
Active packages on chassis 1 slot 16:
flash:/S12500X-CMW710-BOOT-E1002P08.bin
flash:/S12500X-CMW710-SYSTEM-E1002P08.bin
flash:/S12500X-CMW710-SYSTEM-E1002H08.bin
Active packages on chassis 1 slot 17:
flash:/S12500X-CMW710-BOOT-E1002P08.bin
flash:/S12500X-CMW710-SYSTEM-E1002P08.bin
flash:/S12500X-CMW710-SYSTEM-E1002H08.bin
Active packages on chassis 2 slot 9:
flash:/S12500X-CMW710-BOOT-E1002P08.bin
flash:/S12500X-CMW710-SYSTEM-E1002P08.bin
flash:/S12500X-CMW710-SYSTEM-E1002H08.bin
Active packages on chassis 2 slot 10:
flash:/S12500X-CMW710-BOOT-E1002P08.bin
flash:/S12500X-CMW710-SYSTEM-E1002P08.bin
flash:/S12500X-CMW710-SYSTEM-E1002H08.bin
Active packages on chassis 2 slot 11:
flash:/S12500X-CMW710-BOOT-E1002P08.bin
flash:/S12500X-CMW710-SYSTEM-E1002P08.bin
flash:/S12500X-CMW710-SYSTEM-E1002H08.bin
Active packages on chassis 2 slot 16:
flash:/S12500X-CMW710-BOOT-E1002P08.bin
flash:/S12500X-CMW710-SYSTEM-E1002P08.bin
flash:/S12500X-CMW710-SYSTEM-E1002H08.bin
Active packages on chassis 2 slot 17:
flash:/S12500X-CMW710-BOOT-E1002P08.bin
flash:/S12500X-CMW710-SYSTEM-E1002P08.bin
flash:/S12500X-CMW710-SYSTEM-E1002H08.bin
· 如果设备以前安装过补丁,需要先将历史补丁卸载,才能安装新补丁。用户可以使用display install active显示设备的补丁信息。有关安装补丁的详细介绍请参见《H3C S12500-X系列交换机 配置指导》中的“基础配置指导”。
· 软件包安装只在设备本次运行过程中生效,用户只有通过install commit命令确认软件包的更改后,才能使此次激活的软件包在系统重启后仍处于激活状态。
(0)
亲~登录后才可以操作哦!
确定你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作
举报
×
侵犯我的权益
×
侵犯了我企业的权益
×
抄袭了我的内容
×
原文链接或出处
诽谤我
×
对根叔社区有害的内容
×
不规范转载
×
举报说明
暂无评论