dot1sStpInstPortRole
MSTP-MIB ·
qtech variant
·
.1.3.6.1.2.1.17.8.1.1.12.1.9
Object
column Enumeration
The role of the port. As per IEEE 802.1s, the port can have any of the following roles: Disabled, Root, Designated, Alternate, Backup, Master
Context
- MIB
- MSTP-MIB
- OID
.1.3.6.1.2.1.17.8.1.1.12.1.9- Type
- column
- Access
- readonly
- Status
- current
- Parent
- dot1sStpInstPortEntry
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 'MSTP-MIB' -M '/opt/observium/mibs/qtech:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'MSTP-MIB::dot1sStpInstPortRole'
More examples
Read one indexed instance
/usr/bin/snmpget -v2c -c '<community>' -Pud -Ir -OQUv -m 'MSTP-MIB' -M '/opt/observium/mibs/qtech:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'MSTP-MIB::dot1sStpInstPortRole.<dot1sStpInstId>.<dot1sStpPort>'
Translate to a numeric OID
/usr/bin/snmptranslate -Pud -Ir -On -m 'MSTP-MIB' -M '/opt/observium/mibs/qtech:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'MSTP-MIB::dot1sStpInstPortRole'
Syntax
Enumeration
Values & Constraints
Enumerated Values
0 | master |
1 | alternate-backup |
2 | root |
3 | designated |