VMware Cloud Community
CHRISMY
Contributor
Contributor

Searching VM's by nic type

Hello,

I'm hoping someone may know of a way to search for VM's with a specific Adapter Type in the NIC config. I'm trying to get a list of all our VM's configured with VMXNET 3 network adapter types. I haven't been able to figure out a way in advanced search to run this. It would also be helpful to be able to search by Network as well. Does anyone have a suggestion how to do this?

Thanks,

Chris

Tags (2)
3 Replies
TheBobkin
Champion
Champion

Hello CHRISMY​,

Welcome to Communities.

This is not something you will be able to achieve via the GUI and would be better addressed via scripts, PowerCLI or an inventory management tool.

I am unaware if anything crucial has changed with regard to syntax since this was originally posted but LucD​ and others covered this long ago:

Script to list VM Network Adapter Type, exporting issue

Bob

LucD
Leadership
Leadership

If you only need to know the VMs, you can just do

Get-VM | where{Get-NetworkAdapter -VM $_ | where{$_.Type -eq 'Vmxnet3'}}


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

CHRISMY
Contributor
Contributor

Thanks LucD. This is exactly what I needed. Apologies for not being able to find the previous posts about this.

0 Kudos