hwRsPortMode
HUAWEI-PORT-MIB ·
.1.3.6.1.4.1.2011.5.25.157.1.23.3.1.2
Object
column r/w
Enumeration
This object indicates the type of a serial interface. The value can be rs-232,rs-485,rs-422,,v.24,x.21 or v.35. For NED1MPAA/CR23MPAA PICs: Ports 0 and 2 work in rs-232 mode. The working mode cannot be configured. Ports 1 and 3 can work either in rs-485 or rs-422 mode. The default mode is rs-422. For NED1SA8/CR23SA8 PICs, all ports can work in v-35, x-21, or v-24 mode. The default mode is v-24.
Context
- MIB
- HUAWEI-PORT-MIB
- OID
.1.3.6.1.4.1.2011.5.25.157.1.23.3.1.2- Type
- column
- Access
- readwrite
- Status
- current
- Parent
- hwRsEntry
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-PORT-MIB' -M '/opt/observium/mibs/huawei:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'HUAWEI-PORT-MIB::hwRsPortMode'
More examples
Read one indexed instance
/usr/bin/snmpget -v2c -c '<community>' -Pud -Ir -OQUv -m 'HUAWEI-PORT-MIB' -M '/opt/observium/mibs/huawei:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'HUAWEI-PORT-MIB::hwRsPortMode.<hwRsIfIndex>'
Translate to a numeric OID
/usr/bin/snmptranslate -Pud -Ir -On -m 'HUAWEI-PORT-MIB' -M '/opt/observium/mibs/huawei:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'HUAWEI-PORT-MIB::hwRsPortMode'
Syntax
Enumeration
Values & Constraints
Enumerated Values
1 | rs232 |
2 | rs485 |
3 | rs422 |
4 | v24 |
5 | x21 |
6 | v35 |