ethIfRstpPathCost
NETI-ETH-MIB ·
.1.3.6.1.4.1.2928.2.2.1.3.9.1.5
Object
column r/w
Integer32
The contribution of this port to the path cost of paths
towards the spanning tree root which include this port.
A value of zero (0) means that the path cost is
automatically calculated based on the port speed, as per
formula:
20,000,000 / min(ethIfInSpeed, ethIfOutSpeed)
Context
- MIB
- NETI-ETH-MIB
- OID
.1.3.6.1.4.1.2928.2.2.1.3.9.1.5- Type
- column
- Access
- readwrite
- Status
- current
- Parent
- ethIfRstpEntry
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 'NETI-ETH-MIB' -M '/opt/observium/mibs/netinsight:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'NETI-ETH-MIB::ethIfRstpPathCost'
More examples
Read one indexed instance
/usr/bin/snmpget -v2c -c '<community>' -Pud -Ir -OQUv -m 'NETI-ETH-MIB' -M '/opt/observium/mibs/netinsight:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'NETI-ETH-MIB::ethIfRstpPathCost.<ethDevIndex>.<ethIfIndex>'
Translate to a numeric OID
/usr/bin/snmptranslate -Pud -Ir -On -m 'NETI-ETH-MIB' -M '/opt/observium/mibs/netinsight:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'NETI-ETH-MIB::ethIfRstpPathCost'
Syntax
Integer32
Values & Constraints
Object Constraints
range: 0-200000000