spanOnOff

STP-MIB · .1.3.6.1.4.1.13464.1.2.4.3.1.1.17

Object

scalar r/w Enumeration
DURABLE: { enable }
Enable/Disable Spanning Tree for the bridge.
When 'disable(2)', all ports of the device are placed in the
forwarding mode, regardless of current Spanning Tree state.
When 'enable(1)', the normal STP state transitions take place.

Context

MIB
STP-MIB
OID
.1.3.6.1.4.1.13464.1.2.4.3.1.1.17
Type
scalar
Access
readwrite
Status
current
Parent
stpDot1dStp

Scalars have one instance, identified by the .0 suffix.

Read the scalar instance
/usr/bin/snmpget -v2c -c '<community>' -Pud -Ir -OQUv -m 'STP-MIB' -M '/opt/observium/mibs/gbn:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'STP-MIB::spanOnOff.0'
More examples
Translate to a numeric OID
/usr/bin/snmptranslate -Pud -Ir -On -m 'STP-MIB' -M '/opt/observium/mibs/gbn:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'STP-MIB::spanOnOff'

Syntax

Enumeration

Values & Constraints

Enumerated Values
1enable
2disable