Original Message:
Sent: Sep 13, 2024 11:41 PM
From: Avesh Sampara
Subject: VMkernel Name is no more visible on the PCI list when we run the esxcli hardware command in vSphere Version 8
When I run the below command on the ESXi version VMware ESXi, 8.0.2, 23305546.
Address : 0000:5b:00.3
Bus : 91
Chassis : 0
ConfiguredOwner : VMkernel
CurrentOwner : VMkernel
DependentDevice : PCI 0:91:0:3
DeviceClass : 512
DeviceClassName : Ethernet controller
DeviceID : 5631
DeviceLayerBusAddress : s00000005.03
DeviceName : Ethernet Controller X710 for 10GBASE-T
FPTSharable : true
Flags : 12289
Function : 3
HardwareLabel :
IRQ : 255
InterruptLine : 255
InterruptVector : 0
ModuleID : 63
ModuleName : i40en
NUMANode : 1
PCIPin : 0
ParentDevice : PCI 0:90:0:0
PassthruCapable : true
PhysicalSlot : 5
ProgrammingInterface : 0
ResetMethod : Function reset
RevisionID : 2
Segment : 0
Slot : 0
SlotDescription : PCIe Slot 5
SpawnedBus : 0
SubDeviceID : 0
SubVendorID : 32902
VMkernelName :
VendorID : 32902
VendorName : Intel(R)
VirtualFunction :
Not sure if it is a problem with this specific version of ESXi 8.0.2c
Original Message:
Sent: Sep 13, 2024 11:05 AM
From: LucD
Subject: VMkernel Name is no more visible on the PCI list when we run the esxcli hardware command in vSphere Version 8
Seems to work for me in vSphere 8.*
------------------------------
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
Original Message:
Sent: Sep 13, 2024 10:56 AM
From: Avesh Sampara
Subject: VMkernel Name is no more visible on the PCI list when we run the esxcli hardware command in vSphere Version 8
Hi LucD,
Yes tried it and still it show the empty entries as the modules names are populating as lpfc or with the network module names as mentioned below.
ModuleName : i40en or ModuleName : lpfc.
We are unable to filter with below command.
$esxcli2 = Get-EsxCli -VMHost $vmhost -V2
$pciDevices = $esxcli2.hardware.pci.list.Invoke() |
Where-Object { $_.ModuleName -like "vmhba*" -or
$_.ModuleName -like "vmnic*" -or
$_.ModuleName -like "vmgfx*" } |
Sort-Object -Property ModuleName
foreach ($pciDevice in $pciDevices) {
$device = $vmhost | Get-VMHostPciDevice |
Where-Object { $pciDevice.Address -match $_.Id }
$driverVersion = $esxcli2.system.module.get.Invoke(@{module = $pciDevice.ModuleName }) |
Select-Object -ExpandProperty Version -ErrorAction SilentlyContinue
}
Can you confirm if the VMKernel Name is deprecated in vSphere version 8 ?
Original Message:
Sent: Sep 12, 2024 04:38 AM
From: LucD
Subject: VMkernel Name is no more visible on the PCI list when we run the esxcli hardware command in vSphere Version 8
Did you try with ModuleName?
$esxcli2 = Get-EsxCli -VMHost $vmhost -V2$esxcli2.hardware.pci.list.Invoke()$pciDevices = $esxcli2.hardware.pci.list.Invoke() | Where-Object { $_.ModuleName -like "vmhba*" -or $_.ModuleName -like "vmnic*" -or $_.ModuleName -like "vmgfx*" } | Sort-Object -Property ModuleNameforeach ($pciDevice in $pciDevices) { $device = $vmhost | Get-VMHostPciDevice | Where-Object { $pciDevice.Address -match $_.Id } $driverVersion = $esxcli2.system.module.get.Invoke(@{module = $pciDevice.ModuleName }) | Select-Object -ExpandProperty Version -ErrorAction SilentlyContinue}
------------------------------
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
Original Message:
Sent: Sep 12, 2024 02:24 AM
From: Avesh Sampara
Subject: VMkernel Name is no more visible on the PCI list when we run the esxcli hardware command in vSphere Version 8
Can you suggest any alternative way to find the VMkernel Name as we are unable to fetch the detail as we are unable to fetch the details from the below commands. Please suggest any alternative
$esxcli2 = Get-EsxCli -VMHost $vmhost -V2
$esxcli2.hardware.pci.list.Invoke()
As we are trying to fetch the data using the above commands.
Write-Host "`tGathering information from $vmhost ..."
$pciDevices = $esxcli2.hardware.pci.list.Invoke() | Where-Object {$_.VMKernelName -like "vmhba*" -or $_.VMKernelName -like "vmnic*" -or $_.VMKernelName -like "vmgfx*" } | Sort-Object -Property VMKernelName
foreach ($pciDevice in $pciDevices) {
$device = $vmhost | Get-VMHostPciDevice | Where-Object { $pciDevice.Address -match $_.Id }
#Write-Output -Message ((Get-Date -Format G) + "`tGet driver version for: " + $pciDevice.ModuleName)
$driverVersion = $esxcli2.system.module.get.Invoke(@{module = $pciDevice.ModuleName}) | Select-Object -ExpandProperty Version -ErrorAction SilentlyContinue