VMware Cloud Community
haiiampc
Enthusiast
Enthusiast
Jump to solution

Can we write "PowerCLI Script" to get HP RAID Card Details (Firmware & Driver) ???

Can we write "PowerCLI Script" to get HP RAID Card Details (Firmware & Driver)

For Example : Below ESX Native Command shows desired output for me.

But we needed equal PowerCLI script to below ESX command

# cat /proc/driver/cciss/cciss0

cciss0: HP Smart Array P400i Controller

Board ID: 0x3235103c

Firmware Version: 7.22# cat /proc/driver/hpsa/hpsa0

hpsa0: HP Smart Array P410i Controller

Board ID: 0x3245103c

Firmware Version: 5.70

Driver Version: HP HPSA Driver (v 5.0.0-17vmw)

If it helps --> Please award points - as appropriate - "Correct" or "Helpful"
Tags (3)
0 Kudos
1 Solution

Accepted Solutions
MKguy
Virtuoso
Virtuoso
Jump to solution

The following PowerCLI snippet will get you the server and controller type, firmware version and driver version of hpsa/Smart Array based storage controllers:

Get-VMhost | Sort | Select Name, Model,
@{N='Controller Type'; E={(Get-VMHostHba -VMHost $_ | ? {$_.Model -imatch '.*(hpsa|smart).*'}).Model}},
@{N='Controller Firmware'; E={($_.ExtensionData.Runtime.HealthSystemRuntime.SystemHealthInfo.NumericSensorInfo | ? {$_.Name -like '*hpsa*firmware*'}).Name}},
@{N='hpsa Driver Version'; E={($_.ExtensionData.Runtime.HealthSystemRuntime.SystemHealthInfo.NumericSensorInfo | ? {$_.Name -like '*scsi-hpsa*'}).Name}} | Format-Table -Autosize

Sample output:

Name                     Model                Controller Type   Controller Firmware                           hpsa Driver Version
----                     -----                ---------------   -------------------                           -------------------
esxihost1022.local    ProLiant DL380 G6    Smart Array P410i    HP Smart Array Controller HPSA1 Firmware 6.40    Hewlett-Packard scsi-hpsa 5.0.0.60-1OEM.500.0.0.472560 2014-05-15 15:32:23.000
esxihost1023.local    ProLiant DL380 G6    Smart Array P410i    HP Smart Array Controller HPSA1 Firmware 6.40    Hewlett-Packard scsi-hpsa 5.0.0.60-1OEM.500.0.0.472560 2014-05-15 15:32:23.000
esxihost1024.local    ProLiant DL380 G6    Smart Array P410i    HP Smart Array Controller HPSA1 Firmware 6.40    Hewlett-Packard scsi-hpsa 5.0.0.60-1OEM.500.0.0.472560 2014-05-15 15:32:23.000
esxihost1033.local    ProLiant DL360p Gen8    Smart Array P420i    HP Smart Array Controller HPSA1 Firmware 5.42    Hewlett-Packard scsi-hpsa 5.0.0.60-1OEM.500.0.0.472560 2014-05-15 15:32:23.000
esxihost1034.local    ProLiant DL360p Gen8    Smart Array P420i    HP Smart Array Controller HPSA1 Firmware 5.42    Hewlett-Packard scsi-hpsa 5.0.0.60-1OEM.500.0.0.472560 2014-05-15 15:32:23.000
esxihost1041.local    ProLiant DL380 G5    Smart Array P400    HP Smart Array Controller HPSA1 Firmware 7.24    VMware scsi-hpsa 5.0.0-17vmw.500.0.0.469512 2011-08-19 01:58:59.000
esxihost1042.local    ProLiant DL380 G5    Smart Array P400    HP Smart Array Controller HPSA1 Firmware 7.24    VMware scsi-hpsa 5.0.0-17vmw.500.0.0.469512 2011-08-19 01:58:59.000
esxihost1160.local    ProLiant BL460c Gen8    Smart Array P220i    HP Smart Array Controller HPSA1 Firmware 5.22    Hewlett-Packard scsi-hpsa 5.0.0-40OEM.500.0.0.472560 2012-08-24 21:04:51.000
esxihost1161.local    ProLiant BL460c Gen8    Smart Array P220i    HP Smart Array Controller HPSA1 Firmware 5.22    Hewlett-Packard scsi-hpsa 5.0.0-40OEM.500.0.0.472560 2012-08-24 21:04:51.000

-- http://alpacapowered.wordpress.com

View solution in original post

0 Kudos
6 Replies
LucD
Leadership
Leadership
Jump to solution

Duplicate of  5.  Re: ESXi 5.0 U1 HBA Details: Power CLI I guess.

Can this thread be deleted ?


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

