![Cisco ASR 9000 Serie Configuration Manuals Download Page 48](http://html.mh-extra.com/html/cisco/asr-9000-serie/asr-9000-serie_configuration-manuals_66679048.webp)
The purpose of configuring SNMP trap correlation rules is to define the correlation rules or non-correlation
rules and apply them to specific trap destinations.
SUMMARY STEPS
1.
configure
2.
snmp-server correlator rule rule_name
{
nonrootcause trap trap_oid varbind vbind_OID
{
index
|
value
}
regex line
|
rootcause trap trap_oid varbind vbind_OID
{
index | value
}
regex line
|
timeout
}
3.
commit
DETAILED STEPS
Purpose
Command or Action
configure
Step 1
Configures a SNMP correlation rule. You can specify the numeric
rootcause trap OID or non-rootcause trap matching definitions.
snmp-server correlator rule rule_name
{
nonrootcause trap trap_oid varbind vbind_OID
Step 2
{
index
|
value
}
regex line
|
rootcause trap
•
Specifies a numeric non-rootcause trap OID and, optionally, one
or more numeric varbinds specific to the non-rootcause trap that
trap_oid varbind vbind_OID
{
index | value
}
regex line
|
timeout
}
must ALL also be matched to have found a valid non-rootcause
Example:
RP/0/RSP0/CPU0:router(config)#
for this rule. The POSIX regexp specifies a regular expression that
the value that the vbind index or value must match.
•
Specifies a numeric rootcause trap OID and, optionally, one or
more numeric varbinds specific to the rootcause trap that must
snmp-server correlator rule test
rootcause A
varbind A1 value regex RA1
ALL also be matched to have found a valid rootcause for this rule.
varbind A2 index regex RA2
The POSIX regexp specifies a regular expression that the vbind
index or value must match.
timeout 5000
nonrootcause
trap B
varbind B1 index regex RB1
You can specify the timeout for detection of a correlation after
receipt of first rootcause or non-rootcause in this specified rule.
The range is from 1 to 600000 milliseconds.
Note
All OID values for traps and varbinds are verified and rejected,
if they do not match valid OIDs supported by IOS XR.
Note
varbind B2 value regex RB2
trap C
varbind C1 value regex RC1
varbind C2 value regex RC2
commit
Step 3
Applying SNMP Correlation Rules
The purpose of this task is to apply the SNMP trap correlation rules to specific trap destinations.
Cisco ASR 9000 Series Aggregation Services Router System Monitoring Configuration Guide, Release 4.2.x
32
Implementing and Monitoring Alarms and Alarm Log Correlation
Applying SNMP Correlation Rules