Through this script you will get the all Esx drivers details from the required cluster.
Esx driver powerCLI script :
Open the PowerCLI icon (Run as Administrator) and you can execute commands manually, run scripts manually or automate your scripts with Task Scheduler (see below).
$hosts = Get-Cluster "Cluster_Name" | Get-VMHost forEach ($vihost in $hosts) { Write-Host -ForegroundColor Magenta Gathering Driver versions on $vihost $esxcli = get-vmhost $vihost | Get-EsxCli $info += $esxcli.software.vib.list() | Select @{N=VsMHost;E={$ESXCLI.VMHost}}, Name, Version, vendor, installdate #$info += $esxcli.software.vib.list() | Where { $_.Name -like scsi-fnic or elxnet or esx-xserver} | Select @{N=VMHost;E={$ESXCLI.VMHost}}, Name, Version, installdate #$info += $esxcli.software.vib.list() | Where { $_.Name -like elxnet} | Select @{N=VMHost;E={$ESXCLI.VMHost}}, Name, Version, installdate #$info += $esxcli.software.vib.list() | Where { $_.Name -like esx-xserver} | Select @{N=VMHost;E={$ESXCLI.VMHost}}, Name, Version, installdate #$info += $esxcli.software.vib.list() | Where { $_.Name -like esx-xserver} | Select @{N=VMHost;E={$ESXCLI.VMHost}}, Name, Version, installdate #Get-View -ViewType hostsystem -Property name,runtime.boottime -Filter @{"name" = "$ViHost"} | Select-Object Name, @{N="UptimeDays"; E={[math]::round((((Get-Date) - ($_.Runtime.BootTime)).TotalDays),1)}}, @{N="UptimeHours"; E={[math]::round((((Get-Date) - ($_.Runtime.BootTime)).TotalHours),1)}}, @{N="UptimeMinutes"; E={[math]::round((((Get-Date) - ($_.Runtime.BootTime)).TotalMinutes),1)}} } $Info | Export-Csv -NoTypeInformation IO-Device-Report.csv # | Where { $_.Name -like net-enic} | Select @{N=VsMHost;E={$ESXCLI.VMHost}}, Name, Version
Thanks hope you like it.
Rajiv Pandey.