hwdot1dSetStpDefaultPortCost
HUAWEI-RSTP-EXT-MIB ·
.1.3.6.1.4.1.2011.5.21.1.5.1.6
Object
column r/w
Enumeration
come back to default path cost of specified port, The path cost of Ethernet port is related to its link speed. The higher the link speed is, the lower the path cost should be configured. When this parameter is set to the default value, RSTP can automatically detect the link speed on the current Ethernet port and transform it to corresponding path cost. Options: 1. enable(1) -indicates default path cost of specified port is enabled
Context
- MIB
- HUAWEI-RSTP-EXT-MIB
- OID
.1.3.6.1.4.1.2011.5.21.1.5.1.6- Type
- column
- Access
- readwrite
- Status
- current
- Parent
- hwdot1dStpPortXEntry
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-RSTP-EXT-MIB' -M '/opt/observium/mibs/huawei:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'HUAWEI-RSTP-EXT-MIB::hwdot1dSetStpDefaultPortCost'
More examples
Read one indexed instance
/usr/bin/snmpget -v2c -c '<community>' -Pud -Ir -OQUv -m 'HUAWEI-RSTP-EXT-MIB' -M '/opt/observium/mibs/huawei:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'HUAWEI-RSTP-EXT-MIB::hwdot1dSetStpDefaultPortCost.<index>'
Translate to a numeric OID
/usr/bin/snmptranslate -Pud -Ir -On -m 'HUAWEI-RSTP-EXT-MIB' -M '/opt/observium/mibs/huawei:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'HUAWEI-RSTP-EXT-MIB::hwdot1dSetStpDefaultPortCost'
Syntax
Enumeration
Values & Constraints
Enumerated Values
1 | enable |