Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions powershell/io-devices-report.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -74,12 +74,15 @@ Foreach ($device in $devices) {
$vmhbaId = $device.VMHost |Get-VMHostHba -ErrorAction SilentlyContinue | where { $_.PCI -like '*'+$device.Id}
$Info.Device = $vmhbaId.Device
$Info.Driver = $vmhbaId.Driver

# fix lsi_mr3 to lsi-mr3
$vibnamefixed = $vmhbaId.Driver
$vibnamefixed = $vibnamefixed -replace"_","-"

# Get driver vib package version
Try{
$driverVib = $esxcli.software.vib.get.Invoke(@{vibname = "scsi-"+$vmhbaId.Driver})
$driverVib = $esxcli.software.vib.get.Invoke(@{vibname = "scsi-"+$vibnamefixed})
}Catch{
$driverVib = $esxcli.software.vib.get.Invoke(@{vibname = $vmhbaId.Driver})
$driverVib = $esxcli.software.vib.get.Invoke(@{vibname = $vibnamefixed})
}
$Info.VibVersion = $driverVib.Version
}
Expand Down