Quantcast
Channel: VMware Communities: Message List - vSphere Management SDK
Viewing all articles
Browse latest Browse all 2052

Re: How to get all ESX hosts from a vcenter

$
0
0

As Laurent pointed out, open source vijava can help that with one line like the following:

 

  ManagedEntity[] mes = new InventoryNavigator(rootFolder).searchManagedEntities("HostSystem");

 

Check out more with the Hello World sample:

http://sourceforge.net/p/vijava/code/HEAD/tree/trunk/src/com/vmware/vim25/mo/samples/HelloVM.java

 

For the support, you can try the commercial version vijavaNG:

http://www.doublecloud.org/2014/01/announcing-vijavang-much-lighter-and-faster-with-commercial-license-and-support/

 

Good luck!

 

Steve


Viewing all articles
Browse latest Browse all 2052

Trending Articles



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