ieee8021SpanningTreePortPathCost
IEEE8021-SPANNING-TREE-MIB ·
.1.3.111.2.802.1.1.3.1.2.1.6
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. Table 13-4 recommends defaults and ranges
for Port Path Cost values, in inverse proportion
to the speed of the attached LAN. If this object is used
to set the Path Cost it is possible to restore the
default setting using the
ieee8021SpanningTreeRstpPortAdminPathCost object.
Table 13-4 recommends defaults and ranges for Port
Path Cost values, in inverse proportion to the speed of the
attached LAN. If this object is used to set the Path
Cost it is possible to restore the default
setting using the ieee8021MstpPortAdminPathCost object.
The value of this object MUST be retained across
reinitializations of the management system.
Context
- MIB
- IEEE8021-SPANNING-TREE-MIB
- OID
.1.3.111.2.802.1.1.3.1.2.1.6- Type
- column
- Access
- readwrite
- Status
- current
- Parent
- ieee8021SpanningTreePortEntry
- 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 'IEEE8021-SPANNING-TREE-MIB' -M '/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'IEEE8021-SPANNING-TREE-MIB::ieee8021SpanningTreePortPathCost'
More examples
Read one indexed instance
/usr/bin/snmpget -v2c -c '<community>' -Pud -Ir -OQUv -m 'IEEE8021-SPANNING-TREE-MIB' -M '/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'IEEE8021-SPANNING-TREE-MIB::ieee8021SpanningTreePortPathCost.<ieee8021SpanningTreePortComponentId>.<ieee8021SpanningTreePort>'
Translate to a numeric OID
/usr/bin/snmptranslate -Pud -Ir -On -m 'IEEE8021-SPANNING-TREE-MIB' -M '/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'IEEE8021-SPANNING-TREE-MIB::ieee8021SpanningTreePortPathCost'
Syntax
Integer32
Values & Constraints
Object Constraints
range: 1-200000000
Conformance
Member of