Regular Contributor.. CMelsby Regular Contributor..
Regular Contributor..
397 views

vmware Advanced Search get DistributedVirtualSwitch name

Hi

I need to get distributed virtual switch name by search hostname.

The dvs-xxx is found, but I need the name in ordre to use  "Add Distributed Port Group'

To get the dvs-xxx name I used this settings propsType = DistributedVirtualPortgroup and propsPathset = config

I  tryed to use propsType = DistributedVirtualSwitch and propsPathset = summary but no luck.

Regards

Carsten

Labels (2)
0 Likes
1 Reply
scuda20 Super Contributor.
Super Contributor.

Re: vmware Advanced Search get DistributedVirtualSwitch name

 I would be interested to see if anyone knows this as well. I have searched through the mob and have not found a way to do this. The quickest way that I have found is to use powercli to do a get-VMHost -name "<name/ip>" | Get-VirtualSwitch | select Name

This requires you to install powercli on a Windows RAS and use powershell to get it. The open-source powershell on linux looks promising and VMWare is working on a beta that will work on linux & MAC but I believe is still a little ways off.

 

 

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.