暂无图片
暂无图片
1
暂无图片
暂无图片
暂无图片

NE路由器V8告警详解

原创 愤怒的蜗牛 2022-11-26
929

一、查看告警:
1、查看当前所有活动的硬件告警,包含发送和不发送trap的硬件告警。

[~HUAWEI] display alarm all/hardware   all=hardware 
2、查看当前所有能发trap的活动告警,包括硬件告警和业务告警。

[~HUAWEI] display alarm active 
3、查看所有历史active告警信息(active告警恢复后显示)

[~HUAWEI] display alarm history 

 

总结:
all/hardware    硬件告警:包含发 和 不发trap告警
active               硬件和业务告警:一定发trap告警,all(hardware)和active有重复硬件告警但又不全包含
history             active 和 history是对应的,active告警恢复后显示。

 

二、清除告警:

NE路由器当板卡有红灯告警时,说明设备已经产生告警,但是经常遇到清除告警后仍然显示红灯的情况,大多是因为没有正确的清除告警。

 

1、清除 all/hardware 硬件告警

<HUAWEI> clear alarm hardware all send-trap

2、清除 active 硬件和业务告警

[~HUAWEI] alarm
[~HUAWEI-alarm] clear alarm active all

 

三、配置发送给网管的trap告警类型
[~HUAWEI] snmp-agent trap type dc-trap/base-trap/entity-trap  
区别:dc-trap      对应  HUAWEI-DC-TRAP-MIB  

          base-trap   对应  HUAWEI-BASE-TRAP-MIB
          entity-trap  对应 HUAWEI-ENTITY-TRAP-MIB .
 

(1)trap类型区别:
dc-trap 提供的告警信息种类和数量较少,V8版本基本取消,不推荐,当遇到收到告警类型少时注意确认
base-trap 提供的告警信息详细具体。
entity-trap 比base-trap更加丰富。

 

以接口UP/DOWN为例对比base和entity trap:
 

base-trap: 
接口UP:无 hwPortPhysicalUp
接口DOWN:Nov 25 2022 13:03:31+08:00 HUAWEI %%01PIC/1/hwPortPhysicalDown(t):CID=0x80fc04b9-OID=1.3.6.1.4.1.2011.5.25.129.2.5.1;The status of the physical interface is Down. (BaseTrapSeverity=3, BaseTrapProbableCause=74752,BaseTrapEventType=5,EntityPhysicalIndex=16847116,EntPhysicalName=GigabitEthernet1/0/11, ReasonDescription=The status of the physical interface is Down.)

 

entity-trap:
接口UP:Nov 25 2022 13:17:03+08:00 HUAWEI  %%01PIC/1/hwPortUp(t):CID=0x80fc04b9 OID=1.3.6.1.4.1.2011.5.25.219.2.12.2;The status of the physical interface is Up.(EntityPhysicalIndex=16847116, EntPhysicalIndex=16847116, EntPhysicalName=GigabitEthernet1/0/11, EntityTrapFaultID=144384, ReasonDescription=The status of the physical interface is Up.)
接口DOWN:Nov 25 2022 13:18:29+08:00 HUAWEI  %%01PIC/1/hwPortDown(t):CID=0x80fc04b9-OID=1.3.6.1.4.1.2011.5.25.219.2.12.1;The status of the physical interface is Down.(EntityPhysicalIndex=16847116, EntPhysicalIndex=16847116, EntPhysicalName=GigabitEthernet1/0/11, EntityTrapFaultID=144384, ReasonDescription=The status of the physical interface is Down.)

 

(2)查看设备trap类型支持情况
①通过命令 snmp-agent trap type 确认支持情况
②不支持配置的,诊断视图下命令确认trap类型:
[HUAWEI-diagnose]display configuration data running table-data SysTrapInfoCfg

Field(0)         Field(1)         Field(2)         Field(3)         Field(4)         Field(5)         Field(6)
validflag        index           sysTrapType      iid              lifeCycle        visibleVR        visibleLR
0xffffffff         0x1                0x1                  0x1              0x0              0xffffffff       0xffffffff

sysTrapType值:1表示base-trap,2表示dc-trap,4表示entity-trap

 

2、模拟告警的产生和清除
[~HUAWEI-diagnose] simulate  alarm-name AIS alarm-state start/end   
3、查看告警name和告警ID
[~HUAWEI] display alarm information name AIS   
4、过滤告警 ID/模块,告警ID不是OID
[~HUAWEI] info-center filter-id  ********   

 

模拟、查看、过滤告警的综合应用举例

文档以模块举例,这里以告警ID来举例,需要注意过滤的告警ID不是OID。

①模拟、查看告警
[~HUAWEI-diagnose] simulate  alarm-name AIS alarm-state start
[~HUAWEI-diagnose] simulate  alarm-name AIS alarm-state end
[~HUAWEI] display trapbuffer

Nov 25 2022 09:05:07+08:00 HUAWEI %%01EOAM-Y1731/4/hwY1731AisDefectAlarmRecovery(t):CID=0x80e70446-OID=1.3.6.1.4.1.2011.5.25.136.1.6.31;MEP exits AIS defect condition. (MdIndex=0, MaIndex=0, MdName=SimulateStringData, MaName=SimulateStringData, MepID=0)
Nov 25 2022 09:05:01+08:00 HUAWEI  %%01EOAM-Y1731/4/hwY1731AisDefectAlarm(t):CID=0x80e70446-OID=1.3.6.1.4.1.2011.5.25.136.1.6.30;MEP enters AIS defect condition. (MdIndex=0, MaIndex=0, MdName=SimulateStringData, MaName=SimulateStringData, MepID=0)

 

②查看告警ID
[~HUAWEI] display trapbuffer]display alarm information name AIS
------------------------------------------------------------------------------------------
Feature             : EOAM-Y1731
AlarmName           : AIS
AlarmId             : 0x9AC2020            //注意这里是16进制,过滤时需要转换为十进制,0x9AC2020->162275360
Severity            : Warning
Cause suppress time : 0
Clear suppress time : 0

 

③通过告警ID过滤
[~HUAWEI] info-center filter-id 162275360      

[~HUAWEI] display trapbuffer  确认看不到AIS最新的告警信息
 

「喜欢这篇文章,您的关注和赞赏是给作者最好的鼓励」
关注作者
【版权声明】本文为墨天轮用户原创内容,转载时必须标注文章的来源(墨天轮),文章链接,文章作者等基本信息,否则作者和墨天轮有权追究责任。如果您发现墨天轮中有涉嫌抄袭或者侵权的内容,欢迎发送邮件至:contact@modb.pro进行举报,并提供相关证据,一经查实,墨天轮将立刻删除相关内容。

评论