swMSTPMstPortStatus
MSTP-MIB ·
d-link variant
·
.1.3.6.1.4.1.171.12.15.2.5.1.6
Object
column Enumeration
When the port Enable state is enabled, the port's current state as defined by application of the Spanning Tree Protocol. If the PortEnable is disabled, the port status will be no-stp-enabled (7). If the port is in error disabled status, the port status will be err-disable(8)
Context
- MIB
- MSTP-MIB
- OID
.1.3.6.1.4.1.171.12.15.2.5.1.6- Type
- column
- Access
- readonly
- Status
- current
- Parent
- swMSTPMstPortEntry
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/d-link:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'MSTP-MIB::swMSTPMstPortStatus'
More examples
Read one indexed instance
/usr/bin/snmpget -v2c -c '<community>' -Pud -Ir -OQUv -m 'MSTP-MIB' -M '/opt/observium/mibs/d-link:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'MSTP-MIB::swMSTPMstPortStatus.<swMSTPMstPort>.<swMSTPMstPortInsID>'
Translate to a numeric OID
/usr/bin/snmptranslate -Pud -Ir -On -m 'MSTP-MIB' -M '/opt/observium/mibs/d-link:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'MSTP-MIB::swMSTPMstPortStatus'
Syntax
Enumeration
Values & Constraints
Enumerated Values
1 | other |
2 | disabled |
3 | discarding |
4 | learning |
5 | forwarding |
6 | broken |
7 | no-stp-enabled |
8 | err-disabled |