drStaticCidrType
CROUTE-MIB ·
.1.3.6.1.4.1.81.31.7.1.1.7
Object
column r/w
Enumeration
Equivalent to ipCidrRouteType. The type of route. Note that local(3) refers to a route for which the next hop is the final destination; remote(4) refers to a route for which the next hop is not the final destina- tion. reject (2) refers to a route which, if matched, discards the message as unreachable. This is used in some protocols as a means of correctly aggregating routes.
Context
- MIB
- CROUTE-MIB
- OID
.1.3.6.1.4.1.81.31.7.1.1.7- Type
- column
- Access
- readwrite
- Status
- current
- Parent
- drStaticCidrEntry
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 'CROUTE-MIB' -M '/opt/observium/mibs/avaya:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'CROUTE-MIB::drStaticCidrType'
More examples
Read one indexed instance
/usr/bin/snmpget -v2c -c '<community>' -Pud -Ir -OQUv -m 'CROUTE-MIB' -M '/opt/observium/mibs/avaya:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'CROUTE-MIB::drStaticCidrType.<drStaticCidrEntID>.<drStaticCidrDest>.<drStaticCidrMask>.<drStaticCidrTos>.<drStaticCidrNextHop>'
Translate to a numeric OID
/usr/bin/snmptranslate -Pud -Ir -On -m 'CROUTE-MIB' -M '/opt/observium/mibs/avaya:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'CROUTE-MIB::drStaticCidrType'
Syntax
Enumeration
Values & Constraints
Enumerated Values
1 | other |
2 | reject |
3 | local |
4 | remote |