agentStpAdminMode
SWITCHING-MIB ·
.1.3.6.1.4.1.7244.2.1.2.15.6
Object
scalar r/w
Enumeration
The spanning tree operational status.
enable(1) - enables spanning tree operational status on the switch.
disable(2) - disables spanning tree operational status on the switch.
The default status is disabled.
Context
- MIB
- SWITCHING-MIB
- OID
.1.3.6.1.4.1.7244.2.1.2.15.6- Type
- scalar
- Access
- readwrite
- Status
- current
- Parent
- agentStpSwitchConfigGroup
Net-SNMP examples
How SNMP and these commands workScalars have one instance, identified by the .0 suffix.
Read the scalar instance
/usr/bin/snmpget -v2c -c '<community>' -Pud -Ir -OQUv -m 'SWITCHING-MIB' -M '/opt/observium/mibs/quanta:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'SWITCHING-MIB::agentStpAdminMode.0'
More examples
Translate to a numeric OID
/usr/bin/snmptranslate -Pud -Ir -On -m 'SWITCHING-MIB' -M '/opt/observium/mibs/quanta:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'SWITCHING-MIB::agentStpAdminMode'
Syntax
Enumeration
Values & Constraints
Enumerated Values
1 | enable |
2 | disable |