tpStpPortExPathCost
TPLINK-SPANNING-TREE-MIB ·
.1.3.6.1.4.1.11863.6.21.1.2.1.1.4
Object
column r/w
Integer32
ExPath Cost is used to choose the path and calculate the path costs of ports in different MST regions. It is an important criterion on determining the root port. The lower value has the higher priority. automatic when value is zero. Make sure that Path Cost ranges from 0 to 2000000.
Context
- MIB
- TPLINK-SPANNING-TREE-MIB
- OID
.1.3.6.1.4.1.11863.6.21.1.2.1.1.4- Type
- column
- Access
- readwrite
- Status
- current
- Parent
- tpStpPortConfigEntry
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 'TPLINK-SPANNING-TREE-MIB' -M '/opt/observium/mibs/tplink:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'TPLINK-SPANNING-TREE-MIB::tpStpPortExPathCost'
More examples
Read one indexed instance
/usr/bin/snmpget -v2c -c '<community>' -Pud -Ir -OQUv -m 'TPLINK-SPANNING-TREE-MIB' -M '/opt/observium/mibs/tplink:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'TPLINK-SPANNING-TREE-MIB::tpStpPortExPathCost.<ifIndex>'
Translate to a numeric OID
/usr/bin/snmptranslate -Pud -Ir -On -m 'TPLINK-SPANNING-TREE-MIB' -M '/opt/observium/mibs/tplink:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'TPLINK-SPANNING-TREE-MIB::tpStpPortExPathCost'
Syntax
Integer32
Values & Constraints
Object Constraints
range: 0-2000000