Dear,
Kindly share a PowerCLI script to find out the Fiber Channel HBA Firmware Version, Driver Version, BIOS version and FCODE version.
Regards
Rajesh
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
@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.
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}}
}
}