Solved

PowerCLI Script for Determnin Storage Allocation per Resource Pool within vCenter

Posted on 2014-10-14
7
183 Views
Last Modified: 2014-12-02
I am looking for a PowerCLI script that I can run from a Windows server that will report how much storage has been allocated to all resource pools (multiple) present in vCenter.


Lipotech
0
Comment
Question by:lipotech
  • 3
  • 3
7 Comments
 
LVL 5

Expert Comment

by:Uni Kitty
ID: 40380910
Hi There!

I would recommend VMware's developer resource guides for Cmdlets as a starting point. I'm not sure what version of vSphere you're on, here's the link for 5.5.

http://pubs.vmware.com/vsphere-55/topic/com.vmware.powercli.cmdletref.doc/Overview.html

I like to point folks to VMware Flings, check out Onyx, it will monitor the communication between vCenter and the vSphere client and translate it into PowerShell code.
https://labs.vmware.com/flings/onyx

Hope that helps!
Melly
0
 

Author Comment

by:lipotech
ID: 40386794
Melly,

The information you provided is helpful. But I am still seeking a pre-written PowerShell script that can perform an audit of the each Resource Pool that exist on any given vCenter server.  

Let me know if you are aware of where I can look to find such a script.

Lipotech
0
 
LVL 5

Expert Comment

by:Uni Kitty
ID: 40387189
If you don't get a response here, you could try the VMware forums. I've seen a few PowerCLI scripts shared out there and maybe someone has something that can get you started at least.  

Try Onyx though, because it will output powershell examples for you, but I see that what you're doing is pretty specific.

I found this great blog for you that has a ton of resources, and it includes the community forums.
http://www.vtesseract.com/post/10685628144/resources-for-getting-started-with-powercli-automation

Good luck!
0
Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

 

Author Comment

by:lipotech
ID: 40387217
Thank you.  I checkout these sources and close this case soon.

Lipotech
0
 

Author Comment

by:lipotech
ID: 40387227
Thanks
0
 
LVL 5

Accepted Solution

by:
Uni Kitty earned 500 total points
ID: 40387233
I poked around and found this sample for you:
https://communities.vmware.com/message/2186208#2186208
0

Featured Post

Zoho SalesIQ

Hassle-free live chat software re-imagined for business growth. 2 users, always free.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Last article we focus in how to VMware: How to create and use VMs TAGs – Part 1 so before follow this article and perform the next tasks, you should read the first article how to create the TAG before using them in Veeam Backup Jobs.
This article will show you how to create an ISO CD-ROM/DVD-ROM image (*.iso), and MD5 checksum signature, for use with VMware vSphere Hypervisor 6.5 (ESXi 6.5). It's a good idea to compare checksums, because many installations fail because of a corr…
Teach the user how to use vSphere Update Manager to update the VMware Tools and virtual machine hardware version Open vSphere Client: Review manual processes for updating VMware Tools and virtual hardware versions: Create a new baseline group in vSp…
Advanced tutorial on how to run the esxtop command to capture a batch file in csv format in order to export the file and use it for performance analysis. He demonstrates how to download the file using a vSphere web client (or vSphere client) and exp…

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now