HP 3PAR Battery Status

We currently have an active alert for a failed battery on one of our 3PAR arrays. This shows up in the alerts (see previous post) screen however we may want to see additional information.

Log onto the 3PAR via your SSH client of choice and execute the command showbattery

3PAR01 cli% showbattery
 Node PS Bat Assy_Serial -State-- ChrgLvl(%) -ExpDate- Expired Testing
 0,1  0   0 Unknown     Degraded         25 n/a       Yes     No
 0,1  1   0 Unknown     OK              100 n/a       No      No

This command provides some useful information however we can display additional details by entering showbattery -d

3PAR01 cli% showbattery -d
 -------Node 0 PS 0 Battery 0-------
 Node ID                :   0
 Power Supply ID        :   0
 Battery ID             :   0
 Manufacturer           :   XYRATEX
 Assembly Part          :   Unknown
 Assembly Serial Number :   Unknown
 State                  :   Degraded
 Detail State           :   Unknown
 Charge Level(%)        :   25
 Expired                :   Yes
 Test in Progress       :   No
 Charge State           :   --
 Max Battery Life(Whrs) :   16
 Expiration Date        :   n/a
------Node 0 PS 1 Battery 0-------
 Node ID                :   0
 Power Supply ID        :   1
 Battery ID             :   0
 Manufacturer           :   XYRATEX
 Assembly Part          :   Unknown
 Assembly Serial Number :   Unknown
 State                  :   OK
 Detail State           :   normal
 Charge Level(%)        :   100
 Expired                :   No
 Test in Progress       :   No
 Charge State           :   --
 Max Battery Life(Whrs) :   16
 Expiration Date        :   n/a

As you can see this array has an issue with the battery in Node 0 PS 0, it is only at 25% charge level and is flagged as Degraded. A case is logged with HP who will send us a replacement battery.

Should we wish to see the other options available to us via the showbattery command we can leverage the help option as such –

3PAR01 cli% help showbattery
showbattery – Show battery status information.

SYNTAX
    showbattery [options] [<node_ID> …]
    showbattery -listcols

DESCRIPTION
    Displays battery status information such as serial number, expiration
    date and battery life, which could be helpful in determining battery
    maintenance schedules.

AUTHORITY
    Any role in the system

OPTIONS
    -listcols
        List the columns available to be shown with the -showcols option
        described below (see ‘clihelp -col showbattery’ for help on each column).

    -showcols <column>[,<column>…]
        Explicitly select the columns to be shown using a comma-separated list
        of column names.  For this option, the full column names are shown in
        the header.
        Run ‘showbattery -listcols’ to list the available columns.
        Run ‘clihelp -col showbattery’ for a description of each column.

    -d
        Show detailed battery information.

    -log
        Show battery test log information. This option is not supported on
        HP 3PAR 7000 series systems.

    -i
        Show battery inventory information.

    -state 
        Show detailed battery state information.
        This is the same as -s.

    -s 
        Show detailed battery state information.

    -svc
        Displays inventory information with HP serial number, spare part etc.
        This option must be used with -i option and it is supported only
        on HP 3PAR 7000 series systems

SPECIFIERS
    <node_ID>…
        Displays the battery information for the specified node ID(s). This
        specifier is not required. Node_ID is an integer from 0 through 7.

NOTES
    Battery information is set by issuing the setbattery command.

EXAMPLES
    None.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.