swL2StpPortStatus
DES3200-28P-L2MGMT-MIB ·
.1.3.6.1.4.1.171.11.113.8.1.2.15.4.1.3
Object
column Enumeration
When the port is enabled, this defines the port's current state as defined by the Spanning Tree Protocol. If 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-disabled.
Context
- MIB
- DES3200-28P-L2MGMT-MIB
- OID
.1.3.6.1.4.1.171.11.113.8.1.2.15.4.1.3- Type
- column
- Access
- readonly
- Status
- current
- Parent
- swL2StpPortEntry
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 'DES3200-28P-L2MGMT-MIB' -M '/opt/observium/mibs/d-link:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'DES3200-28P-L2MGMT-MIB::swL2StpPortStatus'
More examples
Read one indexed instance
/usr/bin/snmpget -v2c -c '<community>' -Pud -Ir -OQUv -m 'DES3200-28P-L2MGMT-MIB' -M '/opt/observium/mibs/d-link:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'DES3200-28P-L2MGMT-MIB::swL2StpPortStatus.<swL2StpPort>'
Translate to a numeric OID
/usr/bin/snmptranslate -Pud -Ir -On -m 'DES3200-28P-L2MGMT-MIB' -M '/opt/observium/mibs/d-link:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'DES3200-28P-L2MGMT-MIB::swL2StpPortStatus'
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 |