?
Solved

PowerCLI Script for Determnin Storage Allocation per Resource Pool within vCenter

Posted on 2014-10-14
7
Medium Priority
?
210 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

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 2000 total points
ID: 40387233
I poked around and found this sample for you:
https://communities.vmware.com/message/2186208#2186208
0

Featured Post

Visualize your virtual and backup environments

Create well-organized and polished visualizations of your virtual and backup environments when planning VMware vSphere, Microsoft Hyper-V or Veeam deployments. It helps you to gain better visibility and valuable business insights.

Question has a verified solution.

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

HOW TO: Install and Configure VMware vSphere Hypervisor 6.5 (ESXi 6.5), Step by Step Tutorial with screenshots. From Download, Checking Media, to Completed Installation.
When rebooting a vCenters 6.0 and try to connect using vSphere Client we get this issue "Invalid URL: The hostname could not parsed." When we get this error we need to do some changes in the vCenter advanced settings to fix the issue.
Teach the user how to delpoy the vCenter Server Appliance and how to configure its network settings Deploy OVF: Open VM console and configure networking:
This Micro Tutorial steps you through the configuration steps to configure your ESXi host Management Network settings and test the management network, ensure the host is recognized by the DNS Server, configure a new password, and the troubleshooting…
Suggested Courses

765 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