hwdot1dStpPortBlockedReason
HUAWEI-LswRSTP-MIB ·
.1.3.6.1.4.1.2011.2.23.1.6.1.5.1.16
Object
column Enumeration
Record the block reason of the port. notBlock (1) means that the port is not in block state,. blockForProtocol (2) means that the port is blocked by stp protocol to avoid loop. blockForRootGuard(3) means that the root guard flag of bridge is set and a better message received from the port,and the port is blocked. blockForBPDUGuard(4) means that the port has been configured as an edge port and receive a BPDU and thus blocked. blockForLoopGuard(5) means that the port is blocked for loopguarded.
Context
- MIB
- HUAWEI-LswRSTP-MIB
- OID
.1.3.6.1.4.1.2011.2.23.1.6.1.5.1.16- Type
- column
- Access
- readonly
- 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-LswRSTP-MIB' -M '/opt/observium/mibs/h3c:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'HUAWEI-LswRSTP-MIB::hwdot1dStpPortBlockedReason'
More examples
Read one indexed instance
/usr/bin/snmpget -v2c -c '<community>' -Pud -Ir -OQUv -m 'HUAWEI-LswRSTP-MIB' -M '/opt/observium/mibs/h3c:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'HUAWEI-LswRSTP-MIB::hwdot1dStpPortBlockedReason.<index>'
Translate to a numeric OID
/usr/bin/snmptranslate -Pud -Ir -On -m 'HUAWEI-LswRSTP-MIB' -M '/opt/observium/mibs/h3c:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'HUAWEI-LswRSTP-MIB::hwdot1dStpPortBlockedReason'
Syntax
Enumeration
Values & Constraints
Enumerated Values
1 | notBlock |
2 | blockForProtocol |
3 | blockForRootGuard |
4 | blockForBPDUGuard |
5 | blockForLoopGuard |