swL2StpPortRole
DES3010FL-L2MGMT-MIB ·
.1.3.6.1.4.1.171.11.63.4.2.16.4.1.4
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 the port role will be nonstp(7). If the port is in loop-back status, the port role will be loopback(8)
Context
- MIB
- DES3010FL-L2MGMT-MIB
- OID
.1.3.6.1.4.1.171.11.63.4.2.16.4.1.4- Type
- column
- Access
- readonly
- Status
- current
- Parent
- swL2StpPortEntry
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 'DES3010FL-L2MGMT-MIB' -M '/opt/observium/mibs/d-link:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'DES3010FL-L2MGMT-MIB::swL2StpPortRole'
More examples
Read one indexed instance
/usr/bin/snmpget -v2c -c '<community>' -Pud -Ir -OQUv -m 'DES3010FL-L2MGMT-MIB' -M '/opt/observium/mibs/d-link:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'DES3010FL-L2MGMT-MIB::swL2StpPortRole.<swL2StpPort>'
Translate to a numeric OID
/usr/bin/snmptranslate -Pud -Ir -On -m 'DES3010FL-L2MGMT-MIB' -M '/opt/observium/mibs/d-link:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'DES3010FL-L2MGMT-MIB::swL2StpPortRole'
Syntax
Enumeration
Values & Constraints
Enumerated Values
1 | disabled |
2 | alternate |
3 | backup |
4 | root |
5 | designated |
6 | nonStp |
7 | loopback |