华为设备软件升级功能实现说明书
编写 审批 文档版本 V0.1 编写时间 审批时间 2010-10-19 亚信科技(中国)有限公司版权所有
本章节内容包括 1. 软件升级 说明:
关于本文档中配置命令中的可变参数 【非黑体的斜体字部份】,应根据具体的应用环境来确定.
1 CE设备软件升级
1.1
升级前设备状态检查备份与ping测试.
状态检查与备份
display current----保存,以备升级后对比检查,升级前后应该一致,但不排除新版本中可能增加一些缺省命令
display version----记录版本信息,以备升级后对比检查,升级前后应该不一致,更换为新版本 display interface brief(第一遍执行)---该命令需要执行两次,计算physical为up的端口所对应的“inErrors”和“outErrors”的数值有没有变化,有变化则告警
(d): Dampening Suppressed InUti/OutUti: input utility/output utility Interface Physical Protocol InUti OutUti inErrors outErrors Aux0/0/1 *down down 0% 0% 0 0 Eth-Trunk1 up -- 0.02% 0.01% 8034 0 GigabitEthernet8/0/21 up down 0.02% 0.02% 0 0 GigabitEthernet8/0/22 up down 0.01% 0.01% 8034 0 GigabitEthernet0/0/0 down down 0% 0% 0 0 GigabitEthernet1/0/0 *down down 0% 0% 0 0 GigabitEthernet1/0/1 *down down 0% 0% 0 0 GigabitEthernet1/0/2 *down down 0% 0% 0 0 GigabitEthernet1/0/3 *down down 0% 0% 0 0 GigabitEthernet1/0/4 *down down 0% 0% 0 0 GigabitEthernet1/0/5 *down down 0% 0% 0 0 GigabitEthernet1/0/6 *down down 0% 0% 0 0 GigabitEthernet1/0/7 *down down 0% 0% 0 0 GigabitEthernet1/0/8 *down down 0% 0% 0 0 GigabitEthernet1/0/9 *down down 0% 0% 0 0 GigabitEthernet3/0/0 up down 0.02% 0.01% 6 0 GigabitEthernet3/0/0.150 up up 0.01% 0.01% 0 0 GigabitEthernet3/0/0.151 up up 0.01% 0.01% 0 0 GigabitEthernet4/0/0 *down down 0% 0% 0 0 GigabitEthernet8/0/0 up -- 0.08% 0.07% 23 0 GigabitEthernet8/0/1 up -- 0.10% 0.14% 7 0 GigabitEthernet8/0/2 up -- 0% 0.01% 0 0 GigabitEthernet8/0/3 up -- 0% 0.01% 0 0 GigabitEthernet8/0/4 up -- 0.06% 0.05% 0 0 GigabitEthernet8/0/5 up -- 0.05% 0.03% 0 0 GigabitEthernet8/0/6 up -- 0.03% 0.01% 0 0 GigabitEthernet8/0/7 up -- 0.01% 0.01% 0 0 GigabitEthernet8/0/8 up -- 0.05% 0.09% 0 0 GigabitEthernet8/0/9 up -- 0.01% 0.01% 2 0 GigabitEthernet8/0/10 up -- 0.01% 0.01% 0 0 GigabitEthernet8/0/11 up -- 0% 0.01% 0 0 GigabitEthernet8/0/12 up -- 0% 0.01% 0 0 GigabitEthernet8/0/13 up -- 0% 0.01% 0 0 GigabitEthernet8/0/14 up -- 0% 0.01% 0 0 GigabitEthernet8/0/15 up -- 0.01% 0.01% 0 0 GigabitEthernet8/0/16 up -- 0.01% 0.01% 0 0 GigabitEthernet8/0/17 up -- 0.01% 0.01% 0 0 GigabitEthernet8/0/18 *down down 0% 0% 0 0 GigabitEthernet8/0/19 *down down 0% 0% 0 0 GigabitEthernet8/0/20 *down down 0% 0% 2882 0 GigabitEthernet8/0/23 up up 0.01% 0.01% 0 0 LoopBack0 up up(s) 0% 0% 0 0 NULL0 up up(s) 0% 0% 0 0 Pos2/0/0 *down down 0% 0% 1127770057 0 Pos2/0/1 *down down 0% 0% 3604272041 0 Pos2/0/2 *down down 0% 0% 1131118329 0 Pos2/0/3 *down down 0% 0% 1131969978 0 Vlanif10 up up -- -- 0 0 Vlanif20 up up -- -- 0 0 Vlanif1000 up up -- -- 0 0 Vlanif1001 up up -- -- 0 0 Vlanif1005 up up -- -- 0 0 Vlanif1011 up up -- -- 0 0 Vlanif1020 up up -- -- 0 0 Vlanif1021 up up -- -- 0 0 Vlanif1025 up up -- -- 0 0 Vlanif1031 up up -- -- 0 0 Vlanif1500 *down down -- -- 0 0 display health----cpu或者内存的利用率不正常提示告警,提示升级前检查未通过由用户判断是否要进行下一步,判断标准同健康检查 display alarm all----如果有告警,提示升级前检查未通过由用户判断是否要进行下一步,判断标准同健康检查 display device ----板卡状态不正常提示告警,提示升级前检查未通过由用户判断是否要进行下一步,判断标准同健康检查 display ospf peer ----peer邻居关系不正常提示告警,提示升级前检查未通过由用户判断是否要进行下一步,判断标准同健康检查 display ip routing-table statistics----记录total routes和active routes的数量,以备升级后对比检查,升级前后这两个数字应该相同,命令输出如下,需要记录的数字用红色标注。 Proto total active added deleted freed routes routes routes routes routes DIRECT 8 8 119 111 111 STATIC 1 1 1 0 0 RIP 0 0 0 0 0 OSPF 0 0 0 0 0 IS-IS 0 0 0 0 0 BGP 0 0 0 0 0 Total 9 9 120 111 111 display ip routing-tablet----保存,以备升级后对比检查,升级前后应该一致 display ip routing-table -instance ChinaMobile_NGN_SG statistics----记录total routes和active routes的数量,以备升级后对比检查,升级前后这两个数字应该相同,命令输出如下,需要记录的数字用红色标注。 DIRECT 30 30 171 141 141 STATIC 1 1 3 2 2 RIP 0 0 0 0 0 OSPF 324 322 84445 84121 84121 IS-IS 0 0 0 0 0 BGP 0 0 0 0 0 Total 355 353 84619 842 842 display ip routing-table -instance ChinaMobile_NGN_SG----保存,以备升级后对比检查,升级前后应该一致 display ip routing-table -instance ChinaMobile_NGN_Media statistics----记录total routes和active routes的数量,以备升级后对比检查,升级前后这两个数字应该相同,命令输出如下,需要记录的数字用红色标注。 DIRECT 32 32 225 193 193 STATIC 1 1 1 0 0 RIP 0 0 0 0 0 OSPF 125 119 125718 125593 125593 IS-IS 0 0 0 0 0 BGP 0 0 0 0 0 Total 158 152 125944 125786 125786 display ip routing-table -instance ChinaMobile_NGN_Media----保存,以备升级后对比检查,升级前后应该一致 display interface brief(第二遍执行)---该命令需要执行两次,计算physical为up的端口所对应的“inErrors”和“outErrors”的数值有没有变化,有变化则告警 (d): Dampening Suppressed InUti/OutUti: input utility/output utility Interface Physical Protocol InUti OutUti inErrors outErrors Aux0/0/1 Eth-Trunk1 GigabitEthernet8/0/21 GigabitEthernet8/0/22 GigabitEthernet0/0/0 GigabitEthernet1/0/0 GigabitEthernet1/0/1 GigabitEthernet1/0/2 GigabitEthernet1/0/3 GigabitEthernet1/0/4 GigabitEthernet1/0/5 GigabitEthernet1/0/6 GigabitEthernet1/0/7 GigabitEthernet1/0/8 GigabitEthernet1/0/9 GigabitEthernet3/0/0 GigabitEthernet3/0/0.150 GigabitEthernet3/0/0.151 GigabitEthernet4/0/0 GigabitEthernet8/0/0 GigabitEthernet8/0/1 GigabitEthernet8/0/2 GigabitEthernet8/0/3 GigabitEthernet8/0/4 GigabitEthernet8/0/5 GigabitEthernet8/0/6 GigabitEthernet8/0/7 GigabitEthernet8/0/8 GigabitEthernet8/0/9 GigabitEthernet8/0/10 GigabitEthernet8/0/11 GigabitEthernet8/0/12 GigabitEthernet8/0/13 GigabitEthernet8/0/14 GigabitEthernet8/0/15 *down down 0% 0% up -- 0.02% 0.01% up down 0.02% 0.02% up down 0.01% 0.01% down down 0% 0% *down down 0% 0% *down down 0% 0% *down down 0% 0% *down down 0% 0% *down down 0% 0% *down down 0% 0% *down down 0% 0% *down down 0% 0% *down down 0% 0% *down down 0% 0% up down 0.02% 0.01% up up 0.01% 0.01% up up 0.01% 0.01% *down down 0% 0% up -- 0.08% 0.07% up -- 0.10% 0.14% up -- 0% 0.01% up -- 0% 0.01% up -- 0.06% 0.05% up -- 0.05% 0.03% up -- 0.03% 0.01% up -- 0.01% 0.01% up -- 0.05% 0.09% up -- 0.01% 0.01% up -- 0.01% 0.01% up -- 0% 0.01% up -- 0% 0.01% up -- 0% 0.01% up -- 0% 0.01% up -- 0.01% 0.01% 0 8034 0 8034 0 0 0 0 0 0 0 0 0 0 0 6 0 0 0 23 7 0 0 0 0 0 0 0 2 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 GigabitEthernet8/0/16 up -- 0.01% 0.01% 0 0 GigabitEthernet8/0/17 up -- 0.01% 0.01% 0 0 GigabitEthernet8/0/18 *down down 0% 0% 0 0 GigabitEthernet8/0/19 *down down 0% 0% 0 0 GigabitEthernet8/0/20 *down down 0% 0% 2882 0 GigabitEthernet8/0/23 up up 0.01% 0.01% 0 0 LoopBack0 up up(s) 0% 0% 0 0 NULL0 up up(s) 0% 0% 0 0 Pos2/0/0 *down down 0% 0% 1127770057 0 Pos2/0/1 *down down 0% 0% 3604272041 0 Pos2/0/2 *down down 0% 0% 1131118329 0 Pos2/0/3 *down down 0% 0% 1131969978 0 Vlanif10 up up -- -- 0 0 Vlanif20 up up -- -- 0 0 Vlanif1000 up up -- -- 0 0 Vlanif1001 up up -- -- 0 0 Vlanif1005 up up -- -- 0 0 Vlanif1011 up up -- -- 0 0 Vlanif1020 up up -- -- 0 0 Vlanif1021 up up -- -- 0 0 Vlanif1025 up up -- -- 0 0 Vlanif1031 up up -- -- 0 0 Vlanif1500 *down down -- -- 0 0 display vrrp----保存,以备升级后对比检查,升级前后应该一致 display ospf routing-table----保存,以备升级后对比检查,升级前后应该一致 display startup—该步骤要取配置文件的路径进行保存,以备升级过程中进行比对,保存的值为“Next startup saved-configuration file:”后的数据,例如cfcard:/vrpcfg.zip。 输出如下: Configed startup system software: cfcard:/V300R002C02B21B.CC Startup system software: cfcard:/V300R002C02B21B.CC Next startup system software: cfcard:/V300R002C02B21B.CC Startup saved-configuration file: cfcard:/vrpcfg.zip Next startup saved-configuration file: cfcard:/vrpcfg.zip SlaveBoard: Configed startup system software: cfcard:/V300R002C02B21B.CC Startup system software: cfcard:/V300R002C02B21B.CC Next startup system software: cfcard:/V300R002C02B21B.CC Startup saved-configuration file: cfcard:/vrpcfg.zip Next startup saved-configuration file: cfcard:/vrpcfg.zip ping --instance ChinaMobile_NGN_Media -c 3 -m 200 10.0.1.130 ping --instance ChinaMobile_NGN_Media -c 3 -m 200 10.0.13.1 ping --instance ChinaMobile_NGN_Media -c 3 -m 200 10.0.7.130 ping --instance ChinaMobile_NGN_Media -c 3 -m 200 10.0.10.1 ping --instance ChinaMobile_NGN_Media -c 3 -m 200 10.0.4.130 ping --instance ChinaMobile_NGN_Media -c 3 -m 200 10.0.37.129 ping --instance ChinaMobile_NGN_Media -c 3 -m 200 10.0.43.1 ping --instance ChinaMobile_NGN_Media -c 3 -m 200 ping --instance ChinaMobile_NGN_Media -c 3 -m 200 ping --instance ChinaMobile_NGN_Media -c 3 -m 200 ping --instance ChinaMobile_NGN_Media -c 3 -m 200 ping --instance ChinaMobile_NGN_Media -c 3 -m 200 ping --instance ChinaMobile_NGN_Media -c 3 -m 200 ping --instance ChinaMobile_NGN_Media -c 3 -m 200 ping --instance ChinaMobile_NGN_Media -c 3 -m 200 ping --instance ChinaMobile_NGN_Media -c 3 -m 200 ping --instance ChinaMobile_NGN_Media -c 3 -m 200 ping --instance ChinaMobile_NGN_Media -c 3 -m 200 ping --instance ChinaMobile_NGN_Media -c 3 -m 200 ping --instance ChinaMobile_NGN_Media -c 3 -m 200 ping --instance ChinaMobile_NGN_Media -c 3 -m 200 ping --instance ChinaMobile_NGN_Media -c 3 -m 200 ping --instance ChinaMobile_NGN_Media -c 3 -m 200 ping --instance ChinaMobile_NGN_Media -c 3 -m 200 ping --instance ChinaMobile_NGN_Media -c 3 -m 200 ping --instance ChinaMobile_NGN_Media -c 3 -m 200 ping --instance ChinaMobile_NGN_Media -c 3 -m 200 ping --instance ChinaMobile_NGN_Media -c 3 -m 200 ping --instance ChinaMobile_NGN_Media -c 3 -m 200 ping --instance ChinaMobile_NGN_Media -c 3 -m 200 ping --instance ChinaMobile_NGN_Media -c 3 -m 200 ping - ChinaMobile_NGN_SG -c 3 -m 200 10.0.2.4 ping - ChinaMobile_NGN_SG -c 3 -m 200 10.0.14.132 ping - ChinaMobile_NGN_SG -c 3 -m 200 10.0.8.4 ping - ChinaMobile_NGN_SG -c 3 -m 200 10.0.11.132 ping - ChinaMobile_NGN_SG -c 3 -m 200 10.0.5.4 ping - ChinaMobile_NGN_SG -c 3 -m 200 10.0.38.4 ping - ChinaMobile_NGN_SG -c 3 -m 200 10.0.44.132 ping - ChinaMobile_NGN_SG -c 3 -m 200 10.0.41.4 ping - ChinaMobile_NGN_SG -c 3 -m 200 10.0.47.4 ping - ChinaMobile_NGN_SG -c 3 -m 200 10.0.50.132 10.0.40.129 10.0.46.129 10.0.49.1 10.0.34.129 10.0.52.1 10.0.79.130 10.0.82.1 10.0.91.130 10.0.88.1 10.0.85.1 10.0..129 10.0.73.1 10.0.76.129 10.0.70.1 10.0.67.1 10.0.25.130 10.0.31.1 10.0.28.129 10.0.55.129 10.0.61.1 10.0.58.1 10.0.16.130 10.0.19.1 10.0.22.130 ping - ChinaMobile_NGN_SG -c 3 -m 200 10.0.35.4 ping - ChinaMobile_NGN_SG -c 3 -m 200 10.0.53.132 ping - ChinaMobile_NGN_SG -c 3 -m 200 10.0.80.4 ping - ChinaMobile_NGN_SG -c 3 -m 200 10.0.83.132 ping - ChinaMobile_NGN_SG -c 3 -m 200 10.0.92.4 ping - ChinaMobile_NGN_SG -c 3 -m 200 10.0..4 ping - ChinaMobile_NGN_SG -c 3 -m 200 10.0.86.4 ping - ChinaMobile_NGN_SG -c 3 -m 200 10.0.65.4 ping - ChinaMobile_NGN_SG -c 3 -m 200 10.0.74.132 ping - ChinaMobile_NGN_SG -c 3 -m 200 10.0.77.4 ping - ChinaMobile_NGN_SG -c 3 -m 200 10.0.71.4 ping - ChinaMobile_NGN_SG -c 3 -m 200 10.0.68.132 ping - ChinaMobile_NGN_SG -c 3 -m 200 10.0.26.4 ping - ChinaMobile_NGN_SG -c 3 -m 200 10.0.32.132 ping - ChinaMobile_NGN_SG -c 3 -m 200 10.0.29.4 ping - ChinaMobile_NGN_SG -c 3 -m 200 10.0.56.4 ping - ChinaMobile_NGN_SG -c 3 -m 200 10.0.62.4 ping - ChinaMobile_NGN_SG -c 3 -m 200 10.0.59.132 ping - ChinaMobile_NGN_SG -c 3 -m 200 10.0.17.4 ping - ChinaMobile_NGN_SG -c 3 -m 200 10.0.20.132 ping - ChinaMobile_NGN_SG -c 3 -m 200 10.0.23.4 ----上述ping列表中任何一个地址ping不通提示告警,提示升级前检查未通过由用户判断是否要进行下一步,判断标准为丢包率不为0% Ping输出示例如下: Reply from 10.1.56.202: bytes=56 Sequence=1 ttl=253 time=20 ms Reply from 10.1.56.202: bytes=56 Sequence=2 ttl=253 time=18 ms Reply from 10.1.56.202: bytes=56 Sequence=3 ttl=253 time=18 ms Reply from 10.1.56.202: bytes=56 Sequence=4 ttl=253 time=18 ms Reply from 10.1.56.202: bytes=56 Sequence=5 ttl=253 time=18 ms --- 10.1.56.202 ping statistics --- 5 packet(s) transmitted 5 packet(s) received 0.00% packet loss round-trip min/avg/max = 18/18/20 ms 1.2 执行软件升级 设置交互界面 界面提示,请确保设备配置文件、旧版本软件版本及补丁文件已经备份,请确保新版本的软件版本及补丁文件已经上传到设备的主备主控板上。界面上需要用户输入:本次升级的目标版本号、主用主控板的启动文件路径及名称、备用主控板的启动文件路径及名称、补丁文件的路径及文件名。 一.检查并删除现网设备补丁 display patch-information----查看系统当前补丁运行情况(包括主、备用MPU,LPU), 若原系统中有补丁(patch)在运行,需要将补丁删除。若无补丁运行,则跳过。 1、无补丁示例: 2、有补丁运行示例: ----------The patch information of slot 1---------- Total Patch Unit : 1 Running Patch Unit : 1 - 1 Active Patch Unit : Deactive Patch Unit : ----------The patch information of slot 2---------- Total Patch Unit : 1 Running Patch Unit : 1 - 1 Active Patch Unit : Deactive Patch Unit : ----------The patch information of slot 3---------- Total Patch Unit : 1 Running Patch Unit : 1 - 1 Active Patch Unit : Deactive Patch Unit : ----------The patch information of slot 10---------- Total Patch Unit : 1 Running Patch Unit : 1 - 1 Active Patch Unit : Deactive Patch Unit : ----------The patch information of slot 11---------- Total Patch Unit : 1 Running Patch Unit : 1 - 1 Active Patch Unit : Deactive Patch Unit : ----------The patch information of slot 13---------- This slot does not need patch ----------The patch information of slot 15---------- Total Patch Unit : 1 Running Patch Unit : 1 - 1 Active Patch Unit : Deactive Patch Unit : ----------The patch information of slot 16---------- Total Patch Unit : 1 Running Patch Unit : 1 - 1 Active Patch Unit : Deactive Patch Unit : ----------The patch information of slot 17---------- Total Patch Unit : 9 Running Patch Unit : 1 - 9 Active Patch Unit : Deactive Patch Unit : ----------The patch information of slot 18---------- Total Patch Unit : 9 Running Patch Unit : 1 - 9 Active Patch Unit : Deactive Patch Unit : 此情况下,需要删除补丁,需执行命令patch delete all 二.检查是否存在补丁文件并重命名补丁文件 1. 检查主控板硬盘中是否存在升级文件 dir cfcard:----查找输出结果中是否存在patch1.pat文件名,有则成功,没有则报错:无新补丁文件. 查找输出结果中是否存在界面上输入的NE40E&80EV300R003C00SPC050.CC文件名,有则成功,没有则报错:无新补丁文件. 0 -rw- 72743452 Oct 22 2007 22:18:14 v300r002c02b21b.cc 1 -rw- 13003 Aug 28 2009 23:56:06 license.txt 2 -rw- 66981 Aug 28 2009 23:56:24 paf.txt 3 -rw- 0 Oct 22 2007 22:31:52 patchnpstate.dat 4 -rw- 85 Aug 25 2009 09:19:04 private-data.txt 5 -rw- 15324 Oct 23 2007 11:13:42 paf.txt.bak 6 -rw- 2681 Aug 25 2009 09:19:06 vrpcfg.zip 7 -rw- 6309 Oct 23 2007 14:53:04 license.txt.bak 8 -rw- 4370742 Aug 28 2009 23:57:06 patch1.pat 9 -rw- 166034360 Aug 29 2009 00:15:32 v300r003c02b697.cc 506368 KB total (268688 KB free) 2. 进入主控板cf卡目录 3. 重命名主控板cf卡中的旧补丁文件 Continue? [Y/N]:y-------需输入字符“Y” 4. 重命名主控板cf卡中的新补丁文件 Warning: File cfcard:/patch1.pat will be renamed to cfcard:/ patch.pat. Continue? [Y/N]:y-------需输入字符“Y” 5. 复制主控板cf卡中的新补丁文件到备用主控板cf卡中 Continue? [Y/N]:y-------需输入字符“Y” 三.激活并加载运行补丁 1,执行激活并加载运行 2,兼容新软件版本 cfcard:/NE40E&80EV300R003C00SPC050.CC----执行兼容新软件版本 Caution!!! This command may affect operation by wrong use, please carefully use it with HUAWEI engineer's direction. Are you sure to do this operation ?[Y/N]:y-------需输入字符“Y” 四.确认补丁安装情况 1.查看启动时补丁文件位置 Configed startup system software: cfcard:/v300r003c02b697.cc Startup system software: cfcard:/v300r003c02b697.cc Next startup system software: cfcard:/v300r003c02b697.cc Startup saved-configuration file: cfcard:/core4-fra.cfg Next startup saved-configuration file: cfcard:/core4-fra.cfg Startup paf file: cfcard:/paf697.txt Next startup paf file: cfcard:/paf697.txt Startup license file: cfcard:/license697.txt Next startup license file: cfcard:/license697.txt Startup patch package: cfcard:/patch.pat Next startup patch package: cfcard:/patch.pat SlaveBoard: Configed startup system software: cfcard:/v300r003c02b697.cc Startup system software: cfcard:/v300r003c02b697.cc Next startup system software: cfcard:/v300r003c02b697.cc Startup saved-configuration file: cfcard:/core4-fra.cfg Next startup saved-configuration file: cfcard:/core4-fra.cfg Startup paf file: cfcard:/paf697.txt Next startup paf file: cfcard:/paf697.txt Startup license file: cfcard:/license697.txt Next startup license file: cfcard:/license697.txt Startup patch package: cfcard:/patch.pat Next startup patch package: cfcard:/patch.pat // “Startup patch package:”和“Next startup patch package:”后面的数值应当都为“cfcard:/patch.pat”。 2.查看各种类似的板卡所打上的补丁数目是否符合要求 (1)执行display device命令查看设备的基本板卡信息 Slot # Type Online Register Status Primary - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 1 LPU Present Registered Normal NA 2 LPU Present Registered Normal NA 3 LPU Present Registered Normal NA 9 LPU Present Registered Normal NA 10 LPU Present Registered Normal NA 16 SPU Present Registered Normal NA 17 MPU Present NA Normal Master 18 MPU Present Registered Normal Slave 19 SFU Present Registered Normal NA 20 SFU Present Registered Normal NA 21 SFU Present Registered Normal NA 22 SFU Present Registered Normal NA 23 CLK Present Registered Normal Master 24 CLK Present Registered Normal Slave 25 PWR Present NA Normal NA 26 PWR Present NA Normal NA 27 FAN Present Registered Normal NA 28 FAN Present Registered Normal NA 29 LCD Present Registered Normal NA //收集其中type为”LPU”和“MPU”的对应slot这一列的数字 (2)执行display device “X”----“X”为上一命令所获取的type为“LPU” 所对应slot这一列的数字 [XJAKS-BA-IPNET-RT01-NE80E]display device 1 LPU1's detail information: - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Description: Line Processing Unit A Board status: Normal Register: Registered Uptime: 2009/10/29 02:42:13 CPU Utilization(%): 4% Mem Usage(%): 45% Clock information: State item State Current syn-clock: 17 Current line-clock: 23 Syn-clock state: Locked VCXO_OK REF_OK Syn-clock 17 state: Actived Syn-clock 18 state: Actived Line-clock 23 state: Actived Line-clock 24 state: Actived Statistic information: Statistic item Statistic number SERDES interface link lost: 0 Mpu switchs: 0 Syn-clock switchs: 0 Line-clock switchs: 0 PIC0 information: Uptime: 2009/10/29 02:42:13 Card type: POS Port number: 2 Converge info: converge - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - //收集“Description:”后的结果,如本例中为“Line Processing Unit A”,然后将Line Processing Unit这三个词简写为LPU,整个获取内容就变为LPUA。此为一种板卡类型。如果所收集到的信息,非“LPUA”“LPUB”“LPUG”“LPUF-10” “LPUF-20” “LPUF-21”,需告警提示“板卡类型未知”。 (3)执行display patch-information命令,获取各板卡所打上的补丁单元数。 ----------The patch information of slot 1---------- Total Patch Unit : 1 Running Patch Unit : 1 - 1 Active Patch Unit : Deactive Patch Unit : ----------The patch information of slot 2---------- Total Patch Unit : 1 Running Patch Unit : 1 - 1 Active Patch Unit : Deactive Patch Unit : ----------The patch information of slot 3---------- Total Patch Unit : 1 Running Patch Unit : 1 - 1 Active Patch Unit : Deactive Patch Unit : ----------The patch information of slot 10---------- Total Patch Unit : 1 Running Patch Unit : 1 - 1 Active Patch Unit : Deactive Patch Unit : ----------The patch information of slot 11---------- Total Patch Unit : 1 Running Patch Unit : 1 - 1 Active Patch Unit : Deactive Patch Unit : ----------The patch information of slot 13---------- This slot does not need patch ----------The patch information of slot 15---------- Total Patch Unit : 1 Running Patch Unit : 1 - 1 Active Patch Unit : Deactive Patch Unit : ----------The patch information of slot 16---------- Total Patch Unit : 1 Running Patch Unit : 1 - 1 Active Patch Unit : Deactive Patch Unit : ----------The patch information of slot 17---------- Total Patch Unit : 9 Running Patch Unit : 1 - 9 Active Patch Unit : Deactive Patch Unit : ----------The patch information of slot 18---------- Total Patch Unit : 9 Running Patch Unit : 1 - 9 Active Patch Unit : Deactive Patch Unit : //对应一每个“The patch information of slot X”下面都有“Running Patch Unit”这一行,将这些信息提取出来。 然后和下面这份标准表格进行对比。 板卡类型 补丁数目 LPUA/LPUG 1 - 80 LPUB LPUF-10 LPUF-20/21 MPU 各slot对应的板卡类型,通过步骤(1)(2)已经获取到了。当对比正常时,进行下一步,不正常时,提示“slot X运行的补丁数目不符合要求” 1 - 54 1 - 62 1 - 75 1 - 192 五.确认打补丁后版本号是否正确及板卡能否正确注册等 1. display device ----查看板卡是否正常注册,判断标准同健康检查,不正常则界面上告警 2.display version ----查看version的值与界面上输入的是否相符,不正常则界面上告警 3.Display alarm all ----对比升级前查看是否有新的告警,不正常则界面上告警 六.检查版本信息 check version startup----查看版本升级是否成功,如果升级成功输出内容如下:“Software version match Ok!”,否则出错将命令执行结果显示出来。 1.3 升级后设备状态检查备份与ping测试. 状态检查与备份 display current----再取一遍配置,以备升级前对比检查,升级前后应该一致,但不排除新版本中可能增加一些缺省命令,不一样则显示出来 display version----记录版本信息,以备升级后对比检查,升级前后应该不一致,更换为新版本 display interface brief(第一遍执行)---该命令需要执行两次,计算physical为up的端口所对应的“inErrors”和“outErrors”的数值有没有变化,有变化则告警 (d): Dampening Suppressed InUti/OutUti: input utility/output utility Interface Physical Protocol InUti OutUti inErrors outErrors Aux0/0/1 *down down 0% 0% 0 0 Eth-Trunk1 up -- 0.02% 0.01% 8034 0 GigabitEthernet8/0/21 up down 0.02% 0.02% 0 0 GigabitEthernet8/0/22 up down 0.01% 0.01% 8034 0 GigabitEthernet0/0/0 down down 0% 0% 0 0 GigabitEthernet1/0/0 *down down 0% 0% 0 0 GigabitEthernet1/0/1 *down down 0% 0% 0 0 GigabitEthernet1/0/2 *down down 0% 0% 0 0 GigabitEthernet1/0/3 *down down 0% 0% 0 0 GigabitEthernet1/0/4 *down down 0% 0% 0 0 GigabitEthernet1/0/5 *down down 0% 0% 0 0 GigabitEthernet1/0/6 *down down 0% 0% 0 0 GigabitEthernet1/0/7 *down down 0% 0% 0 0 GigabitEthernet1/0/8 *down down 0% 0% 0 0 GigabitEthernet1/0/9 *down down 0% 0% 0 0 GigabitEthernet3/0/0 up down 0.02% 0.01% 6 0 GigabitEthernet3/0/0.150 up up 0.01% 0.01% 0 0 GigabitEthernet3/0/0.151 up up 0.01% 0.01% 0 0 GigabitEthernet4/0/0 *down down 0% 0% 0 0 GigabitEthernet8/0/0 up -- 0.08% 0.07% 23 0 GigabitEthernet8/0/1 up -- 0.10% 0.14% 7 0 GigabitEthernet8/0/2 up -- 0% 0.01% 0 0 GigabitEthernet8/0/3 GigabitEthernet8/0/4 GigabitEthernet8/0/5 GigabitEthernet8/0/6 GigabitEthernet8/0/7 GigabitEthernet8/0/8 GigabitEthernet8/0/9 GigabitEthernet8/0/10 GigabitEthernet8/0/11 GigabitEthernet8/0/12 GigabitEthernet8/0/13 GigabitEthernet8/0/14 GigabitEthernet8/0/15 GigabitEthernet8/0/16 GigabitEthernet8/0/17 GigabitEthernet8/0/18 GigabitEthernet8/0/19 GigabitEthernet8/0/20 GigabitEthernet8/0/23 LoopBack0 NULL0 Pos2/0/0 Pos2/0/1 Pos2/0/2 Pos2/0/3 Vlanif10 Vlanif20 Vlanif1000 Vlanif1001 Vlanif1005 Vlanif1011 Vlanif1020 Vlanif1021 Vlanif1025 Vlanif1031 up -- 0% 0.01% 0 up -- 0.06% 0.05% 0 up -- 0.05% 0.03% 0 up -- 0.03% 0.01% 0 up -- 0.01% 0.01% 0 up -- 0.05% 0.09% 0 up -- 0.01% 0.01% 2 up -- 0.01% 0.01% 0 up -- 0% 0.01% 0 up -- 0% 0.01% 0 up -- 0% 0.01% 0 up -- 0% 0.01% 0 up -- 0.01% 0.01% 0 up -- 0.01% 0.01% 0 up -- 0.01% 0.01% 0 *down down 0% 0% 0 *down down 0% 0% 0 *down down 0% 0% 2882 up up 0.01% 0.01% 0 up up(s) 0% 0% 0 up up(s) 0% 0% 0 *down down 0% 0% 1127770057 *down down 0% 0% 3604272041 *down down 0% 0% 1131118329 *down down 0% 0% 1131969978 up up -- -- 0 up up -- -- 0 up up -- -- 0 up up -- -- 0 up up -- -- 0 up up -- -- 0 up up -- -- 0 up up -- -- 0 up up -- -- 0 up up -- -- 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Vlanif1500 *down down -- -- 0 0 display health----cpu或者内存的利用率不正常提示告警,提示升级前检查未通过由用户判断是否要进行下一步,判断标准同健康检查 display alarm all----如果有告警,提示升级前检查未通过由用户判断是否要进行下一步,判断标准同健康检查 display device ----板卡状态不正常提示告警,提示升级前检查未通过由用户判断是否要进行下一步,判断标准同健康检查 display ospf peer ----peer邻居关系不正常提示告警,提示升级前检查未通过由用户判断是否要进行下一步,判断标准同健康检查 display ip routing-table statistics----与升级前记录的total routes和active routes的数量进行对比检查,升级前后这两个数字应该相同,命令输出如下,需要记录的数字用红色标注。 Proto total active added deleted freed routes routes routes routes routes DIRECT 8 8 119 111 111 STATIC 1 1 1 0 0 RIP 0 0 0 0 0 OSPF 0 0 0 0 0 IS-IS 0 0 0 0 0 BGP 0 0 0 0 0 Total 9 9 120 111 111 display ip routing-tablet----再执行一次,与升级前对比检查,升级前后应该一致 display ip routing-table -instance ChinaMobile_NGN_SG statistics----与升级前记录的total routes和active routes的数量进行对比检查,升级前后这两个数字应该相同,命令输出如下,需要记录的数字用红色标注。 DIRECT 30 30 171 141 141 STATIC 1 1 3 2 2 RIP 0 0 0 0 0 OSPF 324 322 84445 84121 84121 IS-IS 0 0 0 0 0 BGP 0 0 0 0 0 Total 355 353 84619 842 842 display ip routing-table -instance ChinaMobile_NGN_SG----再执行一次,与升级前对比检查,升级前后应该一致 display ip routing-table -instance ChinaMobile_NGN_Media statistics----与升级前记录的total routes和active routes的数量进行对比检查,升级前后这两个数字应该相同,命令输出如下,需要记录的数字用红色标注。 DIRECT 32 32 225 193 193 STATIC 1 1 1 0 0 RIP 0 0 0 0 0 OSPF 125 119 125718 125593 125593 IS-IS 0 0 0 0 0 BGP 0 0 0 0 0 Total 158 152 125944 125786 125786 display ip routing-table -instance ChinaMobile_NGN_Media----再执行一次,与升级前对比检查,升级前后应该一致 display interface brief(第二遍执行)---该命令需要执行两次,计算physical为up的端口所对应的“inErrors”和“outErrors”的数值有没有变化,有变化则告警 (d): Dampening Suppressed InUti/OutUti: input utility/output utility Interface Physical Protocol InUti OutUti inErrors Aux0/0/1 *down down 0% 0% Eth-Trunk1 up -- 0.02% 0.01% GigabitEthernet8/0/21 up down 0.02% 0.02% GigabitEthernet8/0/22 up down 0.01% 0.01% GigabitEthernet0/0/0 down down 0% 0% GigabitEthernet1/0/0 *down down 0% 0% GigabitEthernet1/0/1 *down down 0% 0% GigabitEthernet1/0/2 *down down 0% 0% GigabitEthernet1/0/3 *down down 0% 0% GigabitEthernet1/0/4 *down down 0% 0% GigabitEthernet1/0/5 *down down 0% 0% GigabitEthernet1/0/6 *down down 0% 0% GigabitEthernet1/0/7 *down down 0% 0% GigabitEthernet1/0/8 *down down 0% 0% GigabitEthernet1/0/9 *down down 0% 0% GigabitEthernet3/0/0 up down 0.02% 0.01% GigabitEthernet3/0/0.150 up up 0.01% 0.01% GigabitEthernet3/0/0.151 up up 0.01% 0.01% GigabitEthernet4/0/0 *down down 0% 0% GigabitEthernet8/0/0 up -- 0.08% 0.07% GigabitEthernet8/0/1 up -- 0.10% 0.14% GigabitEthernet8/0/2 up -- 0% 0.01% GigabitEthernet8/0/3 up -- 0% 0.01% GigabitEthernet8/0/4 up -- 0.06% 0.05% GigabitEthernet8/0/5 up -- 0.05% 0.03% outErrors 0 8034 0 8034 0 0 0 0 0 0 0 0 0 0 0 6 0 0 0 23 7 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 GigabitEthernet8/0/6 up -- 0.03% 0.01% 0 0 GigabitEthernet8/0/7 up -- 0.01% 0.01% 0 0 GigabitEthernet8/0/8 up -- 0.05% 0.09% 0 0 GigabitEthernet8/0/9 up -- 0.01% 0.01% 2 0 GigabitEthernet8/0/10 up -- 0.01% 0.01% 0 0 GigabitEthernet8/0/11 up -- 0% 0.01% 0 0 GigabitEthernet8/0/12 up -- 0% 0.01% 0 0 GigabitEthernet8/0/13 up -- 0% 0.01% 0 0 GigabitEthernet8/0/14 up -- 0% 0.01% 0 0 GigabitEthernet8/0/15 up -- 0.01% 0.01% 0 0 GigabitEthernet8/0/16 up -- 0.01% 0.01% 0 0 GigabitEthernet8/0/17 up -- 0.01% 0.01% 0 0 GigabitEthernet8/0/18 *down down 0% 0% 0 0 GigabitEthernet8/0/19 *down down 0% 0% 0 0 GigabitEthernet8/0/20 *down down 0% 0% 2882 0 GigabitEthernet8/0/23 up up 0.01% 0.01% 0 0 LoopBack0 up up(s) 0% 0% 0 0 NULL0 up up(s) 0% 0% 0 0 Pos2/0/0 *down down 0% 0% 1127770057 0 Pos2/0/1 *down down 0% 0% 3604272041 0 Pos2/0/2 *down down 0% 0% 1131118329 0 Pos2/0/3 *down down 0% 0% 1131969978 0 Vlanif10 up up -- -- 0 0 Vlanif20 up up -- -- 0 0 Vlanif1000 up up -- -- 0 0 Vlanif1001 up up -- -- 0 0 Vlanif1005 up up -- -- 0 0 Vlanif1011 up up -- -- 0 0 Vlanif1020 up up -- -- 0 0 Vlanif1021 up up -- -- 0 0 Vlanif1025 up up -- -- 0 0 Vlanif1031 up up -- -- 0 0 Vlanif1500 *down down -- -- 0 0 display vrrp----再执行一次,与升级前对比检查,升级前后应该一致 display ospf routing-table----再执行一次,与升级前对比检查,升级前后应该一致 display startup— “Startup saved-configuration file:和Next startup saved-configuration file:”后的数据(例如cfcard:/vrpcfg.zip)应该与升级前保存的值进行比较,一致代表成功,否则提示出错信息“升级前配置文件为$保存变量值,升级后为Startup saved-configuration file:和Next startup saved-configuration file:后的数值。” 输出如下: Configed startup system software: cfcard:/V300R002C02B21B.CC Startup system software: cfcard:/V300R002C02B21B.CC Next startup system software: cfcard:/V300R002C02B21B.CC Startup saved-configuration file: cfcard:/vrpcfg.zip Next startup saved-configuration file: cfcard:/vrpcfg.zip SlaveBoard: Configed startup system software: cfcard:/V300R002C02B21B.CC Startup system software: cfcard:/V300R002C02B21B.CC Next startup system software: cfcard:/V300R002C02B21B.CC Startup saved-configuration file: cfcard:/vrpcfg.zip Next startup saved-configuration file: cfcard:/vrpcfg.zip ping --instance ChinaMobile_NGN_Media -c 3 -m 200 10.0.1.130 ping --instance ChinaMobile_NGN_Media -c 3 -m 200 10.0.13.1 ping --instance ChinaMobile_NGN_Media -c 3 -m 200 10.0.7.130 ping --instance ChinaMobile_NGN_Media -c 3 -m 200 10.0.10.1 ping --instance ChinaMobile_NGN_Media -c 3 -m 200 10.0.4.130 ping --instance ChinaMobile_NGN_Media -c 3 -m 200 10.0.37.129 ping --instance ChinaMobile_NGN_Media -c 3 -m 200 10.0.43.1 ping --instance ChinaMobile_NGN_Media -c 3 -m 200 10.0.40.129 ping --instance ChinaMobile_NGN_Media -c 3 -m 200 10.0.46.129 ping --instance ChinaMobile_NGN_Media -c 3 -m 200 10.0.49.1 ping --instance ChinaMobile_NGN_Media -c 3 -m 200 10.0.34.129 ping --instance ChinaMobile_NGN_Media -c 3 -m 200 10.0.52.1 ping --instance ChinaMobile_NGN_Media -c 3 -m 200 10.0.79.130 ping --instance ChinaMobile_NGN_Media -c 3 -m 200 10.0.82.1 ping --instance ChinaMobile_NGN_Media -c 3 -m 200 10.0.91.130 ping --instance ChinaMobile_NGN_Media -c 3 -m 200 10.0.88.1 ping --instance ChinaMobile_NGN_Media -c 3 -m 200 10.0.85.1 ping --instance ChinaMobile_NGN_Media -c 3 -m 200 10.0..129 ping --instance ChinaMobile_NGN_Media -c 3 -m 200 10.0.73.1 ping --instance ChinaMobile_NGN_Media -c 3 -m 200 10.0.76.129 ping --instance ChinaMobile_NGN_Media -c 3 -m 200 10.0.70.1 ping --instance ChinaMobile_NGN_Media -c 3 -m 200 10.0.67.1 ping --instance ChinaMobile_NGN_Media -c 3 -m 200 10.0.25.130 ping --instance ChinaMobile_NGN_Media -c 3 -m 200 10.0.31.1 ping --instance ChinaMobile_NGN_Media -c 3 -m 200 10.0.28.129 ping --instance ChinaMobile_NGN_Media -c 3 -m 200 10.0.55.129 ping --instance ChinaMobile_NGN_Media -c 3 -m 200 10.0.61.1 ping --instance ChinaMobile_NGN_Media -c 3 -m 200 10.0.58.1 ping --instance ChinaMobile_NGN_Media -c 3 -m 200 10.0.16.130 ping --instance ChinaMobile_NGN_Media -c 3 -m 200 10.0.19.1 ping --instance ChinaMobile_NGN_Media -c 3 -m 200 10.0.22.130 ping - ChinaMobile_NGN_SG -c 3 -m 200 10.0.2.4 ping - ChinaMobile_NGN_SG -c 3 -m 200 10.0.14.132 ping - ChinaMobile_NGN_SG -c 3 -m 200 10.0.8.4 ping - ChinaMobile_NGN_SG -c 3 -m 200 10.0.11.132 ping - ChinaMobile_NGN_SG -c 3 -m 200 10.0.5.4 ping - ChinaMobile_NGN_SG -c 3 -m 200 10.0.38.4 ping - ChinaMobile_NGN_SG -c 3 -m 200 10.0.44.132 ping - ChinaMobile_NGN_SG -c 3 -m 200 10.0.41.4 ping - ChinaMobile_NGN_SG -c 3 -m 200 10.0.47.4 ping - ChinaMobile_NGN_SG -c 3 -m 200 10.0.50.132 ping - ChinaMobile_NGN_SG -c 3 -m 200 10.0.35.4 ping - ChinaMobile_NGN_SG -c 3 -m 200 10.0.53.132 ping - ChinaMobile_NGN_SG -c 3 -m 200 10.0.80.4 ping - ChinaMobile_NGN_SG -c 3 -m 200 10.0.83.132 ping - ChinaMobile_NGN_SG -c 3 -m 200 10.0.92.4 ping - ChinaMobile_NGN_SG -c 3 -m 200 10.0..4 ping - ChinaMobile_NGN_SG -c 3 -m 200 10.0.86.4 ping - ChinaMobile_NGN_SG -c 3 -m 200 10.0.65.4 ping - ChinaMobile_NGN_SG -c 3 -m 200 10.0.74.132 ping - ChinaMobile_NGN_SG -c 3 -m 200 10.0.77.4 ping - ChinaMobile_NGN_SG -c 3 -m 200 10.0.71.4 ping - ChinaMobile_NGN_SG -c 3 -m 200 10.0.68.132 ping - ChinaMobile_NGN_SG -c 3 -m 200 10.0.26.4 ping - ChinaMobile_NGN_SG -c 3 -m 200 10.0.32.132 ping - ChinaMobile_NGN_SG -c 3 -m 200 10.0.29.4 ping - ChinaMobile_NGN_SG -c 3 -m 200 10.0.56.4 ping - ChinaMobile_NGN_SG -c 3 -m 200 10.0.62.4 ping - ChinaMobile_NGN_SG -c 3 -m 200 10.0.59.132 ping - ChinaMobile_NGN_SG -c 3 -m 200 10.0.17.4 ping - ChinaMobile_NGN_SG -c 3 -m 200 10.0.20.132 ping - ChinaMobile_NGN_SG -c 3 -m 200 10.0.23.4 ----上述ping列表中任何一个地址ping不通提示告警,输出命令执行结果,判断标准为丢包率不为0% Ping输出示例如下: Reply from 10.1.56.202: bytes=56 Sequence=1 ttl=253 time=20 ms Reply from 10.1.56.202: bytes=56 Sequence=2 ttl=253 time=18 ms Reply from 10.1.56.202: bytes=56 Sequence=3 ttl=253 time=18 ms Reply from 10.1.56.202: bytes=56 Sequence=4 ttl=253 time=18 ms Reply from 10.1.56.202: bytes=56 Sequence=5 ttl=253 time=18 ms --- 10.1.56.202 ping statistics --- 5 packet(s) transmitted 5 packet(s) received 0.00% packet loss round-trip min/avg/max = 18/18/20 ms
因篇幅问题不能全部显示,请点此查看更多更全内容