How can i get the onboard network cards of the servers from dell and hp which are from vendor broadcom?
You can determine the broadcom nic by the driver that's loaded for a nic.
Try this oneliner:
Get-VMHost | Get-VMHostNetworkAdapter | Where {$_.ExtensionData.Driver -like "bnx*"} | Select VMHost, DeviceName, Mac, @{N="Pci";E={$_.ExtensionData.Pci}}, @{N="Driver";E={$_.ExtensionData.Driver}} | ft
You could try my Name that hardware script.
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
Have not tryed it yet but i think:
Check the MAC adresses of some of these NIC's
MAC adresses woud be given to vendors in "ranges".
So... are the NIC's all from Broadcom, you have a god
chance that the first three octets 00:00:86:xx:xx:xx are
always the same. Its one of the Broadcom - MAC ranges.
Hypotese: Maybe you can catch these NIC's by the MAC adresses.
You can determine the broadcom nic by the driver that's loaded for a nic.
Try this oneliner:
Get-VMHost | Get-VMHostNetworkAdapter | Where {$_.ExtensionData.Driver -like "bnx*"} | Select VMHost, DeviceName, Mac, @{N="Pci";E={$_.ExtensionData.Pci}}, @{N="Driver";E={$_.ExtensionData.Driver}} | ft