第27章 线卡热插拔.doc_第1页
第27章 线卡热插拔.doc_第2页
第27章 线卡热插拔.doc_第3页
第27章 线卡热插拔.doc_第4页
第27章 线卡热插拔.doc_第5页
已阅读5页,还剩3页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

第27章 线卡热插拔本章主要介绍路由器的热插拔功能及如何进行线卡热插拔。本章主要内容:l 简介l 热插拔相关命令l 线卡手动热插拔l 线卡命令热插拔l 热插拔过程调试27.1 简介热插拔功能就是在系统不停止工作的情况下,将线卡插入系统,或将线卡从系统中拔出(热拔出),系统可进行线卡的动态加载或卸载及配置,而不影响系统的正常运行。可以在不影响其它业务的情况下更换、添加或移除系统中的线卡。可以进行线卡的手动热插拔、命令热插拔、命令复位等动作。27.2 热插拔相关命令命令描述配置模式hotswap online slot将某槽位线卡命令热插入enablehotswap offline slot将某槽位线卡命令热拔出enablehotswap reset slot将某槽位线卡命令热复位enabledebug hotswap打开热插拔调试开关enableno debug hotswap关闭热插拔调试开关enabledebug hot-swap-config打开热插拔配置调试开关enableno debug hot-swap-config关闭热插拔配置调试开关enable27.3 线卡手动热插拔手动热插拔是指直接通过设备面板的操作将线卡切换到在线或离线状态,将线卡插入系统或从系统中拔出。27.3.1 手动热插入操作方法为直接将支持热插拔功能的线卡插入系统,或按动系统中处于离线状态的线卡面板上的热插拔按钮,此时线卡面板上的热插拔状态灯开始闪烁,表明系统正在对插入的线卡进行加载,线卡加载完成后,热插拔状态灯由闪烁状态变为点亮状态。手动热插入时,shell界面上将打印以下提示信息,这些提示信息将写入日志文件:加载成功:00:02:34: %HOTSWAP: Manual hotswap online, slot = 600:02:36: %HOTSWAP: Hotswap process success!加载失败:00:02:34: %HOTSWAP: Manual hotswap online, slot = 600:02:36: %HOTSWAP: Hotswap process fail!线卡加载失败时,请将线卡从系统中拔出,然后再插入系统,重新进行加载。& 注:根据线卡类型的不同,线卡加载的时间从3-10秒不等,线卡加载的时候,热插拔状态灯在闪烁,此时,请不要将线卡从系统中拔出,否则会导致不可预料的后果。27.3.2 手动热拔出操作方法为:1按动系统中处于在线状态的线卡面板上的热插拔按钮,此时线卡面板上的热插拔状态灯开始闪烁,表明系统正在对插入的线卡进行卸载。2线卡卸载完成后,热插拔状态灯由闪烁状态变为熄灭状态,此时可以将线卡从系统中拔出。手动热拔出时,shell界面上将打印以下提示信息,这些提示信息将写入日志文件:卸载成功:00:02:59: %HOTSWAP: Manual hotswap offline, slot = 600:03:00: %HOTSWAP: Hotswap process success!卸载失败:00:02:59: %HOTSWAP: Manual hotswap offline, slot = 600:03:00: %HOTSWAP: Hotswap process fail!& 注:1 当热插拔状态灯闪烁时,请不要将线卡从系统中拔出,否则会导致不可预料的后果。2 为防止热插拔按钮被不小心碰到导致线卡被卸载,热插拔按钮是安装在面板里面,离面板约有3毫米,可以使用细小、尖的物品来按动热插拔按钮。3 热插拔按钮没有开和关的状态,当线卡处于在线状态时,按动该按钮,就是卸载线卡;当线卡处于离线状态时,按动该按钮,就是加载线卡;当线卡处于加载或者卸载的时候(热插拔状态灯在闪烁),系统不会响应按钮操作,按动该按钮,不会对系统造成影响,系统继续它的线卡加载或者卸载。27.4 线卡命令热插拔线卡命令热插拔是指通过shell界面或网管界面发送热插拔命令,完成线卡的加载、卸载及复位操作。27.4.1 线卡命令热插入将系统中处于离线状态的线卡加载为在线状态。命令格式:hotswap online slot此命令在特权用户模式下使用,命令执行后,线卡面板上的热插拔状态灯开始闪烁,表明系统正在对线卡进行加载,线卡加载完成后,热插拔状态灯由闪烁状态变为点亮状态。应用举例:router#hotswap online 6命令执行时,shell界面上将打印以下提示信息:加载成功:00:04:05: %HOTSWAP: Command hotswap online, slot = 600:04:08: %HOTSWAP: Hotswap process success!加载失败:00:04:05: %HOTSWAP: Command hotswap online, slot = 600:04:08: %HOTSWAP: Hotswap process fail!& 注:当热插拔状态灯闪烁时,请不要将线卡从系统中拔出,否则会导致不可预料的后果。27.4.2 线卡命令热拔出将系统中处于在线状态的线卡卸载为离线状态。命令格式:hotswap offline slot此命令在特权用户模式下使用,命令执行后,线卡面板上的热插拔状态灯开始闪烁,表明系统正在对线卡进行卸载,线卡卸载完成后,热插拔状态灯由闪烁状态变为熄灭状态。应用举例:router#hotswap offline 6命令执行时,shell界面上将打印以下提示信息:卸载成功:00:04:58: %HOTSWAP: Command hotswap offline, slot = 600:04:59: %HOTSWAP: Hotswap process success!卸载失败:00:04:58: %HOTSWAP: Command hotswap offline, slot = 600:04:59: %HOTSWAP: Hotswap process fail!& 注:当热插拔状态灯闪烁时,请不要将线卡从系统中拔出,否则会导致不可预料的后果。27.4.3 线卡命令复位对系统中处于在线状态的线卡进行复位。命令格式:hotswap reset slot此命令在特权用户模式下使用,命令执行后,线卡面板上的热插拔状态灯开始闪烁,表明系统正在对插入的线卡进行复位,线卡复位完成后,热插拔状态灯由闪烁状态变为点亮状态。应用举例:router#hotswap reset 6命令执行时,shell界面上将打印以下提示信息:复位成功:00:05:49: %HOTSWAP: Command linecard reset, slot = 600:05:51: %HOTSWAP: Hotswap process success!复位失败:00:05:49: %HOTSWAP: Command linecard reset, slot = 600:05:51: %HOTSWAP: Hotswap process fail!& 注:当热插拔状态灯闪烁时,请不要将线卡从系统中拔出,否则会导致不可预料的后果。27.5 热插拔的调试27.5.1 热插拔调试打开热插拔调试开关观察热插拔调试信息。命令格式:debug hotswap应用举例:router# debug hotswap下面是在slot6插入及拔出8CE1卡时的调试信息:/* 卡插入时调试信息 */router#00:09:41: %HOTSWAP(sysHotSwapInt): Start00:09:41: %HOTSWAP(sysHotSwapInt): hsStatOld = 0xff, hsStatNew = 0xbf00:09:41: %HOTSWAP(sysHotSwapInt): Hotswap happend, slot = 600:09:41: %HOTSWAP(sysHotSwapInt): Hotswap happend, slot = 6, busNo = 21, devNo = 300:09:41: %HOTSWAP(sysHotSwapInt): VendorId = 0x1172, DeviceId = 0x9, Operation = 0x100:09:41: %HOTSWAP(sysHotSwapTask): Received a message, slotNo = 6, operation = 0x1, vendorId = 0x1172, deviceId = 0x900:09:41: %HOTSWAP: Manual hotswap online, slot = 600:09:41: %HOTSWAP(sysHotSwapTask): Manual hotswap online00:09:42: %HOTSWAP(sysHotSwapTask): Hotswap online00:09:43: %HOTSWAP(sysHotSwapTask): Notify the shell to restore configration, slot = 6, cardType = 0x800:09:43: %HOTSWAP: Hotswap process success!router#/* 卡拔出时调试信息 */router#00:10:10: %HOTSWAP(sysHotSwapInt): Start00:10:10: %HOTSWAP(sysHotSwapInt): hsStatOld = 0xbf, hsStatNew = 0xff00:10:10: %HOTSWAP(sysHotSwapInt): Hotswap happend, slot = 600:10:10: %HOTSWAP(sysHotSwapInt): Hotswap happend, slot = 6, busNo = 21, devNo = 300:10:10: %HOTSWAP(sysHotSwapInt): VendorId = 0x1172, DeviceId = 0x9, Operation = 0x200:10:10: %HOTSWAP(sysHotSwapTask): Received a message, slotNo = 6, operation = 0x2, vendorId = 0x1172, deviceId = 0x900:10:10: %HOTSWAP: Manual hotswap offline, slot = 600:10:10: %HOTSWAP(sysHotSwapTask): Manual hotswap offline00:10:10: %HOTSWAP(sysHotSwapTask): Notify the shell to save configration, slot = 6, cardType = 0x800:10:11: %HOTSWAP(sysHotSwapTask): Hotswap offline00:10:11: %HOTSWAP: Hotswap process success!router#关闭热插拔调试开关。命令格式:router#no debug hotswap27.5.2 热插拔线卡配置的调试打开热插拔配置调试开关观察热插拔配置调试信息。命令格式:debug hot-swap-config应用举例:router#debug hot-swap-config下面是在slot6插入及拔出8CE1卡时的热插拔配置调试信息:/* 卡插入时调试信息 */router#00:19:24: %HOTSWAP: Manual hotswap online, slot = 600:19:27: %HSC(plugin): start plugin .00:19:27: %HSC: find existed interface script file /hsconfig/intf_6_800:19:27: %HSC(plugin): Find interface script /hsconfig/intf_6_800:19:27: %HSC(plugin): Ready to configure these script00:19:27: cmd : interface serial6/000:19:27: cmd : encapsulation hdlc00:19:27: cmd : bandwidth 204800:19:27: cmd : exit00:19:27: cmd : interface serial6/100:19:27: cmd : encapsulation hdlc00:19:27: cmd : bandwidth 204800:19:27: cmd : exit00:19:27: cmd : interface serial6/200:19:27: cmd : encapsulation hdlc00:19:27: cmd : bandwidth 204800:19:27: cmd : exit00:19:27: cmd : interface serial6/300:19:27: cmd : encapsulation hdlc00:19:27: cmd : bandwidth 204800:19:27: cmd : exit00:19:27: cmd : interface serial6/400:19:27: cmd : encapsulation hdlc00:19:27: cmd : bandwidth 204800:19:27: cmd : exit00:19:27: cmd : interface serial6/500:19:27: cmd : encapsulation hdlc00:19:27: cmd : bandwidth 204800:19:27: cmd : exit00:19:27: cmd : interface serial6/600:19:27: cmd : encapsulation hdlc00:19:27: cmd : bandwidth 204800:19:27: cmd : exit00:19:27: cmd : interface serial6/700:19:27: cmd : encapsulation hdlc00:19:27: cmd : bandwidth 204800:19:27: cmd : exit00:19:27: %HSC(plugin): configue ok,remove script file /hsconfig/intf_6_800:19:27: %HSC(plugin): notify some module after plugining and configuring00:19:27: %HSC: notify other module relation with interface serial6/000:19:27: %HSC: notify other module relation with interface serial6/100:19:27: %HSC: notify other module relation with interface serial6/200:19:27: %HSC: notify other module relation with interface serial6/300:19:27: %HSC: notify other module relation with interface serial6/400:19:27: %HSC: notify other module relation with interface serial6/500:19:27: %HSC: notify other module relation with interface serial6/600:19:27: %HSC: notify other module relation with interface serial6/700:19:27: %HSC(plugin): end plugin =00:19:27: %HOTSWAP: Hotswap process success!router#/* 卡拔出时调试信息 */router#00:20:33: %HOTSWAP: Manual hotswap offline, slot = 600:20:33: %HSC(unplug): start unplug .00:20:33: %HSC(unplug): find free interface script file location in slot 600:20:33: %HSC(unplug): create file /hsconfig/intf_6_8 success00:20:33: %HSC(unplug): the last interface script file /hsconfig/intf_6_8 loc = 000:20:33: %HSC(unplug): get interface-self script00:20:33: %HSC(unplug): no interface-self config00:20:33: %HSC: notify other module relation with interface serial6/0 before no interface config00:20:33: %HSC: notify other module relation with interface serial6/1 before no interface config00:20:33: %HSC: notify other module relation with interface serial6/2 before no interface config00:20:33: %HSC: notify other module relation with interface serial6/3 before no interface config00:20:33: %HSC: notify other module relation with interface serial6/4 before no interface config00:20:33: %HSC: notify other module relation with interface serial6/5 before no interface config00:20:33: %HSC: notify other module relation with interface serial6/6 before no interface config00:20:33: %HSC: notify other module relation with interface serial6/7 before no interface config00:20:33: %HSC: shutdown interface serial6/000:20:33: delete dst-if serial6/0 config by src-if serial6/000:20:33: serial6/0 : interface serial6/000:20:33: serial6/0 : interface serial6/0 00:20:33: serial6/0 : encapsulation hdlc00:20:33: serial6/0 : bandwidth 204800:20:33: serial6/0 : shutdown00:20:33: serial6/0 : exit00:20:33: serial6/0 : no bandwidth 00:20:33: serial6/0 : exit 00:20:33: %HSC: shutdown interface serial6/100:20:33: delete dst-if serial6/1 config by src-if serial6/100:20:33: serial6/1 : interface serial6/100:20:33: serial6/1 : interface serial6/1 00:20:33: serial6/1 : encapsulation hdlc00:20:33: serial6/1 : bandwidth 204800:20:33: serial6/1 : shutdown00:20:33: serial6/1 : exit00:20:33: serial6/1 : no bandwidth 00:20:33: serial6/1 : exit 00:20:33: %HSC: shutdown interface serial6/200:20:33: delete dst-if serial6/2 config by src-if serial6/200:20:33: serial6/2 : interface serial6/200:20:33: serial6/2 : interface serial6/2 00:20:33: serial6/2 : encapsulation hdlc00:20:33: serial6/2 : bandwidth 204800:20:33: serial6/2 : shutdown00:20:33: serial6/2 : exit00:20:33: serial6/2 : no bandwidth 00:20:33: serial6/2 : exit 00:20:33: %HSC: shutdown interface serial6/300:20:33: delete dst-if serial6/3 config by src-if serial6/300:20:33: serial6/3 : interface serial6/300:20:33: serial6/3 : interface serial6/3 00:20:33: serial6/3 : encapsulation hdlc00:20:33: serial6/3 : bandwidth 204800:20:33: serial6/3 : shutdown00:20:33: serial6/3 : exit00:20:33: serial6/3 : no bandwidth 00:20:33: serial6/3 : exit 00:20:33: %HSC: shutdown interface serial6/400:20:33: delete dst-if serial6/4 config by src-if serial6/400:20:33: serial6/4 : interface serial6/400:20:33: serial6/4 : interface serial6/4 00:20:33: serial6/4 : encapsulation hdlc00:20:33: serial6/4 : bandwidth 204800:20:33: serial6/4 : shutdown00:20:33: serial6/4 : exit00:20:33: serial6/4 : no bandwidth 00:20:33: serial6/4 : exit 00:20:33: %HSC: shutdown interface serial6/500:20:33: delete dst-if serial6/5 config by src-if serial6/500:20:33: serial6/5 : interface serial6/500:20:33: serial6/5 : interface serial6/5 00:20:33: serial6/5 : encapsulation hdlc00:20:33: serial6/5 : bandwidth 204800:20:33:

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论