vmware Advanced Search get DistributedVirtualSwitch name
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.
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.