Scripts for HP servers in CLI

Start CLI

hpacucli

Find Controller

ctrl all show
Smart Array P410i in Slot 0 (Embedded)
Bus Interface: PCI

Select card and view logical drives

ctrl slot="0" ld all show
Smart Array P410i in Slot 0 (Embedded)
array A
logicaldrive 1 (136.7 GB, RAID 1, OK)
array B
logicaldrive 2 (558.7 GB, RAID 1+0, OK)
array C
logicaldrive 3 (279.4 GB, RAID 1, OK)

Check Physical Drives

 ctrl slot="0" pd all show
Smart Array P410i in Slot 0 (Embedded)
 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)
 array B
    physicaldrive 2I:1:5 (port 2I:box 1:bay 5, SAS, 300 GB, OK)
    physicaldrive 2I:1:6 (port 2I:box 1:bay 6, SAS, 300 GB, OK)
    physicaldrive 2I:1:7 (port 2I:box 1:bay 7, SAS, 300 GB, OK)
    physicaldrive 2I:1:8 (port 2I:box 1:bay 8, SAS, 300 GB, OK)
 array C
    physicaldrive 1I:1:3 (port 1I:box 1:bay 3, SAS, 300 GB, OK)
    physicaldrive 1I:1:4 (port 1I:box 1:bay 4, SAS, 300 GB, OK)