Get number of vCPU's used in cluster

From VI-Toolkit
Revision as of 15:54, 19 August 2009 by Wila (talk | contribs) (William Lam's getNumofvCPUInCluster.pl script)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

getNumofvCPUInCluster.pl

author: William Lam

Description

Allows you to retrieve the number of vCPU's used in the cluster you provide as a parameter.

Usage:

[vi-admin@scofield]$ ./getNumofvCPUInCluster.pl --server reflex.primp-industries.com --username primp --cluster primp-cluster
This could take a few minutes depending on the size of the cluster ...

Cluster: primp-cluster
	Host: primp-esx01 
		Misc.RunningVCpuLimit: 128
		# of vCPU on host: 12

Host: primp-esx02 Misc.RunningVCpuLimit: 128 # of vCPU on host: 13 Host: primp-esx03 Misc.RunningVCpuLimit: 128 # of vCPU on host: 16 Host: primp-esx04 Misc.RunningVCpuLimit: 128 # of vCPU on host: 16

     ..........
     # of vCPU: 463

Location

http://communities.vmware.com/docs/DOC-10556