# tested on
yum install inxi
inxi -b
System:    Host: hp.centos Kernel: 5.1.15 x86_64 bits: 64 Desktop: MATE 1.16.2 Distro: CentOS Linux release 7.6.1810 (Core) 
Machine:   Type: Server System: HP product: ProLiant DL360 G6 v: N/A serial: XXXXXXXXX 
           Mobo: N/A model: N/A serial: N/A BIOS: HP v: P64 date: 07/02/2013 
CPU:       2x Quad Core: Intel Xeon E5540 type: MT MCP SMP speed: 1733 MHz min/max: 1600/2533 MHz 
Graphics:  Device-1: Advanced Micro Devices [AMD/ATI] ES1000 driver: radeon v: kernel 
           Display: server: X.Org 1.20.1 driver: ati,radeon unloaded: fbdev,modesetting,vesa resolution: 1280x1024~60Hz 
           OpenGL: renderer: llvmpipe (LLVM 6.0 128 bits) v: 2.1 Mesa 18.0.5 
Network:   Device-1: Broadcom and subsidiaries NetXtreme II BCM5709 Gigabit Ethernet driver: bnx2 
           Device-2: Broadcom and subsidiaries NetXtreme II BCM5709 Gigabit Ethernet driver: bnx2 
           Device-3: Intel 82574L Gigabit Network driver: e1000e 
Drives:    Local Storage: total: 838.31 GiB used: 641.95 GiB (76.6%) 
Info:      Processes: 316 Uptime: 5h 40m Memory: 15.71 GiB used: 1.72 GiB (10.9%) Shell: bash inxi: 3.0.35 

# info about system via hardware detection script
# can be downloaded ProLiant DL360 G6.txt
yum install lshw pciutil
lspci -knn | grep 'RAID bus controller'
03:00.0 RAID bus controller [0104]: Hewlett-Packard Company Smart Array G6 controllers [103c:323a] (rev 01)

# one can also try
lspci -vvv | grep -i raid
03:00.0 RAID bus controller: Hewlett-Packard Company Smart Array G6 controllers (rev 01
# and then search /in the less output
lspci -vvv | less
# or
dmesg|grep RAID
[    3.077468] hpsa 0000:03:00.0: scsi 0:0:0:0: added RAID              HP       P410i            controller SSDSmartPathCap- En- Exp=1
[    3.078469] hpsa 0000:03:00.0: scsi 0:1:0:0: added Direct-Access     HP       LOGICAL VOLUME   RAID-1(+0) SSDSmartPathCap- En- Exp=1
[    3.079628] scsi 0:0:0:0: RAID              HP       P410i            6.60 PQ: 0 ANSI: 5
# or
dmesg|grep scsi
[    3.057857] scsi host0: hpsa
[    3.077468] hpsa 0000:03:00.0: scsi 0:0:0:0: added RAID              HP       P410i            controller SSDSmartPathCap- En- Exp=1
[    3.077690] hpsa 0000:03:00.0: scsi 0:0:1:0: masked Direct-Access     NETAPP   X421_HCOBD450A10 PHYS DRV SSDSmartPathCap- En- Exp=0
[    3.077887] hpsa 0000:03:00.0: scsi 0:0:2:0: masked Direct-Access     NETAPP   X421_HCOBD450A10 PHYS DRV SSDSmartPathCap- En- Exp=0
[    3.078081] hpsa 0000:03:00.0: scsi 0:0:3:0: masked Direct-Access     NETAPP   X421_HCOBD450A10 PHYS DRV SSDSmartPathCap- En- Exp=0
[    3.078277] hpsa 0000:03:00.0: scsi 0:0:4:0: masked Enclosure         PMCSIERA  SRC 8x6G        enclosure SSDSmartPathCap- En- Exp=0
[    3.078469] hpsa 0000:03:00.0: scsi 0:1:0:0: added Direct-Access     HP       LOGICAL VOLUME   RAID-1(+0) SSDSmartPathCap- En- Exp=1
[    3.079628] scsi 0:0:0:0: RAID              HP       P410i            6.60 PQ: 0 ANSI: 5
[    3.080779] scsi 0:1:0:0: Direct-Access     HP       LOGICAL VOLUME   6.60 PQ: 0 ANSI: 5
[  278.160702] scsi 0:0:0:0: Attached scsi generic sg0 type 12
[  278.167294] sd 0:1:0:0: Attached scsi generic sg1 type 0

if one needs detailed web gui based information about the HP RAID P410i, follow this guide to install the needed software.

vim /etc/yum.repos.d/hp.repo
[HP-spp]
name=HP Service Pack for ProLiant
baseurl=http://downloads.linux.hpe.com/SDR/repo/spp/RHEL/7.6Server/x86_64/current/
enabled=0
gpgcheck=0
gpgkey=file:///etc/pki/rpm-gpg/GPG-KEY-ssp

[HP-mcp]
name=HP Management Component Pack for ProLiant
baseurl=http://downloads.linux.hpe.com/SDR/repo/mcp/centos/7.6Server/x86_64/current/
enabled=0
gpgcheck=0
gpgkey=file:///etc/pki/rpm-gpg/GPG-KEY-mcp

yum update
yum install hp-health hpssacli hp-snmp-agents hpssa hpssacli hp-smh-templates hpsmh hponcfg
/usr/sbin/hpsnmpconfig; # wizard that generates /etc/snmp/snmpd.conf 
service hp-health restart
service hp-health start
service snmpd start
service hpsmhd start
systemctl enable hp-health
systemctl enable snmpd
systemctl enable hpsmhd
/opt/hp/hpssa/bin/hpssa -start
service hpsmhd restart
# if firewalld and nftables is used
firewall-cmd --permanent --new-service=hpsmh

then go there: https://localhost:2381/hpdiags/frontend2/frontend.php?

the question is, can one get RAID status from command line?

yes but one needs to manually download and install:

# find a failed drive
hpacucli 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, 450 GB, OK)
      physicaldrive 1I:1:2 (port 1I:box 1:bay 2, SAS, 450 GB, OK)
      physicaldrive 1I:1:3 (port 1I:box 1:bay 3, SAS, 450 GB, Failed)
      physicaldrive 1I:1:4 (port 1I:box 1:bay 4, SAS, 450 GB, OK)


