TPLINK-SPANNING-TREE-MIB :: tpStpPortRole

MIB Reference — IPNetwork Monitor · Updated September 14, 2026

All MIBsTPLINK-SPANNING-TREE-MIBtpStpPortRole

tpStpPortRole

Module: TPLINK-SPANNING-TREE-MIB

OID (symbolic): TPLINK-SPANNING-TREE-MIB::tpStpPortRole

OID (numeric): 1.3.6.1.4.1.11863.6.21.1.2.1.1.10

Node type: OBJECT-TYPE

Type: INTEGER

Access: read-only

Description: Displays the role of the port played in the STP Instance. 1.Disable:Indicates the port that is not participating in the STP. 2.Alternate:Indicates the port that can be a backup port of a root or master port. 3.Backup:Indicates the port that is the backup port of a designated port. 4.Designated:Indicates the port that forwards packets to a downstream network segment or switch. 5.root:Indicates the port that has the lowest path cost from this bridge to the Root Bridge and forwards packets to the root. 6.Master:Indicates the port that connects a MST region to the common root. The path from the master port to the common root is the shortest path between this MST region and the common root.

What is tpStpPortRole?

Reports this port's role in the spanning tree: root (best path to the root), designated (forwards to a downstream segment), alternate (backup for a root/master port), backup (backup for a designated port), master (connects an MST region to the common root), disabled, or n-a.

Examples

Walk all instances (SNMPv2c):

snmpwalk -v2c -c public <target> 1.3.6.1.4.1.11863.6.21.1.2.1.1.10
snmpwalk -v2c -c public <target> TPLINK-SPANNING-TREE-MIB::tpStpPortRole

Get a specific instance (index 1):

snmpget -v2c -c public <target> 1.3.6.1.4.1.11863.6.21.1.2.1.1.10.1
snmpget -v2c -c public <target> TPLINK-SPANNING-TREE-MIB::tpStpPortRole.1

Start monitoring TP-Link managed switch (STP/RSTP/MSTP port role/state status) with a free 30-day trial of IPNetwork Monitor. Create custom SNMP monitor using the TPLINK-SPANNING-TREE-MIB::tpStpPortRole OID value, configure state conditions and alerts, and monitor any TP-Link managed switch (STP/RSTP/MSTP port role/state status) from a single console.

OID Breakdown

Upper-level ancestors (8 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.11863tplinkTPLINK-MIB
1.3.6.1.4.1.11863.6tplinkMgmtTPLINK-MIB
Numeric OIDNameModule
1.3.6.1.4.1.11863.6.21tplinkSpanningTreeMIBTPLINK-SPANNING-TREE-MIB
1.3.6.1.4.1.11863.6.21.1tplinkSpanningTreeMIBObjectsTPLINK-SPANNING-TREE-MIB
1.3.6.1.4.1.11863.6.21.1.2tpStpPortCfgTPLINK-SPANNING-TREE-MIB
1.3.6.1.4.1.11863.6.21.1.2.1tpStpPortConfigTableTPLINK-SPANNING-TREE-MIB
1.3.6.1.4.1.11863.6.21.1.2.1.1tpStpPortConfigEntryTPLINK-SPANNING-TREE-MIB
1.3.6.1.4.1.11863.6.21.1.2.1.1.10tpStpPortRoleTPLINK-SPANNING-TREE-MIB