hwifEthernetMdi
HUAWEI-LswINF-MIB ·
.1.3.6.1.4.1.2011.2.23.1.5.1.4.1.7
Object
column r/w
Enumeration
Type of the line connected to the port. MDI-II (straight-through cable): 1 MDI-X (crossover cable): 2 MDI-AUTO (auto-sensing): 3
Context
- MIB
- HUAWEI-LswINF-MIB
- OID
.1.3.6.1.4.1.2011.2.23.1.5.1.4.1.7- Type
- column
- Access
- readwrite
- Status
- current
- Parent
- hwethernetEntry
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-LswINF-MIB' -M '/opt/observium/mibs/h3c:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'HUAWEI-LswINF-MIB::hwifEthernetMdi'
More examples
Read one indexed instance
/usr/bin/snmpget -v2c -c '<community>' -Pud -Ir -OQUv -m 'HUAWEI-LswINF-MIB' -M '/opt/observium/mibs/h3c:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'HUAWEI-LswINF-MIB::hwifEthernetMdi.<ifIndex>'
Translate to a numeric OID
/usr/bin/snmptranslate -Pud -Ir -On -m 'HUAWEI-LswINF-MIB' -M '/opt/observium/mibs/h3c:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'HUAWEI-LswINF-MIB::hwifEthernetMdi'
Syntax
Enumeration
Values & Constraints
Enumerated Values
1 | mdi-ii |
2 | mdi-x |
3 | mdi-auto |