Quantcast
Channel: VMware Communities : Discussion List - vRealize Orchestrator
Viewing all articles
Browse latest Browse all 6251

Find the vCenter associated with ESXi host

$
0
0

Hello,

I am trying to find a way to extract the vCenter(VC) associated with a particular ESXi hosts?

 

I can find the VC:HostSystem but cannot seem to figure out how to link this back to the vCenter.  I cannot use "EsxiHost.parent.parent.parent" as the host might not be part of a cluster.  Might only be under a DC.  I looked under the HostConfig, About, Summary but could not find anything related to VC.

I could find all the hosts of a VC and then compare that array with my array of hosts but, that is ugly.

I did find an option to get the managedserverip which is the Ip of VC and then do a nslookup but, again ugly.

 

Any suggestions would be great.  I am writing this workflow in JS.

Thanks

B


Viewing all articles
Browse latest Browse all 6251

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>