swL2StpPortStatus
DES3018-L2MGMT-MIB ·
.1.3.6.1.4.1.171.11.63.2.2.16.4.1.3
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 the port status will be no-stp-enabled(7). If the port is in error disabled status, the port status will be err-disabled(8)
Context
- MIB
- DES3018-L2MGMT-MIB
- OID
.1.3.6.1.4.1.171.11.63.2.2.16.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 'DES3018-L2MGMT-MIB' -M '/opt/observium/mibs/d-link:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'DES3018-L2MGMT-MIB::swL2StpPortStatus'
More examples
Read one indexed instance
/usr/bin/snmpget -v2c -c '<community>' -Pud -Ir -OQUv -m 'DES3018-L2MGMT-MIB' -M '/opt/observium/mibs/d-link:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'DES3018-L2MGMT-MIB::swL2StpPortStatus.<swL2StpPort>'
Translate to a numeric OID
/usr/bin/snmptranslate -Pud -Ir -On -m 'DES3018-L2MGMT-MIB' -M '/opt/observium/mibs/d-link:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'DES3018-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 |