routePreference
CORIANT-GROOVE-MIB ·
.1.3.6.1.4.1.42229.1.2.6.17.1.1.4
Object
column SNMPv2-SMIUnsigned32
This route attribute, also known as administrative distance, allows for selecting the preferred route among routes with the same destination prefix. A smaller value means a more preferred route.
Context
- MIB
- CORIANT-GROOVE-MIB
- OID
.1.3.6.1.4.1.42229.1.2.6.17.1.1.4- Type
- column
- Access
- readonly
- Status
- current
- Parent
- routeEntry
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 'CORIANT-GROOVE-MIB' -M '/opt/observium/mibs/coriant:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'CORIANT-GROOVE-MIB::routePreference'
More examples
Read one indexed instance
/usr/bin/snmpget -v2c -c '<community>' -Pud -Ir -OQUv -m 'CORIANT-GROOVE-MIB' -M '/opt/observium/mibs/coriant:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'CORIANT-GROOVE-MIB::routePreference.<ribName>.<routeSourceProtocol>.<routeDestinationPrefix>'
Translate to a numeric OID
/usr/bin/snmptranslate -Pud -Ir -On -m 'CORIANT-GROOVE-MIB' -M '/opt/observium/mibs/coriant:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'CORIANT-GROOVE-MIB::routePreference'
Syntax
- Source
- SNMPv2-SMIUnsigned32
- Base type
Unsigned32
Values & Constraints
Type Constraints
range: 0..4294967295