hwOROpticalWorkMode
HUAWEI-ENVIRONMENT-MIB ·
.1.3.6.1.4.1.2011.6.1.1.7.1.30
Object
column r/w
Enumeration
The protect-switch channel policy of dual-channel optical receiver. Options: 1.force-channel0(1) - Force channel 0 as working channel, and forbid switching channel. 2.force-channel1(2) - Force channel 1 as working channel, and forbid switching channel. 3.prefer-channel0(3) - Prefer channel 0 as working channel priority and permit switch when channel 0 failed. 4.prefer-channel1(4) - Prefer channel 1 as working channel priority and permit switch when channel 1 failed. 5.combiner(5) - Combination mode. Both channel 0 and channel 1 are working.
Context
- MIB
- HUAWEI-ENVIRONMENT-MIB
- OID
.1.3.6.1.4.1.2011.6.1.1.7.1.30- Type
- column
- Access
- readwrite
- Status
- current
- Parent
- hwOpticalNodeEntry
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-ENVIRONMENT-MIB' -M '/opt/observium/mibs/huawei:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'HUAWEI-ENVIRONMENT-MIB::hwOROpticalWorkMode'
More examples
Read one indexed instance
/usr/bin/snmpget -v2c -c '<community>' -Pud -Ir -OQUv -m 'HUAWEI-ENVIRONMENT-MIB' -M '/opt/observium/mibs/huawei:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'HUAWEI-ENVIRONMENT-MIB::hwOROpticalWorkMode.<hwFrameIndex>'
Translate to a numeric OID
/usr/bin/snmptranslate -Pud -Ir -On -m 'HUAWEI-ENVIRONMENT-MIB' -M '/opt/observium/mibs/huawei:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'HUAWEI-ENVIRONMENT-MIB::hwOROpticalWorkMode'
Syntax
Enumeration
Values & Constraints
Enumerated Values
1 | forcechannel0 |
2 | forcechannel1 |
3 | preferchannel0 |
4 | preferchannel1 |
5 | combiner |