Unfortunately this script does not obtain a fware version.
I had already tested this one.
I found a way to obtain this data via racadm call using the hwinventory function.
$i = 0
$cards = $hbacards.output
while ($i -ne $cards.count) {
$slot = $cards[$i].split(":")[0].trim()
$hbaware = invoke-sshcommand -index 0 -command "hwinventory $slot"
$HbaFware = $hbaware.output |select-string "Family Version"
$Hfware = $hbafware.line.split(":")[1].trim()
write-host "current hba fware = "$Hfware
$i++
}
That will give me the correct output from idrac ssh session.