锐捷数据中心交换机 软件升级通关秘籍

2.3   设备状态与资源确认

l  查看软件版本、设备型号。确认当前版本是否符合版本发行说明中的要求,是否可直接升级到目标版本。

S6250-48XS8CQ#show version detail

System description      : Ruijie Full 10G Routing Switch(S6250-48XS8CQ) By Ruijie Networks

System start time       : 1971-02-12 23:34:32

System uptime           : 1:01:30:03

System hardware version : 2.00

System software version : S6250_RGOS 11.0(5)B9P120S4, Release(11200803)

System patch number     : NA

System software number  : M03210408082024

System serial number    : 1234942570054

System boot version     : 1.3.12.b847872(210513)

System core version     : 2.6.32.77208c2fe6bc30

System cpu partition    : 3

Module information:

  Slot 0 : RG-S6250-48XS8CQ

    Hardware version    : 2.00

    Boot version        : 1.3.12.b847872(210513)

    Software version    : S6250_RGOS 11.0(5)B9P120S4, Release(11200803)

    Software number     : M03210408082024

    Serial number       : 1234942570054

l  查看设备电源状态,关注Status字段是否ok,如果出现非ok状态,查看对应的Exception字段,联系技术人员评估是否能够升级。

电源状态Status:

○        no-present:电源不在位

○        ok:电源正常

○        off:下电状态(仅箱式设备)

○        fail:电源异常

○        line-fail:通信失败

电源异常Exception:

○        N/A:无已知异常

○        Ouput over voltage:过压

○        Over current:过流

○        Fan error:电源风扇异常

○        Over temperature:过温

○        Output off:无输出

○        Other error:其他错误

S6250-48XS8CQ#show power

Name              Slot Status       Attribute Conexist Hardware Version Serial              Temperature Exception

----------------- ---- ------------ --------- -------- ---------------- ------------------- ----------- --------------------

RG-PA550I-F       1    ok           -F        yes      AC               M623V4003NACL       26          N/A

N/A               2    no-present   N/A       N/A      N/A              N/A                 N/A         N/A

                        Rated     Input      Input       Output     Output     Output

Name              Slot Power(W) Voltage(V) Current(mA) Voltage(V) Current(mA) Power(W)

----------------- ---- -------- ---------- ----------- ---------- ----------- --------

RG-PA550I-F       1    550      235        453         12         7750        94

N/A               2    N/A      N/A        N/A         N/A        N/A         N/A

l  查看设备风扇状态,关注Status字段是否ok。如若出现非ok状态,若支持show fan detail可进一步查看详情。联系技术人员评估是否能够升级。

风扇状态Status:

○        ok:风扇运行正常

○        no-present:风扇盘不在位

○        fail:至少存在一个子风扇停转

○        line fail:通信失败

○        N/A:其他错误

S6250-48XS8CQ#show fan

Fan id Type             Status     Hardware Version Serial Number

------ ---------------- ---------- ---------------- ---------------

1      M1EFAN II-F      ok         1.02             G1PV673000046

2      M1EFAN II-F      ok         1.02             G1PV67300003C

3      M1EFAN II-F      ok         1.02             G1PV67300001B

4      M1EFAN II-F      ok         1.02             G1PV673000025

l  查看设备单板在线情况,关注Software Status字段,若出现ok、master、backup、candidate以外的状态,联系技术人员评估是否能够升级。

管理板在线状态Software Status:

○        master:主管理板

○        backup:从管理板

○        candidate:候选管理板(仅箱式设备)

○        cannot startup:模块探测失败

○        unknown:未知异常

线卡或扩展卡线状态Software Status:

○        ok:模块运行正常

○        removed:正在移除,完成后变为none

○        resetting:将要就绪,如果长时间处于此状态则是异常(5分钟以上)

○        uninstall:正在卸载

○        offline:模块离线(仅箱式设备)

○        cannot startup:模块探测失败

○        none:模块不在位或正在探测中

