upsAdvTestBatteryConditionStatus
PowerNet-MIB ·
.1.3.6.1.4.1.318.1.1.1.7.2.15
Object
scalar mandatory
Enumeration
Result of the latest successful test 1 = unknown 2 = battery OK 3 = battery capacity decreased 4 = battery defect 5 = indicate that no battery is present (no battery, battery breaker open,..) to perform the battery diagnostic test
Context
- MIB
- PowerNet-MIB
- OID
.1.3.6.1.4.1.318.1.1.1.7.2.15- Type
- scalar
- Access
- readonly
- Status
- mandatory
- Parent
- upsAdvTest
Net-SNMP examples
How SNMP and these commands workScalars have one instance, identified by the .0 suffix.
Read the scalar instance
/usr/bin/snmpget -v2c -c '<community>' -Pud -Ir -OQUv -m 'PowerNet-MIB' -M '/opt/observium/mibs/apc:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'PowerNet-MIB::upsAdvTestBatteryConditionStatus.0'
More examples
Translate to a numeric OID
/usr/bin/snmptranslate -Pud -Ir -On -m 'PowerNet-MIB' -M '/opt/observium/mibs/apc:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'PowerNet-MIB::upsAdvTestBatteryConditionStatus'
Syntax
Enumeration
Values & Constraints
Enumerated Values
1 | unknown |
2 | batteryOK |
3 | batteryCapacityDecreased |
4 | batteryDefect |
5 | noBatteryPresent |