dot1sStpInstPortState
MSTP-MIB ·
fscom variant
·
.1.3.6.1.2.1.17.8.1.1.12.1.2
Object
column r/w
Enumeration
The port's current state as defined by application of the Spanning Tree Protocol. This state controls what action a port takes on reception of a frame. For ports which are disabled (see dot1dStpPortEnable), this object will have a value of disabled(1).
Context
- MIB
- MSTP-MIB
- OID
.1.3.6.1.2.1.17.8.1.1.12.1.2- Type
- column
- Access
- readwrite
- Status
- current
- Parent
- dot1sStpInstPortEntry
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 'MSTP-MIB' -M '/opt/observium/mibs/fscom:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'MSTP-MIB::dot1sStpInstPortState'
More examples
Read one indexed instance
/usr/bin/snmpget -v2c -c '<community>' -Pud -Ir -OQUv -m 'MSTP-MIB' -M '/opt/observium/mibs/fscom:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'MSTP-MIB::dot1sStpInstPortState.<dot1sStpInstId>.<dot1sStpPort>'
Translate to a numeric OID
/usr/bin/snmptranslate -Pud -Ir -On -m 'MSTP-MIB' -M '/opt/observium/mibs/fscom:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'MSTP-MIB::dot1sStpInstPortState'
Syntax
Enumeration
Values & Constraints
Enumerated Values
1 | disabled |
2 | discarding |
3 | learning |
4 | forwarding |