华为交换机状态查看常用命令

发布时间:2018-06-26 15:09:06   来源:文档文库   
字号:

华为交换机状态查看常用命令

当华为交换机设备发生异常时,可以通过查看设备信息检查状态是否正常

1、查看设备的部件信息和状态信息

[023wg.com]display device ?                                                    

  slot  Slot                                                                   

  |     Matching output                                                        

                                                                           

                                                                                

[023wg.com]display device s                                                    

[023wg.com]display device slot ?                                               

  <0>  The present slot                                                         

                                                                               

[023wg.com]display device slot 0                                               

S3700-52P-SI-AC's Device status:                                                

Slot  Sub Type         Online    Power      Register       Status     Role     

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

0     -   3752F        Present   PowerOn    Registered     Normal     Master   

[023wg.com] 

 

2、查看设备的制造信息

[023wg.com]display device manufacture-info [ slot slot-id | backplane ]

 

3、查看设备序列号

    每台设备的序列号ESNEquipment Serial Number)是唯一的。

[023wg.com] display esn

 

4、查看版本信息

    通过查看设备当前的版本信息,可以判断设备是否需要升级或者升级是否成功。

[023wg.com]display version ?                                                   

  slot  Slot                                                                   

  |     Matching output                                                        

                                                                            

                                                                               

[023wg.com]display version sl                                                  

[023wg.com]display version slot ?                                              

  <0>  The registered slot                                                     

                                                                               

[023wg.com]display version slot 0                                               

                                                                               

EMFEA 0(Master) : uptime is 0 week, 0 day, 0 hour, 18 minutes                  

128M bytes DDR Memory                                                           

16M bytes FLASH                                                                

Pcb      Version :  VER B                                                      

Basic  BOOTROM  Version :  248 Compiled at Jun 26 2012, 18:54:52                

Software Version : VRP (R) Software, Version 5.70 (V100R006C03)   

 

5、查看电源信息

    当设备的供电出现异常时,用户可以执行以下命令查看设备的电源状态信息。

[023wg.com]display power                                                       

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

 SlotID  PowerNo  Present  Mode   State      Power(W)   Voltage(V)             

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

 0       PWRI     NO       N/A    N/A        N/A        N/A                    

 0       PWRII    NO       N/A    N/A        N/A        N/A                    

[023wg.com] 

 

6、查看功率信息

    如果想了解设备的使用功率的详细情况,可以查看功率信息。当系统扩容时,可以先确认电源功率是否足够。

display power system

 

7、查看单板电压

    当设备单板的电压异常时,用户可以执行以下命令查看单板电压的状态信息。

display voltage { all | slot slot-id }

 

8、查看温度信息

    设备温度过高或过低可能会导致硬件的损坏。如果想了解设备的当前温度值,可以执行以下命令查看温度信息。

display temperature { all | slot slot-id }

 

9、查看风扇状态

    风扇的正常运转是保证设备正常工作的前提。设备散热不正常会引起设备温度升高,并可能损坏硬件。

display fan ?                                                          

  slot     Slot                                                                

  verbose  Fan verbose information                                             

   

 

display fan-para { all | slot slot-id }  #  查看风扇额定功率和调速策略

 

10、查看CPU占用率

    CPU占用率是衡量设备性能的重要指标之一。在网络运行中,CPU占用率过高常常会导致业务异常,例如BGP震荡、VRRP频繁切换甚至设备无法登录。

     执行以下命令,可以实时查看CPU占用率的统计信息和配置信息,以保证设备能够运行在稳定状态。

     通过查看CPU占用率的配置信息,可以查看当前CPU占用率的监控告警过载阈值和监控告警恢复阈值。当CPU占用率上升到监控告警过载阈值时,系统触发监控过载告警。当CPU占用率下降到监控告警恢复阈值时,系统触发监控恢复告警。

display cpu-usage    #  查看CPU占用率的统计信息

CPU Usage Stat. Cycle: 60 (Second)

CPU Usage            : 15% Max: 93%

CPU Usage Stat. Time : 2008-01-01  00:11:50

CPU utilization for five seconds: 15%: one minute: 15%: five minutes: 15%.

 

TaskName             CPU  Runtime(CPU Tick High/Tick Low)  Task Explanation

BOX                   0%         0/ 1d42314       BOX Output                  

_TIL                  0%         0/       0       Infinite loop event task    

_EXC                  0%         0/       0       Exception Agent Task        

VIDL                 85%         1/2ffbd2fe       DOPRA IDLE                  

TICK                  0%         0/ 283c3ce                                    

.........................................................................................      

PPI                   0%         0/  1bf74e       PPI Product Process Interface

IFPD                  2%         0/ a53ca60       IFPD Ifnet Product Adapt    

............................................................................................................     

VT                    0%         0/       0       VT   Virtual Transfer       

OS                   11%         0/2756ccff       Operation System  

 

display cpu-usage configuration ?    # 查看CPU占用率的配置信息                                  

  slave  Slave MPU                                                             

  slot   Specify the slot                                                       

                                                                           

                                                                               

display cpu-usage configuration                                        

The CPU usage monitor is turned on.                                            

The current monitor cycle is 60 seconds.                                       

The current monitor warning threshold is 95%.                                  

The current monitor restore threshold is 80%.                                  

  

 

11、查看内存占用率

    内存占用率是衡量设备性能的重要指标之一。在网络运行中,内存占用率过高常常会导致业务异常。实时查看内存占用率信息,以确认设备是否运行稳定。

    通过查看内存占用率门限值,可以查看监控告警触发条件。当内存占用率上升到门限值时,系统触发告警。当内存占用率低于门限值时,系统告警消除。

