hwPortNetworkRole
HUAWEI-DEVICE-MIB ·
.1.3.6.1.4.1.2011.6.3.3.4.1.7
Object
column r/w
Enumeration
Indicates the network role of a board. Options: 1. uplink(1) -indicates the uplink port 2. cascade(2) -indicates the subtending port 3. access(3) -indicates the downstream access port 4. extend(4) -indicates connectting to extended frame 5. stack(5) -indicates the stack port
Context
- MIB
- HUAWEI-DEVICE-MIB
- OID
.1.3.6.1.4.1.2011.6.3.3.4.1.7- Type
- column
- Access
- readwrite
- Status
- current
- Parent
- hwPortEntry
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 'HUAWEI-DEVICE-MIB' -M '/opt/observium/mibs/huawei:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'HUAWEI-DEVICE-MIB::hwPortNetworkRole'
More examples
Read one indexed instance
/usr/bin/snmpget -v2c -c '<community>' -Pud -Ir -OQUv -m 'HUAWEI-DEVICE-MIB' -M '/opt/observium/mibs/huawei:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'HUAWEI-DEVICE-MIB::hwPortNetworkRole.<hwFrameIndex>.<hwSlotIndex>.<hwSubslotIndex>.<hwPortIndex>'
Translate to a numeric OID
/usr/bin/snmptranslate -Pud -Ir -On -m 'HUAWEI-DEVICE-MIB' -M '/opt/observium/mibs/huawei:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'HUAWEI-DEVICE-MIB::hwPortNetworkRole'
Syntax
Enumeration
Values & Constraints
No enumerated values or constraints recorded.