VMware Cloud Community
tdubb123
Expert
Expert

find out which vmnics are attached to a dvs

I got a list of hosts that I am trying to find out which vmnic its attached to the vds

get-content esxhosts.txt | % { get-vmhostnetworkadapter -virtualswitch dvs -vmhost $_ } | select Name, Devicename

but does not seem to be working

any idea?

0 Kudos
3 Replies
LucD
Leadership
Leadership

Have a look at Re: Script for DVSwitch Configuration


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

0 Kudos
HassanAlKak88
Expert
Expert

Hello,

kindly check the following command, give you a detailed information on all vmnics in a specific host:

pastedImage_1.png

Please consider marking this answer "CORRECT" or "Helpful" if you think your question have been answered correctly.

Cheers,

VCIX6-NV|VCP-NV|VCP-DC|

@KakHassan

linkedin.com/in/hassanalkak


If my reply was helpful, I kindly ask you to like it and mark it as a solution

Regards,
Hassan Alkak
0 Kudos
LucD
Leadership
Leadership

You do realise that this will only show the VMKernel?


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

0 Kudos