HUAWEI-MSTP-MIB :: hwMstpiPortRole

MIB Reference — IPNetwork Monitor · Updated October 05, 2026

All MIBs › HUAWEI-MSTP-MIB › hwMstpiPortRole

hwMstpiPortRole

Module: HUAWEI-MSTP-MIB

OID (symbolic): HUAWEI-MSTP-MIB::hwMstpiPortRole

OID (numeric): 1.3.6.1.4.1.2011.5.25.42.4.1.20.1.33

Node type: OBJECT-TYPE

Type: INTEGER

Access: read-only

Description: Indicates the port role on a particular instance.

What is hwMstpiPortRole?

Reports the spanning-tree role this port currently holds for a given instance, such as root, designated, alternate, or backup. An admin uses this to understand why traffic is or isn't flowing through a particular port, since only root and designated ports actively forward.

Examples

Walk all instances (SNMPv2c):

snmpwalk -v2c -c public <target> 1.3.6.1.4.1.2011.5.25.42.4.1.20.1.33
snmpwalk -v2c -c public <target> HUAWEI-MSTP-MIB::hwMstpiPortRole

Get a specific instance (index 1):

snmpget -v2c -c public <target> 1.3.6.1.4.1.2011.5.25.42.4.1.20.1.33.1
snmpget -v2c -c public <target> HUAWEI-MSTP-MIB::hwMstpiPortRole.1

Start monitoring Huawei enterprise or carrier switch/bridge (Multiple Spanning Tree Protocol) with a free 30-day trial of IPNetwork Monitor. Create custom SNMP monitor using the HUAWEI-MSTP-MIB::hwMstpiPortRole OID value, configure state conditions and alerts, and monitor any Huawei enterprise or carrier switch/bridge (Multiple Spanning Tree Protocol) from a single console.

OID Breakdown

Upper-level ancestors (14 from the standard OID tree / other modules)
Numeric OIDNameModule
1isoLANART-AGENT
1.3orgAirPair-MIB
1.3.6dodAirPair-MIB
1.3.6.1internetAirPair-MIB
1.3.6.1.4privateAirPair-MIB
1.3.6.1.4.1enterprisesAirPair-MIB
1.3.6.1.4.1.2011huaweiEXPERTV2-MIB
1.3.6.1.4.1.2011.5huaweiMgmtHUAWEI-3COM-OID-MIB
1.3.6.1.4.1.2011.5.25huaweiDatacommHUAWEI-3COM-OID-MIB
1.3.6.1.4.1.2011.5.25.42hwL2MgmtHUAWEI-IPDSLAM-MSTP-MIB
1.3.6.1.4.1.2011.5.25.42.4hwMstpHUAWEI-IPDSLAM-MSTP-MIB
1.3.6.1.4.1.2011.5.25.42.4.1hwMstpObjectsHUAWEI-IPDSLAM-MSTP-MIB
1.3.6.1.4.1.2011.5.25.42.4.1.20hwMstpPortTableHUAWEI-IPDSLAM-MSTP-MIB
1.3.6.1.4.1.2011.5.25.42.4.1.20.1hwMstpPortEntryHUAWEI-IPDSLAM-MSTP-MIB
Numeric OIDNameModule
1.3.6.1.4.1.2011.5.25.42.4.1.20.1.33hwMstpiPortRoleHUAWEI-MSTP-MIB