# make a drive blue led go on to identify where failed drive is located
hpacucli ctrl slot=0 pd 1I:1:3 modify led=on
hpacucli ctrl slot=0 pd 1I:1:3 modify led=off

# no need for server restart
# after drive was replaced rebuild should start in 20-30sec
hpacucli 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, 450 GB, OK)
      physicaldrive 1I:1:2 (port 1I:box 1:bay 2, SAS, 450 GB, OK)
      physicaldrive 1I:1:3 (port 1I:box 1:bay 3, SAS, 450 GB, Rebuilding)
(Green LED starts blinking...) 

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

display power/watt usage

hpasmcli

hpasmcli is a scriptable command line interface for interacting with the hpasmd or hpasmxld management daemons. It is used to view/set/mod ify BIOS settings such as hyperthreading, boot control, and UID LEDs.

It can also be used to display hardware status, such as fans, power supplies, etc. The CLI supports TAB completion of command names and has a history buffer that can be accessed using the up/down arrows.

HPE management CLI for Linux (v2.0)
Copyright 2015 Hewlett Packard Enterprise Development LP.

--------------------------------------------------------------------------
NOTE: Some hpasmcli commands may not be supported on all Proliant servers.
      Type 'help' to get a list of all top level commands.
--------------------------------------------------------------------------
hpasmcli> help
CLEAR  DISABLE  ENABLE  EXIT  HELP  NOTE  QUIT  REPAIR  SET  SHOW 
hpasmcli> SHOW
Invalid Arguments
	 SHOW ASR
	 SHOW BOOT
	 SHOW COLDBOOT
	 SHOW DIMM [ SPD ]
	 SHOW F1
	 SHOW FANS
	 SHOW HT
	 SHOW IML
	 SHOW IPL
	 SHOW NAME
	 SHOW PORTMAP
	 SHOW POWERMETER
	 SHOW POWERSUPPLY
	 SHOW PXE
	 SHOW SERIAL [ BIOS | EMBEDDED | VIRTUAL ]
	 SHOW SERVER
	 SHOW TEMP
	 SHOW TPM
	 SHOW UID
	 SHOW WOL
hpasmcli> SHOW POWERSUPPLY
Power supply #1
	Present  : Yes
	Redundant: No
	Condition: FAILED
	Hotplug  : Supported
Power supply #2
	Present  : Yes
	Redundant: No
	Condition: Ok
	Hotplug  : Supported
	Power    : 105 Watts

liked this article?

  • only together we can create a truly free world
  • plz support dwaves to keep it up & running!
  • (yes the info on the internet is (mostly) free but beer is still not free (still have to work on that))
  • really really hate advertisement
  • contribute: whenever a solution was found, blog about it for others to find!
  • talk about, recommend & link to this blog and articles
  • thanks to all who contribute!
admin