drStaticCidrMetric1
CROUTE-MIB ·
.1.3.6.1.4.1.81.31.7.1.1.8
Object
column r/w
Integer32
Equivalent to ipCidrRouteMetric1. The primary routing metric for this route. The semantics of this metric are determined by the routing-protocol specified in the route's drStaticCidrProto value. If this metric is not used, its value should be set to -1.
Context
- MIB
- CROUTE-MIB
- OID
.1.3.6.1.4.1.81.31.7.1.1.8- 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::drStaticCidrMetric1'
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::drStaticCidrMetric1.<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::drStaticCidrMetric1'
Syntax
Integer32
Values & Constraints
Object Constraints
range: -2147483648-2147483647