VMware Cloud Community
RAJESH3311
Enthusiast
Enthusiast
Jump to solution

PowerCli to get HBA Firmware details

Dear,

Kindly share a PowerCLI script to find out the Fiber Channel HBA Firmware Version, Driver Version, BIOS version and FCODE version.

Regards

Rajesh

21 Replies
LucD
Leadership
Leadership
Jump to solution

Have you tried the solution in Re: Host firmware, hba driver, NIC version etc,

It does require SSH access to each ESXi node.


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

0 Kudos
NeenaJim
Enthusiast
Enthusiast
Jump to solution

@LucD , Can you please help me on rearranging this output:

I am getting the result 2 times as below. Not sure what parameter can be changed in the script to avoid the repetition. I have rearranged the script just for showing the output only fnic and enic. But getting the result as below.

NeenaJim_0-1638484032029.png

PS C:\Scripts> Get-Datacenter | % {
$datacenter=$_
foreach($esx in Get-VMhost -Location $datacenter){
$esxcli = Get-EsxCli -VMHost $esx
$nic = Get-VMHostNetworkAdapter -VMHost $esx | Select -First 1 | select -ExpandProperty Name
$hba =Get-VMHostHBA -VMHost $esx -Type FibreChannel | where {$_.Status -eq "online"} | Select -First 1 |select -ExpandProperty Name
Get-VMHostHBA -VMHost $esx -Type FibreChannel | where {$_.Status -eq "online"} |
Select @{N="HostName";E={$($_.VMHost | Get-VMHostNetwork).HostName}},
@{N="fnicdriver";E={$esxcli.system.module.get("nfnic").version}},
@{N="enicdriver";E={$esxcli.system.module.get("nenic").version}}
}
}

0 Kudos