VMWare ESXi 6.6.5 hosts, export list of VMNICs and Port group mapping?

Hello,
I have RVTools and pulled a report using that but can't seem to gather all the info I need in a easy to use format. Is there a tool or method that I can use to get a list of all hosts and their VMNIC and the specific port group they are assigned to?
 
Basically I need to know all hosts and VMNICs that are assigned to a specific set of port groups.
REIUSAAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

65tdRetiredCommented:
Is powercli installed could try:
Output to CSV VM host network details:

Get-VMHostNetworkAdapter | select VMhost, Name, IP, SubnetMask, Mac, PortGroupName, vMotionEnabled, mtu, FullDuplex, BitRatePerSec | Export-Csv C:\VMHostNetworkDetails.csv

see:
https://www.vmadmin.co.uk/resources/48-vspherepowercli/251-powerclinetworkoutputcsv
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
REIUSAAuthor Commented:
Thanks for the link. I ran the command and it worked but it only shows the port group for VMK0 and VMK1. All of the VMNICs are blank under port group although it shows the VMNIC MAC address. Using PowerCLI 6.5.1.

Anyone have an idea why the VMNICs are blank under port group or how I can tweak it to show correctly? Thanks!
0
65tdRetiredCommented:
0
Simplify Active Directory Administration

Administration of Active Directory does not have to be hard.  Too often what should be a simple task is made more difficult than it needs to be.The solution?  Hyena from SystemTools Software.  With ease-of-use as well as powerful importing and bulk updating capabilities.

REIUSAAuthor Commented:
They are vDS.
0
REIUSAAuthor Commented:
Tried playing around with the get-vdswitch command and can't get anywhere.
0
REIUSAAuthor Commented:
Anyone have any ideas from a powershell powerCLI perspective?
0
65tdRetiredCommented:
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Powershell

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.