Procedure
Step 1 Configure an SNMPv3 user and an alarm host.
For details, see SNMP Configuration.
Step 2 Set the severity level for the linkDown alarm to major.
<Huawei> system-view
[Huawei] alarm
[Huawei-alarm] alarm-name linkDown severity major
Step 3 Configure the linkDown alarm to be reported to the NMS 5 seconds after it is generated.
[Huawei-alarm] delay-suppression enable
[Huawei-alarm] suppression alarm-name linkDown cause-period 5
Step 4 Configure alarm filtering on Ethernet 1/0/0.
[Huawei] alarm
[Huawei-alarm] correlation-analyze enable
[Huawei-alarm] mask interface ethernet 1/0/0
Step 5 Verify the configuration.
After the preceding configurations, run the following commands to view alarm information.
<Huawei> display alarm information name linkdown
**********************************
AlarmName: linkDown
AlarmType: Alarm
AlarmLevel: Major
Suppress Period: 5s
CauseAlarmName: NA
Match VB Name: ifIndex ifAdminStatus
**********************************
Information about the linkDown alarm is displayed.
<Huawei> display alarm active
A/B/C/D/E/F/G/H/I/J
A=Sequence, B=RootKindFlag(Independent|RootCause|nonRootCause)
C=Generating time, D=Clearing time
E=ID, F=Name, G=Level, H=State
I=Description information for locating(Para info, Reason info)
J=RootCause alarm sequence(Only for nonRootCause alarm)
2/RootCause/2010-9-1 14:53:8/-/0x502001/linkDown/Critical/Start/OID 1.3.6.1.6.
3.1.1.5.3 Interface 5 turned into DOWN state.
3/nonRootCause/2010-9-1 14:53:8/-/0x701d2000/hwOspfv3IfStateChange/Major/Start
/OID 1.3.6.1.4.1.2011.5.25.147.0.8 The status of the non-virtual interface has c
hanged. (IfIndex=5, InstanceId=0, RouterId=185273099, IfState=1, ChgReason=8, If
Name=Ethernet0/0/1)/RootCauseSequence:(2)
4/nonRootCause/2010-9-1 14:53:8/-/0x701d2002/hwOspfv3NbrStateChange/Major/Star
t/OID 1.3.6.1.4.1.2011.5.25.147.0.2 The status of the non-virtual neighbor has c
hanged. (IfIndex=5, InstanceId=0, NbrRouterId=16843009, RouterId=185273099, NbrS
tate=1, ChgReason=12, IfName=Ethernet0/0/1)/RootCauseSequence:(3)
The preceding information shows that linkDown is the root-cause alarm and
hwOspfv3IfStateChange is a non-root-cause alarm.
----End
Configuration Files
#
sysname Huawei
#
snmp-agent
Huawei AR150&200 Series Enterprise Routers
Configuration Guide - Device Management 7 Fault Management
Issue 02 (2012-03-30) Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
122