All MIBs › MSTP-MIB › swMSTPMstPortRole
swMSTPMstPortRole
Module: MSTP-MIB
OID (symbolic): MSTP-MIB::swMSTPMstPortRole
OID (numeric): 1.3.6.1.4.1.171.12.15.2.5.1.7
Node type: OBJECT-TYPE
Type: INTEGER
Access: read-only
Description: When the port Enable state is enabled, the port's current port role as defined by application of the Spanning Tree Protocol. If the Port Enable state is disabled, the the port role will be nonstp(5)
What is swMSTPMstPortRole?
This read-only value reports this port's current MSTP role for this instance: values include root(3), designated(4), alternate(1), backup(2), master(5), loopback(7), or nonstp(6) if the port's STP enable state is disabled. Admins use this to understand why a port is or isn't forwarding traffic for a specific instance, e.g. an alternate role means it's a standby path being blocked.
Examples
Walk all instances (SNMPv2c):
snmpwalk -v2c -c public <target> 1.3.6.1.4.1.171.12.15.2.5.1.7 snmpwalk -v2c -c public <target> MSTP-MIB::swMSTPMstPortRole
Get a specific instance (index 1):
snmpget -v2c -c public <target> 1.3.6.1.4.1.171.12.15.2.5.1.7.1 snmpget -v2c -c public <target> MSTP-MIB::swMSTPMstPortRole.1
Start monitoring Enterprise/data-center Ethernet switches with a free 30-day trial of IPNetwork Monitor. Create custom SNMP monitor using the MSTP-MIB::swMSTPMstPortRole OID value, configure state conditions and alerts, and monitor any Enterprise/data-center Ethernet switches from a single console.
OID Breakdown
Upper-level ancestors (8 from the standard OID tree / other modules)
| Numeric OID | Name | Module |
|---|---|---|
| 1 | iso | LANART-AGENT |
| 1.3 | org | AirPair-MIB |
| 1.3.6 | dod | AirPair-MIB |
| 1.3.6.1 | internet | AirPair-MIB |
| 1.3.6.1.4 | private | AirPair-MIB |
| 1.3.6.1.4.1 | enterprises | AirPair-MIB |
| 1.3.6.1.4.1.171 | d_link | DE1500-MIB |
| 1.3.6.1.4.1.171.12 | dlink_common_mgmt | DLINK-ID-REC-MIB |
| Numeric OID | Name | Module |
|---|---|---|
| 1.3.6.1.4.1.171.12.15 | swMSTPMIB | MSTP-MIB |
| 1.3.6.1.4.1.171.12.15.2 | swMSTPCtrl | MSTP-MIB |
| 1.3.6.1.4.1.171.12.15.2.5 | swMSTPMstPortTable | MSTP-MIB |
| 1.3.6.1.4.1.171.12.15.2.5.1 | swMSTPMstPortEntry | MSTP-MIB |
| 1.3.6.1.4.1.171.12.15.2.5.1.7 | swMSTPMstPortRole | MSTP-MIB |