snmpOIDComparator
DLM-MIB ·
.1.3.6.1.4.1.52.4.2.1.2.1.5
Object
column mandatory
r/w
Enumeration
Indicates the type of comparison to be performed on the value portion of the OID being polled. This comparator will be used to compare the OID value with the threshold value defined in this entry. A value of 'dont-compare' causes no comparison to be performed. Comparison failures will trigger an alarm condition.
Context
- MIB
- DLM-MIB
- OID
.1.3.6.1.4.1.52.4.2.1.2.1.5- Type
- column
- Access
- readwrite
- Status
- mandatory
- Parent
- snmpOIDEntry
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 'DLM-MIB' -M '/opt/observium/mibs/cabletron:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'DLM-MIB::snmpOIDComparator'
More examples
Read one indexed instance
/usr/bin/snmpget -v2c -c '<community>' -Pud -Ir -OQUv -m 'DLM-MIB' -M '/opt/observium/mibs/cabletron:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'DLM-MIB::snmpOIDComparator.<snmpOIDDestination>.<snmpOIDOwner>.<snmpOIDSequence>'
Translate to a numeric OID
/usr/bin/snmptranslate -Pud -Ir -On -m 'DLM-MIB' -M '/opt/observium/mibs/cabletron:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'DLM-MIB::snmpOIDComparator'
Syntax
Enumeration
Values & Constraints
Enumerated Values
1 | equal |
2 | greater |
3 | less |
4 | greater-or-equal |
5 | less-or-equal |
6 | trap-always |
7 | dont-compare |
8 | not-equal |