Get number of vCPU's used in cluster

From VI-Toolkit
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

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