○        unknown:未知异常

Ruijie#show version slots

  Dev Slot Port Configured Module            Online Module                Software Status

  --- ---- ---- ---------------------------- ---------------------------- ---------------

  1   1    0    none                         none                         none

  1   2    0    none                         none                         none

  1   3    48   M18000X-48CQ-CES             M18000X-48CQ-CES             ok

  1   4    0    none                         none                         none

  1   5    0    none                         none                         none

  1   6    144  M18000X-48CQ-CE              M18000X-48CQ-CE              ok

  1   7    0    none                         none                         none

  1   8    0    none                         none                         none

  1   9    0    none                         none                         none

  1   10   0    none                         none                         none

  1   11   0    none                         none                         none

  1   12   0    none                         none                         none

  1   13   0    none                         none                         none

  1   14   0    none                         none                         none

  1   15   0    none                         none                         none

  1   16   0    none                         none                         none

  1   FE1  0    N/A                          none                         none

  1   FE2  0    N/A                          none                         none

  1   FE3  0    N/A                          M18018X-FE-E IV              ok

  1   FE4  0    N/A                          none                         none

  1   FE5  0    N/A                          none                         none

  1   FE6  0    N/A                          none                         none

  1   M1   0    N/A                          M18000X-CM X                 master

  1   M2   0    N/A                          none                         none

l  查看设备CPU使用情况,是否存在持续飙高,避免在CPU使用率高于80%(不同设备情况不同)时升级,CPU超限时升级,部分设备会弹出日志提示。

S6250-48XS8CQ#show cpu

===============================================

[Slot 0: RG-S6250-48XS8CQ]

CPU Using Rate Information

CPU utilization in five seconds: 20.30%

CPU utilization in one minute:   19.80%

CPU utilization in five minutes: 19.30%

 NO      5Sec    1Min    5Min Process

    1   0.00%   0.00%   0.00% init

    2   0.00%   0.00%   0.00% kthreadd

    3   0.00%   0.00%   0.00% ksoftirqd/0

    4   0.00%   0.00%   0.00% kworker/0:0

    5   0.00%   0.00%   0.00% kworker/0:0H

    7   0.00%   0.00%   0.00% migration/0

    8   0.00%   0.00%   0.00% rcu_bh

    9   0.00%   0.00%   0.00% rcu_sched

   10   0.00%   0.00%   0.00% rcuc/0

   11   0.00%   0.00%   0.00% rcuc/1

   12   0.00%   0.00%   0.00% migration/1

   13   0.00%   0.00%   0.00% ksoftirqd/1

   14   0.00%   0.00%   0.00% kworker/1:0

   15   0.00%   0.00%   0.00% kworker/1:0H

   16   0.00%   0.00%   0.00% rcuc/2

   17   0.00%   0.00%   0.00% migration/2

 --More--

l  查看内存使用情况,避免在内存使用率高于70%(不同设备情况不同)时升级,内存超限时升级,部分设备会弹出日志提示。

S6250-48XS8CQ#show memory

System Memory: 4194304KB total, 1512068KB used, 2682236KB free, 36.05% used rate

Used detail:   920708KB active, 344216KB inactive, 211232KB mapped, 286468KB slab, 170508KB core, 0KB others

PID     Vsd     Text    Rss     Data    Stack   Total   Process

13174   0       128     2136    50624   132     57648   rl-con/259

13173   0       56      1572    21148   132     27488   rg-telnetd

6471    0       128     2192    54720   132     61744   rl-con/258

6470    0       56      1572    21148   132     27488   rg-telnetd

4654    0       128     2184    54720   132     61744   rl-con/1459

4644    0       128     1932    54720   132     61744   rl-con/1458

3790    0       216     2720    557880  132     562712  sysha

3675    0       28      1864    8704    132     14064   sntp.elf

3622    0       240     14980   17124   132     151124  span.elf

3603    0       28      1812    588     132     5244    rg-mtdoops-cli

