tpStpPortRole
TPLINK-SPANNING-TREE-MIB ·
.1.3.6.1.4.1.11863.6.21.1.2.1.1.10
Object
column Enumeration
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.
Context
- MIB
- TPLINK-SPANNING-TREE-MIB
- OID
.1.3.6.1.4.1.11863.6.21.1.2.1.1.10- Type
- column
- Access
- readonly
- Status
- current
- Parent
- tpStpPortConfigEntry
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 'TPLINK-SPANNING-TREE-MIB' -M '/opt/observium/mibs/tplink:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'TPLINK-SPANNING-TREE-MIB::tpStpPortRole'
More examples
Read one indexed instance
/usr/bin/snmpget -v2c -c '<community>' -Pud -Ir -OQUv -m 'TPLINK-SPANNING-TREE-MIB' -M '/opt/observium/mibs/tplink:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'TPLINK-SPANNING-TREE-MIB::tpStpPortRole.<ifIndex>'
Translate to a numeric OID
/usr/bin/snmptranslate -Pud -Ir -On -m 'TPLINK-SPANNING-TREE-MIB' -M '/opt/observium/mibs/tplink:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'TPLINK-SPANNING-TREE-MIB::tpStpPortRole'
Syntax
Enumeration
Values & Constraints
Enumerated Values
0 | na |
1 | disabled |
2 | alternate |
3 | backup |
4 | designated |
5 | root |
6 | master |