hwUpsDeviceBatteryState
HUAWEI-UPS-MIB ·
.1.3.6.1.4.1.2011.6.174.1.2.101.1.3
Object
column Enumeration
Battery status. Enumeration type. Value 1 indicates that no battery is connected. Value 2 indicates that the battery is not charging or discharging. Value 3 indicates hibernation. Value 4 indicates float charging. Value 5 indicates equalized charging. Value 6 indicates discharging.
Context
- MIB
- HUAWEI-UPS-MIB
- OID
.1.3.6.1.4.1.2011.6.174.1.2.101.1.3- Type
- column
- Access
- readonly
- Status
- current
- Parent
- hwUpsDeviceOperInfoEntry
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-UPS-MIB' -M '/opt/observium/mibs/huawei:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'HUAWEI-UPS-MIB::hwUpsDeviceBatteryState'
More examples
Read one indexed instance
/usr/bin/snmpget -v2c -c '<community>' -Pud -Ir -OQUv -m 'HUAWEI-UPS-MIB' -M '/opt/observium/mibs/huawei:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'HUAWEI-UPS-MIB::hwUpsDeviceBatteryState.<hwUpsDeviceId>'
Translate to a numeric OID
/usr/bin/snmptranslate -Pud -Ir -On -m 'HUAWEI-UPS-MIB' -M '/opt/observium/mibs/huawei:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'HUAWEI-UPS-MIB::hwUpsDeviceBatteryState'
Syntax
Enumeration
Values & Constraints
Enumerated Values
1 | notExist |
2 | temperaryMode |
3 | sleep |
4 | floatCharge |
5 | boostCharge |
6 | discharge |