portStatusRole
G6-STP-MIB ·
.1.3.6.1.4.1.3181.10.6.2.42.101.1.18
Object
column Enumeration
Assigned port role
Context
- MIB
- G6-STP-MIB
- OID
.1.3.6.1.4.1.3181.10.6.2.42.101.1.18- Type
- column
- Access
- readonly
- Status
- current
- Parent
- portStatusEntry
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 'G6-STP-MIB' -M '/opt/observium/mibs/microsens:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'G6-STP-MIB::portStatusRole'
More examples
Read one indexed instance
/usr/bin/snmpget -v2c -c '<community>' -Pud -Ir -OQUv -m 'G6-STP-MIB' -M '/opt/observium/mibs/microsens:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'G6-STP-MIB::portStatusRole.<portStatusPortIndex>'
Translate to a numeric OID
/usr/bin/snmptranslate -Pud -Ir -On -m 'G6-STP-MIB' -M '/opt/observium/mibs/microsens:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'G6-STP-MIB::portStatusRole'
Syntax
Enumeration
Values & Constraints
Enumerated Values
0 | unknown |
1 | root |
2 | designated |
3 | alternate |
4 | backup |
5 | master |
6 | disabled |