snPortStpPathCost
HP-SN-SWITCH-GROUP-MIB ·
.1.3.6.1.4.1.11.2.3.7.11.12.1.3.5.1.1.4
Object
column r/w
Integer32
dot1dStpPortPathCost : The contribution of this port to the path cost of paths towards the spanning tree root which include this port. 802.1D-1990 recommends that the default value of this parameter be in inverse proportion to the speed of the attached LAN. Writing value zero to this object sets path cost to a default value which automatically changes according to port speed. Reading value zero indicates an unknown path cost value because port speed cannot be determined due to speed auto sense in progress.
Context
- MIB
- HP-SN-SWITCH-GROUP-MIB
- OID
.1.3.6.1.4.1.11.2.3.7.11.12.1.3.5.1.1.4- Type
- column
- Access
- readwrite
- Status
- current
- Parent
- snPortStpEntry
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 'HP-SN-SWITCH-GROUP-MIB' -M '/opt/observium/mibs/hp:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'HP-SN-SWITCH-GROUP-MIB::snPortStpPathCost'
More examples
Read one indexed instance
/usr/bin/snmpget -v2c -c '<community>' -Pud -Ir -OQUv -m 'HP-SN-SWITCH-GROUP-MIB' -M '/opt/observium/mibs/hp:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'HP-SN-SWITCH-GROUP-MIB::snPortStpPathCost.<snPortStpVLanId>.<snPortStpPortNum>'
Translate to a numeric OID
/usr/bin/snmptranslate -Pud -Ir -On -m 'HP-SN-SWITCH-GROUP-MIB' -M '/opt/observium/mibs/hp:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'HP-SN-SWITCH-GROUP-MIB::snPortStpPathCost'
Syntax
Integer32
Values & Constraints
Object Constraints
range: 0-65535