Quantcast
Channel: VMware Communities : All Content - All Communities
Viewing all articles
Browse latest Browse all 175326

query hosts

$
0
0

Hi,

 

I get all the hosts from a cluster with the command:

var hosts = cluster.getAllHostSystemOfCluster();

 

I want to pass over the array of hosts, and check if the host is available and not in maintenance mode and get all the datastore from the host.

 

Thanks!


Viewing all articles
Browse latest Browse all 175326

Trending Articles