交换机端口光衰问题排查

操作交换机型号:HUAWEI S5730

华为交换机命令参考网址:https://support.huawei.com/enterprise/zh/doc/EDOC1100082528/d5c02456

一、查看交换机端口状态

[HUAWEI]display interface brief
PHY: Physical
*down: administratively down
#down: LBDT down
(l): loopback
(s): spoofing
(E): E-Trunk down
(b): BFD down
(e): ETHOAM down
(dl): DLDP down
(lb): LBDT block
InUti/OutUti: input utility/output utility
Interface                   PHY   Protocol  InUti OutUti   inErrors  outErrors
... ...
XGigabitEthernet0/0/1       up    up        0.65%  4.55%    6148394          0
... ...

[HUAWEI]display interface XGigabitEthernet0/0/1 | include Error
  Total Error:                6148874
  Total Error:                      0
[HUAWEI]display interface XGigabitEthernet0/0/1 | include Error
  Total Error:                6148874
  Total Error:                      0
[HUAWEI]display interface XGigabitEthernet0/0/1 | include Error
  Total Error:                6148875
  Total Error:                      0
[HUAWEI]display interface XGigabitEthernet0/0/1 | include Error
  Total Error:                6148875
  Total Error:                      0
## 发现inErrors有错误包,此时还不能判断,是不是现在有错误包产生,因为有可能是之前的问题留下的错误包,等30s或者1min左右再执行一次端口状态命令,查看下inErrors的数量是否上涨,如果上涨了表示目前是有问题的;

二、查看交换机日志并过滤该端口的信息

[HUAWEI]display logbuffer | include XGigabitEthernet0/0/1
Logging buffer configuration and contents : enabled
Allowed max buffer size : 1024
Actual buffer size : 512
Channel number : 4 , Channel name : logbuffer
Dropped messages : 0
Overwritten messages : 32423
Current messages : 512

Aug 11 2021 11:25:22+08:00 HUAWEI %%01SRM/3/RXPOWER_EXCEEDMINOR(l)[3]:Optical module in interface XGigabitEthernet0/0/1 exception, Rx power is too low.
Aug 11 2021 11:15:21+08:00 HUAWEI %%01SRM/3/RXPOWER_EXCEEDMINOR(l)[10]:Optical module in interface XGigabitEthernet0/0/1 exception, Rx power is too low.
Aug 11 2021 11:05:21+08:00 HUAWEI %%01SRM/3/RXPOWER_EXCEEDMINOR(l)[16]:Optical module in interface XGigabitEthernet0/0/1 exception, Rx power is too low.
Aug 11 2021 10:55:20+08:00 HUAWEI %%01SRM/3/RXPOWER_EXCEEDMINOR(l)[22]:Optical module in interface XGigabitEthernet0/0/1 exception, Rx power is too low.
##发现日志中提示 XGigabitEthernet0/0/1端口的接收功率太低;
[HUAWEI]display trapbuffer | include XGigabitEthernet0/0/1 Trapping buffer configuration and contents : enabled Allowed max buffer size : 1024 Actual buffer size : 256 Channel number : 3 , Channel name : trapbuffer Dropped messages : 0 Overwritten messages : 35970 Current messages : 256 #Aug 11 2021 11:35:22+08:00 HUAWEI ENTITYTRAP/3/OPTMAYINVALID:OID 1.3.6.1.4.1.2011.5.25.219.2.4.5 The optical power exceeds the upper warning threshold or falls below the lower warning threshold. (Index=67469390, EntityPhysicalIndex=67469390, PhysicalName="XGigabitEthernet0/0/1", EntityTrapFaultID=136223, EntityTrapReasonDescr="The receive power is below the lower warning threshold.") #Aug 11 2021 11:35:22+08:00 HUAWEI SRM/3/OPTPWRABNORMAL:OID 1.3.6.1.4.1.2011.5.25.129.2.17.1 Optical module power is abnormal. (EntityPhysicalIndex=67469390, BaseTrapSeverity=5, BaseTrapProbableCause=67697, BaseTrapEventType=9, EntPhysicalContainedIn=0, EntPhysicalName="XGigabitEthernet0/0/1", RelativeResource="Interface XGigabitEthernet0/0/1 optical module Rx Power", ReasonDescription="Rx power is too low. The detail information is as follows: The current Rx power is -18.66dBM; Set lower threshold is -18.38dBM; Default lower threshold is -18.38dBM") #Aug 11 2021 11:25:22+08:00 HUAWEI ENTITYTRAP/3/OPTMAYINVALID:OID 1.3.6.1.4.1.2011.5.25.219.2.4.5 The optical power exceeds the upper warning threshold or falls below the lower warning threshold. (Index=67469390, EntityPhysicalIndex=67469390, PhysicalName="XGigabitEthernet0/0/1", EntityTrapFaultID=136223, EntityTrapReasonDescr="The receive power is below the lower warning threshold.") ## 发现日志中提示XGigabitEthernet0/0/1接收功率低于较低的警告阈值;