3449    0       24      1032    254160  132     257720  ddr-proxy

3436    0       40      1764    402116  132     406564  ddr-check

3349    0       16      1592    548     132     4352    hung_task_cli.e

3289    0       20      1548    552     132     4312    rg_cpurule

3268    0       584     16940   78508   132     215156  snooping.elf

3248    0       32      836     180444  132     184656  run_3245

3247    0       812     924     264     132     4556    sh

3245    0       32      444     220     132     4248    demo_3245

3244    0       812     680     200     132     4492    sh_app

3223    0       184     14812   156660  132     287972  reup.elf

 --More--

l  查看设备温度,关注Status字段,板卡温度超过告警温度,主管理板打印syslog提示,且面板Alarm亮黄灯。

设备温度Status:

○        ok:表示当前温度处于正常范围

○        fail:表示温度器件故障

○        warning:表示当前温度超过warning告警阈值。箱式设备板卡温度超过该温度,主管理板打印syslog提示,且面板Alarm亮黄灯;盒式设备温度超过该温度,会打印syslog提示,且面板Alarm亮黄灯

○        critical:当前温度超过shutdown告警阈值。箱式设备板卡温度超过该温度,会自动下电待温度恢复后重新上电,同时主管理板打印syslog提示,且面板Alarm亮红灯,若主管理板温度超过该温度,从管理版升主,主管理板下电待温度恢复后上电;盒式设备温度超过该温度,打印syslog提示,且面板Alarm亮红灯,同时重启设备

S6250-48XS8CQ#show temperature

Temperature:

------------------------------------------------------------------------------------------------------------

Slot    Card_type                        Temp_name     Warning         Shutdown       Current       Status

                                                      (Celsius)        (Celsius)     (Celsius)

------------------------------------------------------------------------------------------------------------

0       RG-S6510-48VS8CQ                 air_inlet       50              60              20           ok

0       RG-S6510-48VS8CQ                 air_outlet      85              90              24           ok

0       RG-S6510-48VS8CQ                 board           85              90              24           ok

0       RG-S6510-48VS8CQ                 cpu             85              100             39           ok

0       RG-S6510-48VS8CQ                 switch          100             105             34           ok

l  检查存储空间是否大于版本文件占用空间,若空间不足,则通过delete命令删除无用文件。

S6250-48XS8CQ#dir

Directory of flash:/

Number  Properties   Size               Time                    Name

------  ----------  ------    ------------------------  --------------------

  1       -rwx      22.5k     Sun Feb 14 00:36:17 1971  syslog.txt

  2       -rw-      0B        Sat Feb  6 16:51:20 1971  ss_ds_debug.txt

  3       -rwx      816B      Wed Feb 10 22:53:44 1971  rsa1_private.bin

  4       -rw-      201.8M    Fri Feb 12 23:24:47 1971  S6500_RGOS11.0(5)B9P120S4_11200803_install.bin

  5       drwx      4.0k      Sat Feb  6 17:09:13 1971  upgrade

  6       drwx      4.0k      Sat Feb  6 16:51:23 1971  sysmon

  7       drwx      4.0k      Sat Feb  6 17:09:12 1971  upgrade_rep

  8       drw-      4.0k      Sat Feb  6 16:51:19 1971  at

  9       drwx      4.0k      Sat Feb  6 16:51:20 1971  uft_config

 10       -rw-      254B      Fri Feb 12 23:35:26 1971  r5_boot_history_0

 11       -rw-      1B        Sat Feb  6 17:41:47 1971  vxlan_dgpp_config.bcm

 12       drwx      4.0k      Sat Feb  6 17:13:33 1971  rg_licns

 13       -rw-      1B        Fri Feb 12 23:36:22 1971  tcam_mode_config.bcm

 14       drwx      4.0k      Sat Feb  6 16:52:52 1971  bridge

 15       drwx      4.0k      Sat Feb  6 16:51:12 1971  addr

 16       drwx      4.0k      Sat Feb  6 16:51:12 1971  dev

 17       -rw-      0B        Sat Feb  6 16:51:26 1971  policy_adjust_debug.txt

 18       -rw-      32B       Fri Feb 12 23:34:50 1971  ssd_split.dat

 19       -rw-      4.7k      Thu Jan  1 00:00:02 1970  config.text

 20       -rw-      0B        Sat Feb  6 16:51:26 1971  ssd_fp_appmng_debug.txt

 21       drwx      4.0k      Fri Feb 12 23:29:45 1971  upgrade_ram

 22       -rw-      216.3M    Sat Feb  6 17:04:21 1971  S6500_RGOS11.0(5)B9P129_13152501_install.bin

 23       drwx      4.0k      Sat Feb  6 17:40:14 1971  rg_ddr

 24       -rw-      0B        Sat Feb  6 16:51:19 1971  ss_comm.txt

 25       drwx      4.0k      Thu Jan  1 00:00:02 1970  zam

 26       drwx      4.0k      Sat Feb  6 16:52:47 1971  syslog

 27       -rw-      26.9k     Thu Jan  1 00:00:02 1970  standalone.text

 28       -rwx      378B      Thu Jan  1 00:00:02 1970  config_vsu.dat

 29       -rw-      32B       Fri Feb 12 23:36:30 1971  ss_split.dat

 30       -rwx      812B      Wed Feb 10 22:53:44 1971  rsa_private.bin

 31       -rw-      0B        Sat Feb  6 16:52:15 1971  ssc_fp_appmng_debug.txt

