tpStpPortStatus

TPLINK-SPANNING-TREE-MIB · .1.3.6.1.4.1.11863.6.21.1.2.1.1.11

Object

column Enumeration
Displays the working status of the port.
1.Disconnected: In this status the port is not participating in the STP.
2.Blocking: In this status the port can only receive BPDU packets.
3.Learning: In this status the port can receive/send BPDU packets and learn MAC address. 
4.Forwarding: In this status the port can receive/forward data, receive/send BPDU packets 
    as well as learn MAC address.

Context

MIB
TPLINK-SPANNING-TREE-MIB
OID
.1.3.6.1.4.1.11863.6.21.1.2.1.1.11
Type
column
Access
readonly
Status
current
Parent
tpStpPortConfigEntry

Walk 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::tpStpPortStatus'
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::tpStpPortStatus.<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::tpStpPortStatus'

Syntax

Enumeration

Values & Constraints

Enumerated Values
0na
1disconnected
2blocking
3learning
4forwarding