hwMstpiStpDefaultPortCost
HUAWEI-MSTP-MIB ·
.1.3.6.1.4.1.2011.5.25.42.4.1.20.1.22
Object
column r/w
Enumeration
The value of this object identifies the default cost of the port. 1: reset When you perform SET operation to this object, the value can be reset only. 2: 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 the path cost corresponding to the port rate.
Context
- MIB
- HUAWEI-MSTP-MIB
- OID
.1.3.6.1.4.1.2011.5.25.42.4.1.20.1.22- Type
- column
- Access
- readwrite
- Status
- current
- Parent
- hwMstpPortEntry
- 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::hwMstpiStpDefaultPortCost'
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::hwMstpiStpDefaultPortCost.<hwMstpInstanceID>.<hwMstpiPortIndex>'
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::hwMstpiStpDefaultPortCost'
Syntax
Enumeration
Values & Constraints
No enumerated values or constraints recorded.
Conformance
Member of