18 files, 13 directories

4,031,582,208 bytes data total (3,511,595,008 bytes free)

7,818,182,656 bytes flash total (3,511,595,008 bytes free)

l  通过show alarmshow logging检查设备是否存在故障日志,存在故障指示灯提示等。联系技术人员评估是否能够升级。

S6250-48XS8CQ(config)#show alarm

Dev Module          Level    Info

--- --------------- -------- ------------------------------------------------------------------

1   ca_monitor      Warning  power status alarm

S6250-48XS8CQ(config)#show logging

Syslog logging: enabled

  Console logging: level debugging, 577 messages logged

  Monitor logging: level debugging, 0 messages logged

  Buffer logging: level debugging, 577 messages logged

  File logging: level informational, 577 messages logged

  File name:syslog.txt, size 128 Kbytes, have written 1 files

  Standard format:false

  Timestamp debug messages: datetime

  Timestamp log messages: datetime

  Sequence-number log messages: disable

  Sysname log messages: disable

  Count log messages: disable

  Trap logging: level informational, 577 message lines logged,0 fail

    logging to  2008::1 via mgmt, 0 fail

Log Buffer (Total 262144 Bytes): have written 56095,

*Feb 12 23:34:43: %LOCAL_DP-5-LC_PROB: Board information in this chassis has been collected.

*Feb 12 23:34:43: %SWITCH-6-INSTALL: Install chassis RG-S6250-48XS8CQ on switch 1

*Feb 12 23:34:43: %DP-6-MASTER: Module in slot 0 has translated to master.

*Feb 12 23:34:43: %DP-5-PROB: Board probing has completed.

*Feb 12 23:34:43: %DEV_MONITOR-6-DEVICE_INIT: master role init.

*Feb 12 23:34:47: %DEV_MONITOR-4-CARD_POWER_ON: The power enough, card in slot 0 will be controlled to power on automatically.

*Feb 12 23:34:48: %DP-6-FAN_OK: Fan 1/1 ok.

*Feb 12 23:34:48: %DP-6-POWER_OK: Power 1 OK.

*Feb 12 23:34:48: %DP-6-FAN_OK: Fan 2/1 ok.

 --More--

l  检查running-config与startup-config是否一致,确认配置已保存,防止升级重启设备导致配置丢失。

上一篇 http和https的区别(简述)
下一篇 【转载】HCIE R&S 备考笔记 VRRP技术原理与注意点