Monday 28 April 2014

hpacucli on Linux EXPLAINED!


hpacucli stand for HP Aray Configuration Utility CLI and it is HP propriety software.
What you can do with hpacucli? Well, you can do everything that you can do with your RAID controller: add disk, delete disks, check RAID, status of cache battery on RAID controller,etc....
Why this is good thing? Because you can do this online while server is running

Installation steps:
1.Download it from HP. Download version for your server and OS.

2.#:ls |grep hpacucl
hpacucli-8.50-6.0.noarch.rpm
3.rpm -ivh hpacucli-8.50-6.0.noarch.rpm


4. use it
#:hpacucli
HP Array Configuration Utility CLI 8.30-5.0
Detecting Controllers...Done.
Type "help" for a list of supported commands.
Type "exit" to close the console.

=>




You can use hpacucli through his console or you can run it as regular Linux command. Result will be same.

Here are few examples of hpacucli and his power!
1 Show status of RAID controllers
#hpacucli ctrl all show status

Smart Array P400 in Slot 0 (Embedded)
   Controller Status: OK
   Cache Status: OK
   Battery/Capacitor Status: OK

2. Show configuration of all RAID controllers: 
#:hpacucli ctrl all show config

Smart Array P400 in Slot 0 (Embedded)

   array A (SAS, Unused Space: 0 MB)


      logicaldrive 1 (68.3 GB, RAID 1, OK)

      physicaldrive 1I:1:1 (port 1I:box 1:bay 1, SAS, 72 GB, OK)
      physicaldrive 1I:1:2 (port 1I:box 1:bay 2, SAS, 72 GB, OK)

   array B (SAS, Unused Space: 0 MB)


      logicaldrive 2 (68.3 GB, RAID 1, OK)

      physicaldrive 1I:1:3 (port 1I:box 1:bay 3, SAS, 72 GB, OK)
      physicaldrive 1I:1:4 (port 1I:box 1:bay 4, SAS, 72 GB, OK)
  
2. Show specific controller configuration
#:hpacucli ctrl slot=0 show config

Smart Array P400 in Slot 0 (Embedded)

   array A (SAS, Unused Space: 0 MB)


      logicaldrive 1 (68.3 GB, RAID 1, OK)

      physicaldrive 1I:1:1 (port 1I:box 1:bay 1, SAS, 72 GB, OK)
      physicaldrive 1I:1:2 (port 1I:box 1:bay 2, SAS, 72 GB, OK)

   array B (SAS, Unused Space: 0 MB)


      logicaldrive 2 (68.3 GB, RAID 1, OK)

      physicaldrive 1I:1:3 (port 1I:box 1:bay 3, SAS, 72 GB, OK)
      physicaldrive 1I:1:4 (port 1I:box 1:bay 4, SAS, 72 GB, OK)












In case that any of components fails status of RAID controller will change

#hpacucli ctrl all show status

Smart Array P400 in Slot 0
   Controller Status: OK
   Cache Status: Temporarily Disabled
   Battery/Capacitor Status: Failed (Replace Batteries/Capacitors)








Without hpacucli this failed battery failure is show when you reboot server and looking at screen or(probably) when you connect on iLo and check health status of server.








No comments: