HUAWEI-MSTP-MIB :: hwMstpiPortPriority

MIB Reference — IPNetwork Monitor · Updated October 05, 2026

All MIBs › HUAWEI-MSTP-MIB › hwMstpiPortPriority

hwMstpiPortPriority

Module: HUAWEI-MSTP-MIB

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

OID (numeric): 1.3.6.1.4.1.2011.5.25.42.4.1.20.1.3

Node type: OBJECT-TYPE

Type: Integer32

Access: read-write

Description: The value of the priority field which is contained in the first (in network byte order) four bits of the (2 octet long) Port ID. The other octet of the Port ID is given by the value of mstiPortIndex. And step of 16. It is the priority of the port in the multiple spanning tree instance, and it can be used to determine the role of the port in the multiple spanning tree.

What is hwMstpiPortPriority?

Sets this port's priority within the given spanning-tree instance, in steps of 16, forming the high-order bits of the port's two-octet Port ID (the port index makes up the rest). A lower priority value makes this port more likely to be selected as the instance's designated or root port when costs are otherwise tied. The default priority is 128.

Examples

Walk all instances (SNMPv2c):

snmpwalk -v2c -c public <target> 1.3.6.1.4.1.2011.5.25.42.4.1.20.1.3
snmpwalk -v2c -c public <target> HUAWEI-MSTP-MIB::hwMstpiPortPriority

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.3.1
snmpget -v2c -c public <target> HUAWEI-MSTP-MIB::hwMstpiPortPriority.1

Set instance 1 (SNMPv2c):

snmpset -v2c -c private <target> 1.3.6.1.4.1.2011.5.25.42.4.1.20.1.3.1 i <value>

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::hwMstpiPortPriority 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.3hwMstpiPortPriorityHUAWEI-MSTP-MIB