Can someone please help me to find the FNIC version of all the ESXi hosts in a vCenter using a script?
Seeing your history of never coming back when someone replies to one of your questions, I'm going to skip this one.
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
I am sorry about that. But not sure where is the disconnect. I checked the history and I see I have replied for all the thread. Not sure which one I missed it. Once again sorry if I missed it.
I goggled your question;
https://davidring.ie/2016/07/01/cisco-ucs-determining-esxi-fnicenic-via-powercli/
$hosts = Get-Cluster $VMcluster | Get-VMHost
forEach ($vihost in $hosts)
{
Write-Host -ForegroundColor Magenta “Gathering Driver versions on” $vihost
$esxcli = get-vmhost $vihost | Get-EsxCli
$esxcli.software.vib.list() | Where { $_.Name -like “net-enic”} | Select @{N=”VMHost”;E={$ESXCLI.VMHost}}, Name, Version
$esxcli.software.vib.list() | Where { $_.Name -like “scsi-fnic”} | Select @{N=”VMHost”;E={$ESXCLI.VMHost}}, Name, Version
}