0 Kudos
haiiampc
Enthusiast
Enthusiast
Jump to solution

Hi,

I have Deleted other Thread.. and will keep this Thread Open.. If I can get some answer??

We found few ESX boxes are getting PSOD's.. due to Old RAID Card drivers (hpsa driver)..

VMware analyzed PSOD.. and suggested to find & update all ESX boxes with latest RAID Card Drivers..

Trying to find a "PowerCLI" Script.. which can prepare a list of "ESX / ESXi boxes & Their RAID-Card Drivers"..

Thank you..

If it helps --> Please award points - as appropriate - "Correct" or "Helpful"
0 Kudos
MKguy
Virtuoso
Virtuoso
Jump to solution

The following PowerCLI snippet will get you the server and controller type, firmware version and driver version of hpsa/Smart Array based storage controllers:

Get-VMhost | Sort | Select Name, Model,
@{N='Controller Type'; E={(Get-VMHostHba -VMHost $_ | ? {$_.Model -imatch '.*(hpsa|smart).*'}).Model}},
@{N='Controller Firmware'; E={($_.ExtensionData.Runtime.HealthSystemRuntime.SystemHealthInfo.NumericSensorInfo | ? {$_.Name -like '*hpsa*firmware*'}).Name}},
@{N='hpsa Driver Version'; E={($_.ExtensionData.Runtime.HealthSystemRuntime.SystemHealthInfo.NumericSensorInfo | ? {$_.Name -like '*scsi-hpsa*'}).Name}} | Format-Table -Autosize

Sample output:

Name                     Model                Controller Type   Controller Firmware                           hpsa Driver Version
----                     -----                ---------------   -------------------                           -------------------
esxihost1022.local    ProLiant DL380 G6    Smart Array P410i    HP Smart Array Controller HPSA1 Firmware 6.40    Hewlett-Packard scsi-hpsa 5.0.0.60-1OEM.500.0.0.472560 2014-05-15 15:32:23.000
esxihost1023.local    ProLiant DL380 G6    Smart Array P410i    HP Smart Array Controller HPSA1 Firmware 6.40    Hewlett-Packard scsi-hpsa 5.0.0.60-1OEM.500.0.0.472560 2014-05-15 15:32:23.000
esxihost1024.local    ProLiant DL380 G6    Smart Array P410i    HP Smart Array Controller HPSA1 Firmware 6.40    Hewlett-Packard scsi-hpsa 5.0.0.60-1OEM.500.0.0.472560 2014-05-15 15:32:23.000
esxihost1033.local    ProLiant DL360p Gen8    Smart Array P420i    HP Smart Array Controller HPSA1 Firmware 5.42    Hewlett-Packard scsi-hpsa 5.0.0.60-1OEM.500.0.0.472560 2014-05-15 15:32:23.000
esxihost1034.local    ProLiant DL360p Gen8    Smart Array P420i    HP Smart Array Controller HPSA1 Firmware 5.42    Hewlett-Packard scsi-hpsa 5.0.0.60-1OEM.500.0.0.472560 2014-05-15 15:32:23.000
esxihost1041.local    ProLiant DL380 G5    Smart Array P400    HP Smart Array Controller HPSA1 Firmware 7.24    VMware scsi-hpsa 5.0.0-17vmw.500.0.0.469512 2011-08-19 01:58:59.000
esxihost1042.local    ProLiant DL380 G5    Smart Array P400    HP Smart Array Controller HPSA1 Firmware 7.24    VMware scsi-hpsa 5.0.0-17vmw.500.0.0.469512 2011-08-19 01:58:59.000
esxihost1160.local    ProLiant BL460c Gen8    Smart Array P220i    HP Smart Array Controller HPSA1 Firmware 5.22    Hewlett-Packard scsi-hpsa 5.0.0-40OEM.500.0.0.472560 2012-08-24 21:04:51.000
esxihost1161.local    ProLiant BL460c Gen8    Smart Array P220i    HP Smart Array Controller HPSA1 Firmware 5.22    Hewlett-Packard scsi-hpsa 5.0.0-40OEM.500.0.0.472560 2012-08-24 21:04:51.000

-- http://alpacapowered.wordpress.com
0 Kudos
haiiampc
Enthusiast
Enthusiast
Jump to solution

Awesome, this is what We are looking for. Thank you.

If it helps --> Please award points - as appropriate - "Correct" or "Helpful"
0 Kudos
tdubb123
Expert
Expert
Jump to solution

I tried running this script but could not get the driver and firmware info. ay idea??

Screen Shot 2018-08-24 at 9.19.32 AM.png

0 Kudos
tdubb123
Expert
Expert
Jump to solution

i didnt see any hpsa here

Screen Shot 2018-08-24 at 9.37.55 AM.png

0 Kudos