ccmAlertGroupPattern
CISCO-CALLHOME-MIB ·
.1.3.6.1.4.1.9.9.300.1.1.30.4.1.1
Object
column OctetString
The object contains a regular expression.
Regular Expressions:
-------------------
A regular expression is a pattern (a phrase, number, or more
complex pattern):
Regular expressions are case sensitive and allow for complex
matching requirements. Simple regular expressions include
entries like Serial, misses, or 138.
Complex regular expressions include entries like 00210... ,
(is ), or [Oo]utput.
Some Practical examples of regular expressions:
----------------------------------------------
The examples correspond with the various ways that you can
use regular expressions in your configurations.
For example, syslog messages on IOS look as follows:
a.
--
2004 Jul 21 13:26:55 %SYS-5-REDUNDANTCLOCK_OK: Redundant
clock recovered
b.
--
2004 Jul 21 13:26:59 %SYS-5-REDUNDANTCLOCK_FAIL: Redundant
clock failed
c.
--
2004 Jul 26 16:53:47 %MGMT-5-LOGIN_FAIL:User failed to log
in from 171.69.48.75 via Telnet - max attempt reached
A pattern of REDUNDANTCLOCK.* would cause all the syslogs
with severity greater than specified by
ccmProfileAlertGroupSeverity
and having a pattern REDUNDANTCLOCK followed by
REDUNDANTCLOCK followed by any number of occurrences (*)
of any character (.) resulting in corresponding Call Home
messages being generated for syslog alert group.
So both messages a and b in above examples will be resulting
in issuance of Call Home messages for the pattern
REDUNDANTCLOCK.*.
Next, a pattern of ^Telnet would cause all the syslogs
with severity greater than specified by
ccmProfileAlertGroupSeverity and having a string starting
and with Telnet resulting in corresponding Call Home
messages being generated for syslog alert group.
A pattern of LOGIN_FAIL$ would cause all the syslogs with
severity greater than specified by
ccmProfileAlertGroupSeverity and having a string ending in
LOGIN_FAIL resulting in corresponding Call Home messages
being generated for syslog alert group.
Context
- MIB
- CISCO-CALLHOME-MIB
- OID
.1.3.6.1.4.1.9.9.300.1.1.30.4.1.1- Type
- column
- Access
- noaccess
- Status
- current
- Parent
- ccmPatternAlertGroupEntry
Net-SNMP examples
How SNMP and these commands workWalk the column to discover its indexed instances, or supply every index to read one instance.
Walk the column
/usr/bin/snmpbulkwalk -v2c -c '<community>' -Pud -Ir -OQUs -m 'CISCO-CALLHOME-MIB' -M '/opt/observium/mibs/cisco:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'CISCO-CALLHOME-MIB::ccmAlertGroupPattern'
More examples
Read one indexed instance
/usr/bin/snmpget -v2c -c '<community>' -Pud -Ir -OQUv -m 'CISCO-CALLHOME-MIB' -M '/opt/observium/mibs/cisco:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'CISCO-CALLHOME-MIB::ccmAlertGroupPattern.<callHomeDestProfileName>.<callHomeAlertGroupTypeIndex>.<ccmAlertGroupPattern>'
Translate to a numeric OID
/usr/bin/snmptranslate -Pud -Ir -On -m 'CISCO-CALLHOME-MIB' -M '/opt/observium/mibs/cisco:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'CISCO-CALLHOME-MIB::ccmAlertGroupPattern'
Syntax
OctetString
Values & Constraints
Object Constraints
range: 1-80