Listing all VM's in a cluster: Difference between revisions

From VI-Toolkit
Jump to navigation Jump to search
Listing all VM's in a cluster from Richard Garsthagen's web site
 
m formatting
 
Line 6: Line 6:
==== Usage: ====
==== Usage: ====
Change the following login information in the script to match your environment.
Change the following login information in the script to match your environment.
my $username = "vmware";
  my $username = "vmware";
  my $password = "vi3demo";
my $password = "vi3demo";
  my $service_url = "https://172.28.1.250/sdk/vimService";
 
  my $cluster_name = "ESX Cluster";
my $service_url = "https://172.28.1.250/sdk/vimService";
 
 
my $cluster_name = "ESX Cluster";


Then run it like this:
Then run it like this:

Latest revision as of 23:20, 19 August 2009

vms_list_cluster.pl

author: Jeremy van Doorn

Description

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

Usage:

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

 my $username = "vmware";
 my $password = "vi3demo";
 my $service_url = "https://172.28.1.250/sdk/vimService";
 my $cluster_name = "ESX Cluster";

Then run it like this:

[vi-admin@]$ ./vms_list_cluster.pl

Location

http://www.run-virtual.com/?page_id=182