HP 3PAR Command Line Interface Reference (OS 3.1.2 MU2) (QL226-97016, June 2013)
setbattery
DESCRIPTION
The setbattery command sets battery information such as the battery’s expiration date, its
recharging time, and its serial number. This information gives the system administrator a record
or log of the battery age and battery charge status.
SYNTAX
setbattery [options <arg>] <node_ID> <powersupply_ID> <battery_ID>
setbattery [options <arg>] <node_ID>
AUTHORITY
• Super, Service
• Any role granted the battery_set right.
NOTE: You need access to all domains in order to run this command.
OPTIONS
–s <serial_number>
Specifies the serial number of the battery using a limit of eight alphanumeric characters.
–x <exp_date>
Specifies the expiration date of the battery (mm/dd/yyyy). The expiration date cannot extend
beyond 2037.
–l
Specifies that the battery test log is reset and all previous test log entries are cleared.
–r
Specifies that the battery recharge time is reset and that 10 hours of charging time are required
for the battery to be fully charged.
SPECIFIERS
<node_ID>
Specifies the node number where the battery is installed.
<powersupply_ID>
Specifies the power supply number on the node using either 0 (left side from the rear of the node)
or 1 (right side from the rear of the node).
<battery_ID>
Specifies the battery number on the power supply where 0 is the first battery.
NOTE: The <powersupply_ID> and <battery_ID> specifiers can be obtained from the output of
the showbattery command.
RESTRICTIONS
Access to all domains is required to run this command.
278 Set Commands