《C220 V1.1.3热补丁升级说明》由会员分享,可在线阅读,更多相关《C220 V1.1.3热补丁升级说明(3页珍藏版)》请在金锄头文库上搜索。
1、2.1补丁命令列表patch loadpatchactivepatchdeactivepatch unloadshowpatch-savedshowpatch-running2.2补丁命令说明a)patch load patchname对补丁执行active/deactive操作之前,需要将文件下载至主控板,如果备机存在,会同时同步至备机;其中patchname为补丁文件名,取值范围为1-16个字符。下载成功之后可以通过showpatch-saved查看补丁信息举例1、下载主控板补丁ZXAN#patchloadgcsd_r1.patDownloadingfromhost(192.168.1.2
2、)TransferingfileGCSD_r1.pat.SuccessfullySynchronizingfileGCSD_r1.pattoslaveboard.Successfully2、下载线卡补丁ZXAN#patchload EIG_r1.patDownloadingfromhost(192.168.1.2)Transferingfile EIG_r1.pat.SuccessfullySynchronizingfile EIG_r1.pattoslaveboard.Successfullyb)patchactivepatchname激活已经下载成功的补丁,使补丁生效其中patchname
3、为补丁文件名,取值范围为1-16个字符。激活主控板补丁:主控板激活指定补丁,使补丁生效,如果备机存在,同时激活备机指定补丁;激活线卡补丁:指定补丁名,将激活机框内支持该补丁的所有线卡。激活成功之后可以通过showpatchrunning查看运行补丁信息补丁升级步骤。1) 用patch load命令加载补丁文件。ZXAN#patch load all Master patch load successSlave patch load success3)激活主控板补丁ZXAN#patchactivegcsd_r1.patActivepatchinshelf0slot7successActivepa
4、tchinshelf0slot8successActivepatchfinished4)激活线卡补丁ZXAN#patchactive eig_r1.patActivepatchinshelf0slot 3 successActivepatchinshelf0slot 11 successActivepatchfinishedc)patchdeactivepatchname去激活已经生效的补丁其中patchname为补丁文件名,取值范围为1-16个字符。去激活主控板补丁:主控板去激活指定补丁,使补丁失效,如果备机存在,同时去激活备机指定补丁;去激活线卡补丁:指定补丁名,将补丁在机框内支持该补丁的
5、线卡上去激活。deactivate补丁之后,showpatch-runing对应的信息清除举例1、去激活主控板补丁ZXAN#patchdeactivegcsd_r1.patDeactivepatchinshelf0slot7successDeactivepatchinshelf0slot8successDeactivepatchfinished2、去激活线卡补丁ZXAN#patchdeactive eig_r1.patDeactivepatchinshelf0slot 3 successDeactivepatchinshelf0slot 11 successDeactivepatchfinis
6、hedd)patch unload patchname删除指定补丁文件,如果补丁是激活状态,不允许删除。其中patchname为补丁文件名,取值范围为1-16个字符。如果备机存在,主备机同时执行删除操作举例1、删除主控板补丁ZXAN#patchunloadgcsd_r1.patStartdeletingfiledeletinggcsd_r1.pat.Successfullydeletingfilegcsd_r1.patonbackupboard.Successfully2、删除线卡补丁ZXAN#patchunload eig_r1.patStartdeletingfiledeleting ei
7、g_r1.pat.Successfullydeletingfile eig_r1.patonbackupboard.Successfullye)showpatch显示保存在主控板上的补丁文件,包括主控板补丁和线卡补丁如果存在备机同时显示备机上保存的补丁信息举例Loc PatchName OperateTime PatchState RunTime0/0/7 GCSD_r1.pat 2010-12-30 12:35:07 ACTIVE 0d 5h17m43sf)showpatch-running显示当前已经激活的所有补丁状态,包括主控板和线卡补丁showpatch-runningracknora
8、cknoshelfnoshelfnoslotnoslotnoracknorackno机架号 00(随项目有所区别)shelfnoshelfno机框号 00 (随项目有所区别)slotnoslotno槽位号 1-14 (随项目有所区别)不指定参数,显示所有激活补丁信息,指定槽位号,显示该槽位上激活补丁,举例ZXAN#shopatch-runningrackno0shelfno0LocFileNamePatchTagOperateTimePatchState-0/0/7gcsd_r0.pat2.02001-12-1021:13:06ACTIVE0/0/7gcsd_r2.pat2.02001-12-
9、1021:15:49ACTIVE0/0/7gcsd_r3.pat2.02001-12-1021:15:45ACTIVE0/0/7gcsd_r4.pat2.02001-12-1021:15:37ACTIVE0/0/8gcsd_r0.pat2.02001-12-1021:13:07ACTIVE0/0/8gcsd_r2.pat2.02001-12-1021:15:49ACTIVE0/0/8gcsd_r3.pat2.02001-12-1021:15:46ACTIVE0/0/8gcsd_r4.pat2.02001-12-1021:15:37ACTIVE2.3补丁启动加载说明主控板补丁在激活(active)状态下重启单板,重启过程中补丁会自动加载激活;备机存在情况下,备机启动过程中会根据主机上的配置文件将主机上的补丁文件(包括主控板补丁和线卡补丁)同步至备机,如果主控板补丁是激活状态,备机在完成同步之后自动激活该补丁;线卡补丁在主控板端patch load成功之后,线卡重启,补丁会自动从主控板下载补丁文件并激活。