三、再查看下这个端口的端口速率是否正常

[HUAWEI]display interface XGigabitEthernet0/0/1 | include Speed
Speed : 10000, Loopback: NONE
因为该端口为万兆光口,所以速率10000正常

四、此时,基本可以判断是光模块有问题了,查看光衰

HUAWEI]display transceiver interface XGigabitEthernet0/0/1 verbose

XGigabitEthernet0/0/1 transceiver information:
-------------------------------------------------------------
Common information:
  Transceiver Type               :10GBASE_LR_SFP
  Connector Type                 :LC
  Wavelength(nm)                 :1310
  Transfer Distance(m)           :10000(9um)
  Digital Diagnostic Monitoring  :YES
  Vendor Name                    :HUAWEI
  Vendor Part Number             :02318170
  Ordering Name                  :
-------------------------------------------------------------
Manufacture information:
  Manu. Serial Number            :CD50HP10P
  Manufacturing Date             :2015-11-01
  Vendor Name                    :HUAWEI
-------------------------------------------------------------
Diagnostic information:
  Temperature(??              :43.83      光模块当前温度
  Temp High Threshold(??      :100.00     光模块温度上限
  Temp Low  Threshold(??      :-50.00     光模块温度下限
  Voltage(V)                    :3.26     光模块当前电压
  Volt High Threshold(V)        :4.00     光模块电压上限
  Volt Low  Threshold(V)        :3.00     光模块电压下限
  Bias Current(mA)              :33.51    光模块当前电流
  Bias High Threshold(mA)       :100.00   光模块电流上限
  Bias Low  Threshold(mA)       :10.00    光模块电流下限
  RX Power(dBM)                 :-18.66   光模块当前接收功率
  RX Power High Warning(dBM)    :0.49     光模块接收功率警告值上限
  RX Power Low  Warning(dBM)    :-14.40   光模块接收功率警告值下限
  RX Power High Threshold(dBM)  :1.49     光模块接收功率上限
  RX Power Low  Threshold(dBM)  :-18.38   光模块接收功率下限
  TX Power(dBM)                 :-2.71    光模块当前发送功率
  TX Power High Warning(dBM)    :0.49     光模块发送功率警告值上限
  TX Power Low  Warning(dBM)    :-8.19    光模块发送功率警告值下限
  TX Power High Threshold(dBM)  :1.49     光模块发送功率上限
  TX Power Low  Threshold(dBM)  :-10.19   光模块发送功率下限
  Transceiver phony alarm       : Yes     
-------------------------------------------------------------
从上面的信息可以看出,其他信息都正常;只有RX Power(dBM):-18.66这个值超出了光模块接收功率的上下限(1.49-'-18.38');所以综上所述,该光模块有问题需要更换了;

五、光模块信息描述

项目                             描述                                               
Transceiver Type               光模块类型。                                            
Connector Type                 接口类型。                                             
Wavelength(nm)                 光波波长。                                             
Transfer Distance(m)           光波传输距离。50um或62.5um表示光纤直径,光纤为多模光纤。当光纤直径为9um时表示单模光纤。
Digital Diagnostic Monitoring  光模块诊断信息是否监控。                                      
Vendor Name                    光模块制造厂商名称。                                        
Vendor Part Number             厂家部件编码。                                           
Ordering Name                  光模块对外型号。                                          
Manu. Serial Number            光模块生产序列号。                                         
Manufacturing Date             光模块生产日期。                                          
Temperature(°C)                光模块当前温度。                                          
Temp High Threshold(°C)        光模块温度上限。                                          
Temp Low ThresholdC* C)        光模块温度下限。                                          
Voltage(V)                     光模块当前电压。                                          
Bias Current(mA)               光模块当前电流。                                          
Bias High Threshold(mA)        光模块电流上限。                                          
Bias Low Threshold(mA)         光模块电流下限。                                          
RX Power(dBM)                  光模块接收功率。当接收功率为0瓦时,显示为-Inf。                        
RX Power High Threshold(dBM)   光模块接收功率上限。                                        
RX Power low Threshold(dBM)    光模块接收功率下限。                                        
IX Power(dBM)                  光模块发送功率。当发送功率为0瓦时,显示为-Inf。                        
TX Power High Threshold(dBM)   光模块发送功窣上限。                                        
TX Power Low Threshold(dBM)    光模块发送功率下限。

 

posted @ 2021-08-11 12:26  潇湘神剑  阅读(10331)  评论(0编辑  收藏  举报