swL2StpPortAdminPathCost
DES3200-52-L2MGMT-MIB ·
.1.3.6.1.4.1.171.11.113.9.1.2.15.4.1.12
Object
column r/w
Unsigned32
The administratively assigned value for the contribution
of this port to the path cost of paths towards the spanning
tree root.
Writing a value of '0' assigns the automatically calculated
default Path Cost value to the port. If the default Path
Cost is being used, this object returns '0' when read.
This complements the object swL2StpPortPathCost, which
returns the operational value of the path cost.
Context
- MIB
- DES3200-52-L2MGMT-MIB
- OID
.1.3.6.1.4.1.171.11.113.9.1.2.15.4.1.12- Type
- column
- Access
- readwrite
- Status
- current
- Parent
- swL2StpPortEntry
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 'DES3200-52-L2MGMT-MIB' -M '/opt/observium/mibs/d-link:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'DES3200-52-L2MGMT-MIB::swL2StpPortAdminPathCost'
More examples
Read one indexed instance
/usr/bin/snmpget -v2c -c '<community>' -Pud -Ir -OQUv -m 'DES3200-52-L2MGMT-MIB' -M '/opt/observium/mibs/d-link:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'DES3200-52-L2MGMT-MIB::swL2StpPortAdminPathCost.<swL2StpPort>'
Translate to a numeric OID
/usr/bin/snmptranslate -Pud -Ir -On -m 'DES3200-52-L2MGMT-MIB' -M '/opt/observium/mibs/d-link:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'DES3200-52-L2MGMT-MIB::swL2StpPortAdminPathCost'
Syntax
Unsigned32
Values & Constraints
Object Constraints
range: 0-200000000