Solved

PowerCLI Script for Determnin Storage Allocation per Resource Pool within vCenter

Posted on 2014-10-14
7
185 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
Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

 

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

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

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

This is an issue that we can get adding / removing permissions in the vCSA 6.0. We can also have issues searching for users / groups in the AD (using your identify sources). This is how one of the ways to handle this issues and fix it.
HOW TO: Connect to the VMware vSphere Hypervisor 6.5 (ESXi 6.5) using the vSphere (HTML5 Web) Host Client 6.5, and perform a simple configuration task of adding a new VMFS 6 datastore.
Teach the user how to edit .vmx files to add advanced configuration options Open vSphere Web Client: Edit Settings for a VM: Choose VM Options -> Advanced: Add Configuration Parameters:
This tutorial will walk an individual through the steps necessary to enable the VMware\Hyper-V licensed feature of Backup Exec 2012. In addition, how to add a VMware server and configure a backup job. The first step is to acquire the necessary licen…

813 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

12 Experts available now in Live!

Get 1:1 Help Now