display memory-usage ?     # 查看内存占用率的统计信息。                                            

  slave  Slave MPU                                                             

  slot   Slot number                                                           

                                                                           

                                                                               

display memory-usage                                                   

 Memory utilization statistics at 2008-01-01 00:41:34 800 ms                   

 System Total Memory Is: 75312648 bytes                                        

 Total Memory Used Is: 45037704 bytes                                          

 Memory Using Percentage Is: 59%

 

display memory-usage threshold [ slot slot-id ]  # 查看内存占用率的门限值

 

12、查看环境监控软件版本信息

display environment version    

 

13、查看接口信息

    当用户在某一接口下完成一组配置之后,需要验证是否配置正确,可以查看当前接口下的配置信息。当用户在监控接口的状态或检查接口的故障原因时,可以查看接口的状态信息。

13.1、查看接口的配置信息

[Huawei-Ethernet0/0/2]display this                                             

#                                                                              

interface Ethernet0/0/2                                                        

 port link-type access                                                         

 port default vlan 12                                                          

#                                                                               

return                                                                         

[Huawei-Ethernet0/0/2]  

 

13.2、查看接口的状态信息                                               

display interface Ethernet 0/0/2                                       

Ethernet0/0/2 current state : DOWN                                             

Line protocol current state : DOWN                                             

Description:HUAWEI, Quidway Series, Ethernet0/0/2 Interface                    

Switch Port, PVID :   12, TPID : 8100(Hex), The Maximum Frame Length is 1600   

IP Sending Frames' Format is PKTFMT_ETHNT_2, Hardware address is d4b1-10cf-057d

Port Mode: COMMON COPPER                                                        

Speed :   10,  Loopback: NONE                                                  

Duplex: HALF,  Negotiation: ENABLE                                             

Mdi   : AUTO                                                                    

Last 300 seconds input rate 0 bits/sec, 0 packets/sec                          

Last 300 seconds output rate 0 bits/sec, 0 packets/sec                         

Input peak rate 0 bits/sec, Record time: -                                      

Output peak rate 0 bits/sec, Record time: -                                    

Input:  0 packets, 0 bytes                                                     

Unicast        :                   0, Multicast          :                   0  

Broadcast      :                   0, Jumbo              :                   0 

CRC            :                   0, Giants             :                   0 

Jabbers        :                   0, Fragments          :                   0 

Runts          :                   0, DropEvents         :                   0 

Alignments     :                   0, Symbols            :                   0 

Ignoreds       :                   0, Frames             :                   0 

Discard        :                   0, Total Error        :                   0 

Output:  0 packets, 0 bytes                                                    

Unicast        :                   0, Multicast          :                   0 

Broadcast      :                   0, Jumbo              :                   0 

Collisions     :                   0, Deferreds          :                   0 

Late Collisions:                   0, ExcessiveCollisions:                   0 

Buffers Purged :                   0                                            

Discard        :                   0, Total Error        :                   0 

    Input bandwidth utilization threshold : 100.00%                            

    Output bandwidth utilization threshold: 100.00%                             

    Input bandwidth utilization  : 0.00%                                       

    Output bandwidth utilization : 0.00%                                       

                                                                                

 

[Huawei-Ethernet0/0/2]display this interface                                   

Ethernet0/0/2 current state : DOWN                                             

Line protocol current state : DOWN                                              

Description:HUAWEI, Quidway Series, Ethernet0/0/2 Interface                    

Switch Port, PVID :   12, TPID : 8100(Hex), The Maximum Frame Length is 1600   

IP Sending Frames' Format is PKTFMT_ETHNT_2, Hardware address is d4b1-10cf-057d

Port Mode: COMMON COPPER                                                       

Speed :   10,  Loopback: NONE                                                  

Duplex: HALF,  Negotiation: ENABLE                                             

Mdi   : AUTO                                                                   

Last 300 seconds input rate 0 bits/sec, 0 packets/sec                          

Last 300 seconds output rate 0 bits/sec, 0 packets/sec                         

Input peak rate 0 bits/sec, Record time: -                                     

Output peak rate 0 bits/sec, Record time: -                                    

Input:  0 packets, 0 bytes                                                     

Unicast        :                   0, Multicast          :                   0 

Broadcast      :                   0, Jumbo              :                   0 

CRC            :                   0, Giants             :                   0 

Jabbers        :                   0, Fragments          :                   0 

Runts          :                   0, DropEvents         :                   0 

Alignments     :                   0, Symbols            :                   0 

Ignoreds       :                   0, Frames             :                   0 

Discard        :                   0, Total Error        :                   0 

Output:  0 packets, 0 bytes                                                    

Unicast        :                   0, Multicast          :                   0 

Broadcast      :                   0, Jumbo              :                   0 

Collisions     :                   0, Deferreds          :                   0 

Late Collisions:                   0, ExcessiveCollisions:                   0 

Buffers Purged :                   0                                           

Discard        :                   0, Total Error        :                   0 

    Input bandwidth utilization threshold : 100.00%                            

    Output bandwidth utilization threshold: 100.00%                            

    Input bandwidth utilization  : 0.00%                                       

    Output bandwidth utilization : 0.00%                                       

                                                                                

[Huawei-Ethernet0/0/2] 

本文来源:https://www.2haoxitong.net/k/doc/2aa82898cf84b9d529ea7a81.html

《华为交换机状态查看常用命令.doc》
将本文的Word文档下载到电脑,方便收藏和打印
推荐度:
点击下载文档

文档为doc格式