swL2StpPortRole
DES3200-52-L2MGMT-MIB ·
.1.3.6.1.4.1.171.11.113.9.1.2.15.4.1.4
Object
column Enumeration
When the port is enabled, this defines the port's current port role as defined by the Spanning Tree Protocol. If the PortEnable is disabled, the port status will be nonstp. If the port is in error loopback status, the port role will be loopback.
Context
- MIB
- DES3200-52-L2MGMT-MIB
- OID
.1.3.6.1.4.1.171.11.113.9.1.2.15.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 'DES3200-52-L2MGMT-MIB' -M '/opt/observium/mibs/d-link:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'DES3200-52-L2MGMT-MIB::swL2StpPortRole'
More examples
Read one indexed instance
/usr/bin/snmpget -v2c -c '<community>' -Pud -Ir -OQUv -m 'DES3200-52-L2MGMT-MIB' -M '/opt/observium/mibs/d-link:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'DES3200-52-L2MGMT-MIB::swL2StpPortRole.<swL2StpPort>'
Translate to a numeric OID
/usr/bin/snmptranslate -Pud -Ir -On -m 'DES3200-52-L2MGMT-MIB' -M '/opt/observium/mibs/d-link:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'DES3200-52-L2MGMT-MIB::swL2StpPortRole'
Syntax
Enumeration
Values & Constraints
Enumerated Values
1 | disabled |
2 | alternate |
3 | backup |
4 | root |
5 | designated |
6 | nonStp |
7 | loopback |