We help IT Professionals succeed at work.

Check out our new AWS podcast with Certified Expert, Phil Phillips! Listen to "How to Execute a Seamless AWS Migration" on EE or on your favorite podcast platform. Listen Now

x

How do I get Provisioned information from Datastores using Powershell

exsuprt
exsuprt asked
on
Medium Priority
1,560 Views
Last Modified: 2012-05-11
I have two main VMware environments, back-end and customer facing and I have vKernel monitoring on the customer facing environment. Each day I get a cool report, Capacity Monitor Datastore Statistics Report, which gives me some useful information (total space, allocated space, free space, commited %, utilized %). My experience with powershell is related to Exchange and not VMware so all the commands available are new and I am just learning them. So far I have not found a way to get this same type of information (very useful with thin provisioned disks) using powershell.
 
I see that get-datastore will give me some of the information but nothing related to the ‘over’ allocated space of each datastore (i.e. 2 TB lun with 2.7 TB allocated and 750 GB free). I am hoping someone here can point me in the direction to where I can find this information/command(s) in powershell? Thank you for your time.
Comment
Watch Question

VMware and Virtualization Consultant
CERTIFIED EXPERT
Fellow
Expert of the Year 2017
Commented:
Unlock this solution with a free trial preview.
(No credit card required)
Get Preview

Author

Commented:
Thank you for your response, I always appreciate people sharing the scripts they spend time on creating.

I am still curious if you or anyone might know the command(s) I would need to use to get those provisioned sizes of the datastores.  I've done searches using all the search criteria I can think of and have no luck so far in finding anything useful.  VMware's site isn't quite as useful as I had hoped when it comes to the powershell commands.

Again, thanks...

Author

Commented:
Ok, I have another thought on how to get this information.

Is there a way I can get the Allocated (Provisioned) space per VM?
Andrew Hancock (VMware vExpert PRO / EE Fellow)VMware and Virtualization Consultant
CERTIFIED EXPERT
Fellow
Expert of the Year 2017

Commented:
Have you looked at the The VMware Community PowerPack

This has VM Guest Disk sizes, and if this isn't in your VMware Toolbox it should be!

http://www.vmware.com/solutions/cloud-computing/public-cloud/vcloud-express.html

and also VMware Labs VMwarte Guest Console

(another one for the Toolbox!)
Andrew Hancock (VMware vExpert PRO / EE Fellow)VMware and Virtualization Consultant
CERTIFIED EXPERT
Fellow
Expert of the Year 2017

Commented:
this is the missing URL for VGC

http://labs.vmware.com/flings/vgc
Unlock the solution to this question.
Thanks for using Experts Exchange.

Please provide your email to receive a free trial preview!

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.