swMSTPMstPortRole
MSTP-MIB ·
d-link variant
·
.1.3.6.1.4.1.171.12.15.2.5.1.7
Object
column Enumeration
When the port Enable state is enabled, the port's current port role as defined by application of the Spanning Tree Protocol. If the Port Enable state is disabled, the port role will be nonstp(5)
Context
- MIB
- MSTP-MIB
- OID
.1.3.6.1.4.1.171.12.15.2.5.1.7- Type
- column
- Access
- readonly
- Status
- current
- Parent
- swMSTPMstPortEntry
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/d-link:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'MSTP-MIB::swMSTPMstPortRole'
More examples
Read one indexed instance
/usr/bin/snmpget -v2c -c '<community>' -Pud -Ir -OQUv -m 'MSTP-MIB' -M '/opt/observium/mibs/d-link:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'MSTP-MIB::swMSTPMstPortRole.<swMSTPMstPort>.<swMSTPMstPortInsID>'
Translate to a numeric OID
/usr/bin/snmptranslate -Pud -Ir -On -m 'MSTP-MIB' -M '/opt/observium/mibs/d-link:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'MSTP-MIB::swMSTPMstPortRole'
Syntax
Enumeration
Values & Constraints
Enumerated Values
0 | disable |
1 | alternate |
2 | backup |
3 | root |
4 | designated |
5 | master |
6 | nonstp |
7 | loopback |