Marcus316
Enthusiast
Enthusiast

PowerCLI script for vSphere capacity planning

Hello everyone!

After recent discussion on vSphere Capacity planning, I thought I would share one of the tools I use for this purpose. This is a side project I've been working on for few months.

I present to you, my very own "VMware Capacity & Performance Report PowerCLI script (v2.1 Community edition)"

http://1drv.ms/1J00vkq

(Click here then click on "Download")

This is a complex PowerCLI script I wrote, that generates an e-mail report that gives you insight into the current state of your VMware vSphere environment's capacity. It generates tables, pie charts and line charts with information about CPU, Memory & Storage capacity, VM Provisioning Potential, Cluster Resilience and more. Check the script's #INFORMATION block for more information about prerequisites, script input and output.

Have a look at the report it generates and let me know what you think of it!

Please share your thoughts and comments!

Marc Davoli

http://ca.linkedin.com/in/marcvincentdavoli/

Edited on May 25 : Changed OneDrive link to updated script v2.1 with bugfix (for cluster names with a space in it)

160 Replies
LucD
Leadership
Leadership

That looks nice, I'll give it a try.

Thanks for sharing.


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

davidcomerford
Contributor
Contributor

Well done, really useful script. Already have it on a monthly schedule Smiley Happy

0 Kudos
Pinball
Enthusiast
Enthusiast

Hi Marc

First thing, this is a great piece of work and thanks for sharing it.

Do you know if it's possible to generate the report on a per Cluster base and not the individual ESXi host?

Thanks

Johan

0 Kudos
doyart
Contributor
Contributor

will this script stop any thing or will it just run, I see something referring to "REMOVING HOST", but cann not see that command.

Obviously I cannot just run and it stop a Host.

Thanks,

Art

0 Kudos
Marcus316
Enthusiast
Enthusiast

Hi Pinball,

First, thanks!

Second, that's not how this script is programmed and I believe it would take a lot of work to change it.

You can always add a section at the end of the script that does this kind of thing.

Good luck!

Marc

0 Kudos
Marcus316
Enthusiast
Enthusiast

Hi Doyart,

This script doesn't modify anything once it connects to vCenter.

In fact, you can run the script with Read Only permissions, it won't make a difference because all the script does is "GET" information.

Marc

0 Kudos
doyart
Contributor
Contributor

Marc,

Thanks for the fast reply, it seems to take long for me, I will try again tomorrow and give you update. I will say this is a very well written script nice job.

On a side note, in Vsphere where  you go to summary tab of the Cluster there is a View Resource distribution chart, do you know how I can retrieve this in Powercli, simple version?

Seems to be elusive in threads.

Art

0 Kudos
Jellas
Enthusiast
Enthusiast

Hi Marcus316,

Not able to download the script. Link is broken.

http://sdrv.ms/1lNTIvu

Could you please reshare the link .

Thanks,
Sravana

0 Kudos
markdjones82
Expert
Expert

I would like to check it out as well, the link is broken for me as well.

http://www.twitter.com/markdjones82 | http://nutzandbolts.wordpress.com
0 Kudos
LucD
Leadership
Leadership

Does the long URL work for you ?

For me it works with both


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

0 Kudos
doyart
Contributor
Contributor

It works for me.. nice script.  Thanks

0 Kudos
markdjones82
Expert
Expert

Seems as though my corp firewall is blocking 😕

http://www.twitter.com/markdjones82 | http://nutzandbolts.wordpress.com
0 Kudos
LucD
Leadership
Leadership

I experience that with some shortened URLs as well :smileycry:


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

0 Kudos
markdjones82
Expert
Expert

Even the long one is blocked lol, any drive download sites we block.  Guess I'll have to figure out a "work around" (ie get it on home with usb transport)

http://www.twitter.com/markdjones82 | http://nutzandbolts.wordpress.com
0 Kudos
LucD
Leadership
Leadership

So much for security, block the site, but allow USB keys on/off premises :smileygrin:

Rest assured, I (mis)use that security hole as well :smileyblush:


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

0 Kudos
msaliu
Contributor
Contributor

Very useful script and thanks for sharing.

0 Kudos
dixitr
Contributor
Contributor

Good Script. Thanks

One quick question. Can we get the report in pdf format ?

0 Kudos
esxi1979
Expert
Expert

   LucD Guru  User Moderators vExpert  

 

0 Kudos
Marcus316
Enthusiast
Enthusiast

Hi Dixitr,

Unfortunately not. The script is built from the ground up to be exported to HTML / e-mail format.

A workaround I could suggest is to open the exported .HTML file and save that page as a PDF file.

It's manual, but it works.

Thanks

0 Kudos