statusSpanningTreePortRole
ACKSYS-MIB ·
.1.3.6.1.4.1.28097.7.8.1.6
Object
column Enumeration
The port's current role in the Spanning Tree
Context
- MIB
- ACKSYS-MIB
- OID
.1.3.6.1.4.1.28097.7.8.1.6- Type
- column
- Access
- readonly
- Status
- current
- Parent
- statusSpanningTreePortEntry
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 'ACKSYS-MIB' -M '/opt/observium/mibs/acksys:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'ACKSYS-MIB::statusSpanningTreePortRole'
More examples
Read one indexed instance
/usr/bin/snmpget -v2c -c '<community>' -Pud -Ir -OQUv -m 'ACKSYS-MIB' -M '/opt/observium/mibs/acksys:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'ACKSYS-MIB::statusSpanningTreePortRole.<statusSpanningTreePortBridgeName>.<statusSpanningTreePortName>'
Translate to a numeric OID
/usr/bin/snmptranslate -Pud -Ir -On -m 'ACKSYS-MIB' -M '/opt/observium/mibs/acksys:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'ACKSYS-MIB::statusSpanningTreePortRole'
Syntax
Enumeration
Values & Constraints
Enumerated Values
0 | disabled |
1 | root |
2 | designated |
3 | alternate |
4 | backup |
5 | master |