tpMstpInstancePortRole
TPLINK-SPANNING-TREE-MIB ·
.1.3.6.1.4.1.11863.6.21.1.3.3.1.5
Object
column Enumeration
Displays the role of the port played in the STP Instance. 1. Disable 2. Alternate 3. Backup 4. Designated 5. root 6. Master
Context
- MIB
- TPLINK-SPANNING-TREE-MIB
- OID
.1.3.6.1.4.1.11863.6.21.1.3.3.1.5- Type
- column
- Access
- readonly
- Status
- current
- Parent
- tpMstpInstancePortConfigEntry
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 'TPLINK-SPANNING-TREE-MIB' -M '/opt/observium/mibs/tplink:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'TPLINK-SPANNING-TREE-MIB::tpMstpInstancePortRole'
More examples
Read one indexed instance
/usr/bin/snmpget -v2c -c '<community>' -Pud -Ir -OQUv -m 'TPLINK-SPANNING-TREE-MIB' -M '/opt/observium/mibs/tplink:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'TPLINK-SPANNING-TREE-MIB::tpMstpInstancePortRole.<tpMstpInstancePortConfigId>.<ifIndex>'
Translate to a numeric OID
/usr/bin/snmptranslate -Pud -Ir -On -m 'TPLINK-SPANNING-TREE-MIB' -M '/opt/observium/mibs/tplink:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'TPLINK-SPANNING-TREE-MIB::tpMstpInstancePortRole'
Syntax
Enumeration
Values & Constraints
Enumerated Values
0 | na |
1 | disabled |
2 | alternate |
3 | backup |
4 | designated |
5 | root |
6 | master |