All MIBs › CPQPOWER-MIB › upsTestBattery
upsTestBattery
Module: CPQPOWER-MIB
OID (symbolic): CPQPOWER-MIB::upsTestBattery
OID (numeric): 1.3.6.1.4.1.232.165.3.7.1
Node type: OBJECT-TYPE
Type: INTEGER
Access: read-write
Description: Setting this variable to startTest initiates the battery test. All other set values are invalid.
What is upsTestBattery?
Setting this object to the value startTest(1) initiates a battery self-test on the UPS; any other value written to it is rejected as invalid. It gives an admin a remote way to trigger a battery health check without physically visiting the UPS. For example, a scheduled script could set upsTestBattery to startTest every month and then poll upsTestBatteryStatus afterward to confirm the battery still passes.
Examples
Walk all instances (SNMPv2c):
snmpwalk -v2c -c public <target> 1.3.6.1.4.1.232.165.3.7.1 snmpwalk -v2c -c public <target> CPQPOWER-MIB::upsTestBattery
Get a specific instance (index 1):
snmpget -v2c -c public <target> 1.3.6.1.4.1.232.165.3.7.1.1 snmpget -v2c -c public <target> CPQPOWER-MIB::upsTestBattery.1
Set instance 1 (SNMPv2c):
snmpset -v2c -c private <target> 1.3.6.1.4.1.232.165.3.7.1.1 i <value>
Start monitoring Compaq/HP-managed UPS/PDU power infrastructure with a free 30-day trial of IPNetwork Monitor. Create custom SNMP monitor using the CPQPOWER-MIB::upsTestBattery OID value, configure state conditions and alerts, and monitor any Compaq/HP-managed UPS/PDU power infrastructure from a single console.
OID Breakdown
Upper-level ancestors (7 from the standard OID tree / other modules)
| Numeric OID | Name | Module |
|---|---|---|
| 1 | iso | LANART-AGENT |
| 1.3 | org | AirPair-MIB |
| 1.3.6 | dod | AirPair-MIB |
| 1.3.6.1 | internet | AirPair-MIB |
| 1.3.6.1.4 | private | AirPair-MIB |
| 1.3.6.1.4.1 | enterprises | AirPair-MIB |
| 1.3.6.1.4.1.232 | compaq | COMPAQ-ID-REC-MIB |
| Numeric OID | Name | Module |
|---|---|---|
| 1.3.6.1.4.1.232.165 | cpqPower | CPQPOWER-MIB |
| 1.3.6.1.4.1.232.165.3 | ups | CPQPOWER-MIB |
| 1.3.6.1.4.1.232.165.3.7 | upsTest | CPQPOWER-MIB |
| 1.3.6.1.4.1.232.165.3.7.1 | upsTestBattery | CPQPOWER-MIB |