- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
We have Dell hardware and this is how I got the info via PowerCLI. Replace "lpfc" with the module name you're looking for drivers from.
# Clear the List variable
$List = @()
# Start Loop to run command against all hosts in the Staging Cluster
foreach ($vmhost in ((get-cluster Cluster1)| get-vmhost))
{
# Pipe the Get-esxcli cmdlet into the $esxcli variable
$esxcli = $vmhost | get-esxcli
# I used this to gather the VMHost Name for the exported CSV file.
$VMHostName = $vmhost.Name
# This is the ESXCLI command I ran to get the Driver Version out of the ESXCLI System Module Get DCUI Shell.
$List += $esxcli.system.module.get("lpfc") | Select-object @{N="VMHostName";E={$VMHostName}}, Module, Version
}
# Results are compiled and exported to a CSV file.
$List | export-csv -path E:\ben\vmware\HBA_info.csv -notypeinformation