i目录1软件升级指南·····································································································································1-1 1.1设备软件简介·····································································································································1-1 1.2升级方式简介·····································································································································1-1 1.3通过命令行进行软件升级··················································································································1-2 1.3.1独立运行模式下的软件升级····································································································1-2 1.3.2IRF模式下的软件升级·············································································································1-7 1.4通过BootRom菜单进行软件升级·····································································································1-13 1.4.1BootRom主菜单简介············································································································1-13 1.4.2通过BootRom菜单升级BootRom··························································································1-15 1.4.3通过BootRom菜单升级启动文件··························································································1-23 1.5软件升级失败的处理························································································································1-31 1-11软件升级指南1.1设备软件简介1.BootRom文件用于升级单板的BootRom的程序文件。BootRom文件包括升级主控板用的BootRom文件(例如:mpu109.btw)和升级业务板用的BootRom文件(例如:lpu109.btw)。2.启动文件用于引导设备启动的程序文件。S7500E系列交换机支持配置两个启动文件:•主用启动文件(main),缺省情况下,设备使用主用启动文件启动设备。•备用启动文件(backup),当主用启动文件不可用或主用启动文件不存在时,设备将使用备用启动文件启动设备。一般情况下,用户不需要单独升级BootRom程序,使用设备自带的BootRom程序即可。升级BootRom程序仅供H3C技术支持人员在必要时使用;没有经过专业培训的用户,请不要擅自操作。3.补丁包文件目前S7500E交换机的补丁主要以补丁包文件的形式发布。补丁包文件是用来修复设备软件缺陷的程序包,它将需要同期发布的多个补丁文件合为一个整体进行发布。使用补丁包文件升级时,用户只需下载该补丁包文件,执行一次命令,就可以完成设备上不同类型单板的软件升级,从而简化了补丁操作及补丁版本管理。补丁包文件与启动文件的版本一一对应,补丁包文件只能修复与其对应的启动文件的缺陷,不涉及功能的添加和删除。1.2升级方式简介用户可以选择如下两种方式升级设备软件:表1-1软件升级方式升级方式升级对象升级说明通过命令行进行软件升级•升级Bootrom•升级启动文件•需要重启设备来实现设备软件的升级。•使用该方式升级设备软件时会导致当前业务中断。安装补丁包•在升级过程中不会中断设备当前正在运行的业务。•只能修复与补丁文件对应启动文件的缺陷。通过BootRom菜单进行软件升级•升级Bootrom•升级启动文件可在设备无法正常启动时升级设备软件。1-2•设备支持通过ISSU(In-ServiceSoftwareUpgrade,不中断业务升级)方式升级启动文件,ISSU方式能够保证设备在升级过程中业务不中断,详细介绍请参见《H3CS7500E[S7508E-X]系列以太网交换机配置指导》中的“基础配置指导”。•在待升级设备能够正常运行的情况下,建议用户通过命令行对软件进行升级。•为了确保主用主控板和备用主控板软件版本的一致,请使用相同的升级方式对主用主控板和备用主控板进行升级。•进行软件升级前请确认当前的启动文件版本及BootRom版本,以便使用正确的文件。Comware版本和BootRom程序版本配套关系请参见产品《版本说明书》中的版本配套表。•业务板BootRom程序只能通过命令行进行升级。•文中的举例仅做参考,设备的显示信息请以实际情况为准。1.3通过命令行进行软件升级设备在独立运行模式和IRF模式下的升级步骤略有不同,请用户根据实际组网情况选择合适的升级步骤。•独立运行模式下的软件升级•IRF模式下的软件升级S7500E系列交换机支持设备建立IRF(IntelligentResilientFramework,智能弹性架构),配置了IRF功能的S7500E交换机相互连接之后即虚拟化成一台IRF模式下的设备。IRF的相关介绍请参见《H3CS7500E[S7508E-X]系列以太网交换机配置指导》中的“IRF配置指导”1.3.1独立运行模式下的软件升级1.软件升级准备操作#用户PC通过Telnet或者Console口登录到交换机上。#查看设备信息。SysnamedisplaydeviceSlotNo.BrdTypeBrdStatusSubslotNumSftVerPatchVer0LSQ1SRP1CBMaster0S7500ENone1LSQ1SRP1CBSlave0S7500ENone2NONEAbsent0NONENone3LSQ1GV48SCNormal0S7500ENone4LSQ1TGX1EANormal0S7500ENone通过以上信息得出设备有两块主控板,主用主控板所在的槽位号为0,备用主控板所在的槽位号为1,用户需要分别对主用主控板和备用主控板进行升级。1-3如果设备只有一块主控板时,用户只需对主用主控板进行升级操作。#查看主用主控板和备用主控板存储介质的剩余空间大小。•查看主用主控板存储介质的剩余空间大小。SysnamedirDirectoryofflash:/0-rw-3597Sep01200918:35:28startup.cfg1-rw-6625Jun02201016:50:51switch.cfg2-rw-27475851Aug11201011:04:20switch001.app3-rw-31782388Jul23201009:25:21switch002.app64389KBtotal(5636KBfree)•查看备用主控板存储介质的剩余空间大小。Sysnamedirslot1#flash:/Directoryofslot1#flash:/0-rw-3597Sep01200918:35:28startup.cfg1-rw-6625Jun02201016:50:51switch.cfg2-rw-27475851Aug11201011:04:20switch001.app3-rw-31782388Jul23201009:25:21switch002.app64389KBtotal(5636KBfree)通过以上显示信息可以分别得出主用主控板和备用主控板的存储介质剩余空间大小,用户可以将各主控板的存储介质剩余空间大小和待升级文件大小进行对比,判断存储介质剩余空间是否足够。当剩余空间不足时,可使用delete/unreserved命令删除存储介质中的多余文件,释放存储空间。#删除主用主控板和备用主控板存储介质中的多余文件。•删除主用主控板存储介质中的多余文件。Sysnamedelete/unreservedflash:/switch001.appThecontentcannotberestored!!!Deleteflash:/switch001.app?[Y/N]:yDeletingafilepermanentlywilltakealongtime.Pleasewait...%Deletefileflash:/switch001.app...Done.•删除备用主控板存储介质中的多余文件。Sysnamedelete/unreservedslot1#flash:/switch001.appThecontentcannotberestored!!!Deleteslot1#flash:/switch001.app?[Y/N]:yDeletingafilepermanentlywilltakealongtime.Pleasewait...%Deletefileslot1#flash:/switch001.app...Done.•使用delete/unreservedfile-url命令删除文件,被删除的文件被彻底删除,不能再恢复。•使用deletefile-url命令删除文件,被删除的文件被保存在回收站中,仍会占用存储空间。如果要彻底删除回收站中的某个废弃文件,必须在该文件的原目录下执行resetrecycle-bin命令,才可以回收存储空间。1-42.下载待升级文件到交换机在通过命令行方式升级交换机的BootRom和启动文件之前,首先要将待升级文件保存到主用主控板和备用主控板的存储介质(比如FLASH)中。如果待升级文件已经保存到主用主控板和备用主控板的存储介质中,可略过此步。用户可以通过FTP或TFTP方式把待升级文件下载到交换机的存储介质中,下面以交换机作为FTP客户端、用户PC作为FTP服务器为例进行介绍:(1)在用户PC(假设IP地址为10.10.110.1)上运行FTP服务器程序,设置用户名和密码,以及正确的文件保存目录。(2)将待升级软件(以newest.app为例)下载到交换机主用主控板的存储介质中。#设备作为FTP客户端登录到FTP服务器。Sysnameftp10.10.110.1Trying...PressCTRL+KtoabortConnectedto10.10.110.12203Com3CDaemonFTPServerVersion2.0User(10.10.110.1:(none)):username---输入用户名331Usernameok,needpasswordPassword:---输入密码230Userloggedin#