hwMstpProNewPortStpDefaultPortCost
HUAWEI-MSTP-MIB ·
.1.3.6.1.4.1.2011.5.25.42.4.1.29.1.21
Object
column r/w
Enumeration
The value of this object identifies the default path cost of the port where the MSTI is configured: The value can be: 1: reset When you perform SET operation to this object, the value can be reset only. 65535: unused When you perform GET operation to this object, the value of this object is unused. By default, the path cost value of the port on each MSTI is calculated on the basis of the port speed.
Context
- MIB
- HUAWEI-MSTP-MIB
- OID
.1.3.6.1.4.1.2011.5.25.42.4.1.29.1.21- Type
- column
- Access
- readwrite
- Status
- current
- Parent
- hwMstpProNewPortEntry
- 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 'HUAWEI-MSTP-MIB' -M '/opt/observium/mibs/huawei:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'HUAWEI-MSTP-MIB::hwMstpProNewPortStpDefaultPortCost'
More examples
Read one indexed instance
/usr/bin/snmpget -v2c -c '<community>' -Pud -Ir -OQUv -m 'HUAWEI-MSTP-MIB' -M '/opt/observium/mibs/huawei:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'HUAWEI-MSTP-MIB::hwMstpProNewPortStpDefaultPortCost.<hwMstpProID>.<hwMstpInstanceID>.<hwMstpPortId1>.<hwMstpPortId2>.<hwMstpPortId3>.<hwMstpPortId4>.<hwMstpPortIdFlag>'
Translate to a numeric OID
/usr/bin/snmptranslate -Pud -Ir -On -m 'HUAWEI-MSTP-MIB' -M '/opt/observium/mibs/huawei:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'HUAWEI-MSTP-MIB::hwMstpProNewPortStpDefaultPortCost'
Syntax
Enumeration
Values & Constraints
No enumerated values or constraints recorded.
Conformance
Member of