VMware Cloud Community
jessem
Enthusiast
Enthusiast
Jump to solution

Script to collect certain stats about hosts and VMs

I am trying to accomplish getting the following stats put in a script.

When I run this script, it should be run per 'vcenter' and output the following.

Name of cluster / Number of hosts/ Number of VMs and Templates / Assigned Total Memory of all VMs on that cluster (not of what's actually being in use)

So for example, in cluster XYZ with 4 hosts, if I have 20 VMs that I have 4GB of RAM to each VM, the output should be 80GB

XYZ     4     20     80GB

22 Replies
LucD
Leadership
Leadership
Jump to solution

Indeed, there should be.

Well spotted :smileyblush:


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

0 Kudos
jessem
Enthusiast
Enthusiast
Jump to solution

Thanks for all your help!  Again and again.  I can't mark the question answered again but for me, you answered it right twice!

0 Kudos
jessem
Enthusiast
Enthusiast
Jump to solution

appreciate the pointer!  it worked

0 Kudos