rtmStaticRtPathCost
DC-RTM-MIB ·
.1.3.6.1.4.1.629.10.7.1.3.1.17
Object
Path cost for this static route, if overriding the default
setting. This field is not used if rtmStaticRtUsePathCost
is set to AMB_FALSE.
When deciding which path for a given route should be marked as
active, the administrative distance is considered first. If
multiple paths have the same administrative distance, the path
with the lowest path cost is chosen as the active path. If
multiple paths have the same path cost, one or more paths may
be marked as active depending on the value of
rtmEntityEqlCostOpt.
Context
- MIB
- DC-RTM-MIB
- OID
.1.3.6.1.4.1.629.10.7.1.3.1.17- Type
- column
- Access
- readwrite
- Status
- current
- Parent
- rtmStaticRtEntry
- Groups
- 1
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 'DC-RTM-MIB' -M '/opt/observium/mibs/mrv:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'DC-RTM-MIB::rtmStaticRtPathCost'
More examples
Read one indexed instance
/usr/bin/snmpget -v2c -c '<community>' -Pud -Ir -OQUv -m 'DC-RTM-MIB' -M '/opt/observium/mibs/mrv:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'DC-RTM-MIB::rtmStaticRtPathCost.<rtmStaticRtFteIndex>.<rtmStaticRtDestAddrType>.<rtmStaticRtDestAddr>.<rtmStaticRtDestLen>.<rtmStaticRtNextHopType>.<rtmStaticRtNextHop>.<rtmStaticRtIfIndex>'
Translate to a numeric OID
/usr/bin/snmptranslate -Pud -Ir -On -m 'DC-RTM-MIB' -M '/opt/observium/mibs/mrv:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'DC-RTM-MIB::rtmStaticRtPathCost'
Syntax
- Source
- SNMPv2-SMIUnsigned32
- Base type
Unsigned32
Values & Constraints
Type Constraints
range: 0..4294967295
Conformance
Member of