VMware Cloud Community
NeenaJim
Enthusiast
Enthusiast

Find the FNIC version of ESXi hosts

Can someone please help me to find the FNIC version of all the ESXi hosts in a vCenter using a script?

Labels (1)
0 Kudos
3 Replies
LucD
Leadership
Leadership

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

0 Kudos
NeenaJim
Enthusiast
Enthusiast

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.

0 Kudos
rclarke2
Contributor
Contributor

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

}

0 Kudos