Listing all VM's in a cluster

From VI-Toolkit
Jump to navigation Jump to search

author: Jeremy van Doorn


Allows you to retrieve the names of the hosts, number and name of virtual machines in cluster.


Change the following login information in the script to match your environment.

 my $username = "vmware";
 my $password = "vi3demo";
 my $service_url = "";
 my $cluster_name = "ESX Cluster";

Then run it like this:

[vi-admin@]$ ./