[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
[vi-admin@scofield]$ ./getNumofvCPUInCluster.pl --server mauna-loa.primp-industries.com --username primp --cluster primpProd-cluster
This could take a few minutes depending on the size of the cluster ...
Cluster: primp-cluster
Host: primp-esx01
Misc.RunningVCpuLimit: 512
# of vCPU on host: 21
Host: primp-esx02
Misc.RunningVCpuLimit: 512
# of vCPU on host: 22
# of vCPU: 23
Comments |
|
Aug 19, 2009 4:57 PM
lamw says:
in response to: RS_1
I've just updated the code so it'll make sure the host is not in maintenance mode and also it's in a connected state. Basically it tried to print something that was not defined. ========================================================================= William Lam VMware vExpert 2009 VMware ESX/ESXi scripts and resources at: http://engineering.ucsb.edu/~duonglt/vmware/ vGhetto Script Repository VMware Code Central - Scripts/Sample code for Developers and Administrators http://twitter.com/lamw If you find this information useful, please award points for "correct" or "helpful". |
Hi, i got this error on any host in maintenance mode or with 0 VM on it : Use of uninitialized value in concatenation (.) or string at ./getNumofvCPUInCluster.pl line 51.
Hope it help