Pages

Monday, March 11, 2013

hpacucli

Just some quick command examples for checking the status of a HP controller, drives etc. Start with finding the binary:

# find /opt -name "hpacucli" -type f
/opt/compaq/hpacucli/bld/hpacucli


Start hpacucli:

/opt/compaq/hpacucli/bld/hpacucli

List and show status of all controller(s):

=> ctrl all show status
Smart Array P400 in Slot 4
   Controller Status: OK
   Cache Status: OK
   Battery Status: OK
Smart Array P400 in Slot 5
   Controller Status: OK
   Cache Status: OK
   Battery Status: OK


List and show status of all physical drive(s):

=> ctrl slot=4 pd all show
Smart Array P400 in Slot 4
   array A
      physicaldrive 1I:1:1 (port 1I:box 1:bay 1, SAS, 146 GB, OK)
      physicaldrive 1I:1:2 (port 1I:box 1:bay 2, SAS, 146 GB, OK)
      physicaldrive 2I:1:8 (port 2I:box 1:bay 8, SAS, 146 GB, OK, spare)
=> ctrl slot=5 pd all show
Smart Array P400 in Slot 5
   array A
      physicaldrive 1I:1:9 (port 1I:box 1:bay 9, SAS, 146 GB, OK)
      physicaldrive 1I:1:10 (port 1I:box 1:bay 10, SAS, 146 GB, OK)
      physicaldrive 1I:1:11 (port 1I:box 1:bay 11, SAS, 146 GB, OK)
      physicaldrive 1I:1:12 (port 1I:box 1:bay 12, SAS, 146 GB, OK)
      physicaldrive 2I:1:13 (port 2I:box 1:bay 13, SAS, 146 GB, OK)
      physicaldrive 2I:1:14 (port 2I:box 1:bay 14, SAS, 146 GB, OK)
      physicaldrive 2I:1:15 (port 2I:box 1:bay 15, SAS, 146 GB, OK)
      physicaldrive 2I:1:16 (port 2I:box 1:bay 16, SAS, 146 GB, OK)


Show details of a physical drive:

=> ctrl slot=4 pd 1I:1:1 show detail
Smart Array P400 in Slot 4
   array A
      physicaldrive 1I:1:1
         Port: 1I
         Box: 1
         Bay: 1
         Active Path:
            Port: 1I Box: 1 Bay: 1
         Status: OK
         Drive Type: Data Drive
         Interface Type: SAS
         Size: 146 GB
         Rotational Speed: 10000
         Firmware Revision: HPD6
         Serial Number: ...
         Model: ...
         PHY Count: 2
         PHY Transfer Rate: 3.0GBPS, Unknown


List and show status of all logical drive(s):

=> ctrl slot=4 ld all show
Smart Array P400 in Slot 4
   array A
      logicaldrive 1 (136.7 GB, RAID 1+0, OK)
=> ctrl slot=5 ld all show
Smart Array P400 in Slot 5
   array A
      logicaldrive 1 (956.9 GB, RAID 5, OK)


There is more, just take a look at the documentation.