hwACPowerState
HUAWEI-POWER-MIB ·
.1.3.6.1.4.1.2011.6.2.1.2.1.2
Object
column Enumeration
Status of power supply. Options: 1.normal(1) - indicates that the power supply is normal 2.offline(2) - indicates that the power supply is offline 3.exceedVoltage(3) - indicates that the power supply is overvoltage 4.belowVoltage(4) - indicates that the power supply is undervoltage 5.backup(5) - indicates that the power supply is not supported currently 6.invalid(-1) - indicates that the device can not get the value, e.g. the EMU does not support this operation, or the EMU state is abnormal
Context
- MIB
- HUAWEI-POWER-MIB
- OID
.1.3.6.1.4.1.2011.6.2.1.2.1.2- Type
- column
- Access
- readonly
- Status
- current
- Parent
- hwACInputEntry
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-POWER-MIB' -M '/opt/observium/mibs/huawei:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'HUAWEI-POWER-MIB::hwACPowerState'
More examples
Read one indexed instance
/usr/bin/snmpget -v2c -c '<community>' -Pud -Ir -OQUv -m 'HUAWEI-POWER-MIB' -M '/opt/observium/mibs/huawei:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'HUAWEI-POWER-MIB::hwACPowerState.<hwEnvEmuIndex>.<hwPowerIndex>.<hwACLoopIndex>'
Translate to a numeric OID
/usr/bin/snmptranslate -Pud -Ir -On -m 'HUAWEI-POWER-MIB' -M '/opt/observium/mibs/huawei:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'HUAWEI-POWER-MIB::hwACPowerState'
Syntax
Enumeration
Values & Constraints
Enumerated Values
-1 | invalid |
1 | normal |
2 | offline |
3 | exceedVoltage |
4 | belowVoltage |
5 | backup |