华为交换机状态查看常用命令当华为交换机设备发生异常时,可以通过查看设备信息检查状态是否正常1、查看设备的部件信息和状态信息[]display device ?slot Slot| Matching output<cr>[]display device s[]display device slot ?<0> The present slot[]display device slot 0S3700-52P-SI-AC's Device status:Slot Sub Type Online Power Register Status Role - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -0 - 3752F Present PowerOn Registered Normal Mast er[]2、查看设备的制造信息[]display device manufacture-info [ slot slot-id | backplane ]3、查看设备序列号每台设备的序列号ESN(Equipment Serial Number)是唯一的。
[] display esn4、查看版本信息通过查看设备当前的版本信息,可以判断设备是否需要升级或者升级是否成功。
[]display version ?slot Slot| Matching output<cr>[]display version sl[]display version slot ?<0> The registered slot[]display version slot 0EMFEA 0(Master) : uptime is 0 week, 0 day, 0 hour, 18 minutes 128M bytes DDR Memory16M bytes FLASHPcb Version : VER BBasic BOOTROM Version : 248 Compiled at Jun 26 2012,18:54:52Software Version : VRP (R) Software, Version 5.70 (V100R006C03)5、查看电源信息当设备的供电出现异常时,用户可以执行以下命令查看设备的电源状态信息。
[]display power-------------------------------------------------------------------------- SlotID PowerNo Present Mode State Power(W) Voltage(V)-------------------------------------------------------------------------- 0 PWRI NO N/A N/A N/A N/A0 PWRII NO N/A N/A N/A N/A []6、查看功率信息如果想了解设备的使用功率的详细情况,可以查看功率信息。
当系统扩容时,可以先确认电源功率是否足够。
<Huawei>display power system7、查看单板电压当设备单板的电压异常时,用户可以执行以下命令查看单板电压的状态信息。
<Huawei>display voltage { all | slot slot-id }8、查看温度信息设备温度过高或过低可能会导致硬件的损坏。
如果想了解设备的当前温度值,可以执行以下命令查看温度信息。
<Huawei>display temperature { all | slot slot-id }9、查看风扇状态风扇的正常运转是保证设备正常工作的前提。
设备散热不正常会引起设备温度升高,并可能损坏硬件。
<Huawei>display fan ?slot Slotverbose Fan verbose information<cr><Huawei>display fan-para { all | slot slot-id } # 查看风扇额定功率和调速策略10、查看CPU占用率CPU占用率是衡量设备性能的重要指标之一。
在网络运行中,CPU占用率过高常常会导致业务异常,例如BGP震荡、VRRP频繁切换甚至设备无法登录。
执行以下命令,可以实时查看CPU占用率的统计信息和配置信息,以保证设备能够运行在稳定状态。
通过查看CPU占用率的配置信息,可以查看当前CPU占用率的监控告警过载阈值和监控告警恢复阈值。
当CPU占用率上升到监控告警过载阈值时,系统触发监控过载告警。
当CPU占用率下降到监控告警恢复阈值时,系统触发监控恢复告警。
<Huawei>display cpu-usage # 查看CPU占用率的统计信息CPU Usage Stat. Cycle: 60 (Second)CPU Usage : 15% Max: 93%CPU Usage Stat. Time : 2008-01-01 00:11:50CPU utilization for five seconds: 15%: one minute: 15%: five minutes: 15%.TaskName CPU Runtime(CPU Tick High/Tick Low) Task ExplanationBOX 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 InterfaceIFPD 2% 0/ a53ca60 IFPD Ifnet Product Adapt ............................................................................................................VT 0% 0/ 0 VT Virtual TransferOS 11% 0/2756ccff Operation System<Huawei>display cpu-usage configuration ? # 查看CPU占用率的配置信息slave Slave MPUslot Specify the slot<cr><Huawei>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%.<Huawei>11、查看内存占用率内存占用率是衡量设备性能的重要指标之一。
在网络运行中,内存占用率过高常常会导致业务异常。
实时查看内存占用率信息,以确认设备是否运行稳定。
通过查看内存占用率门限值,可以查看监控告警触发条件。
当内存占用率上升到门限值时,系统触发告警。
当内存占用率低于门限值时,系统告警消除。
<Huawei>display memory-usage ? # 查看内存占用率的统计信息。
slave Slave MPUslot Slot number<cr><Huawei>display memory-usageMemory utilization statistics at 2008-01-01 00:41:34 800 ms System Total Memory Is: 75312648 bytesTotal Memory Used Is: 45037704 bytesMemory Using Percentage Is: 59%<Huawei>display memory-usage threshold [ slot slot-id ] # 查看内存占用率的门限值12、查看环境监控软件版本信息<Huawei>display environment version13、查看接口信息当用户在某一接口下完成一组配置之后,需要验证是否配置正确,可以查看当前接口下的配置信息。
当用户在监控接口的状态或检查接口的故障原因时,可以查看接口的状态信息。
13.1、查看接口的配置信息[Huawei-Ethernet0/0/2]display this#interface Ethernet0/0/2port link-type accessport default vlan 12#return[Huawei-Ethernet0/0/2]13.2、查看接口的状态信息<Huawei>display interface Ethernet 0/0/2 Ethernet0/0/2 current state : DOWNLine protocol current state : DOWN Description:HUAWEI, Quidway Series, Ethernet0/0/2InterfaceSwitch Port, PVID : 12, TPID : 8100(Hex), The Maximum Frame Length is 1600IP Sending Frames' Format is PKTFMT_ETHNT_2, Hardware address is d4b1-10cf-057dPort Mode: COMMON COPPERSpeed : 10, Loopback: NONE Duplex: HALF, Negotiation: ENABLE Mdi : AUTOLast 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 bytesUnicast : 0, Multicast : 0 Broadcast : 0, Jumbo : 0CRC : 0, Giants : 0Jabbers : 0, Fragments : 0Runts : 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 : 0Collisions : 0, Deferreds : 0Late Collisions: 0, ExcessiveCollisions: 0 Buffers Purged : 0Discard : 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>或[Huawei-Ethernet0/0/2]display this interface Ethernet0/0/2 current state : DOWNLine protocol current state : DOWNDescription:HUAWEI, Quidway Series, Ethernet0/0/2InterfaceSwitch Port, PVID : 12, TPID : 8100(Hex), The Maximum Frame Length is 1600IP Sending Frames' Format is PKTFMT_ETHNT_2, Hardware address isd4b1-10cf-057dPort Mode: COMMON COPPER Speed : 10, Loopback: NONEDuplex: HALF, Negotiation: ENABLE Mdi : AUTOLast 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 bytesUnicast : 0, Multicast : 0 Broadcast : 0, Jumbo : 0CRC : 0, Giants : 0Jabbers : 0, Fragments : 0Runts : 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 : 0Late Collisions: 0, ExcessiveCollisions: 0 Buffers Purged : 0Discard : 0, Total Error : 0Input 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]。