VMware Cloud Community
meistermn
Expert
Expert
Jump to solution

Need a script to find the onboard nic which are broadcom?

How can i get the onboard network cards of the servers from dell and hp which are from vendor broadcom?

0 Kudos
1 Solution

Accepted Solutions
avlieshout
VMware Employee
VMware Employee
Jump to solution

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
Arnim van Lieshout Blogging: http://www.van-lieshout.com Twitter: http://www.twitter.com/avlieshout If you find this information useful, please award points for "correct" or "helpful".

View solution in original post

0 Kudos
3 Replies
LucD
Leadership
Leadership
Jump to solution

You could try my Name that hardware script.


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

Hoschi201110141
Enthusiast
Enthusiast
Jump to solution

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.

0 Kudos
avlieshout
VMware Employee
VMware Employee
Jump to solution

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
Arnim van Lieshout Blogging: http://www.van-lieshout.com Twitter: http://www.twitter.com/avlieshout If you find this information useful, please award points for "correct" or "helpful".
0 Kudos