Solved

PowerCLI Script for Determnin Storage Allocation per Resource Pool within vCenter

Posted on 2014-10-14
7
180 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
Comment Utility
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
Comment Utility
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
Comment Utility
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
What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

 

Author Comment

by:lipotech
Comment Utility
Thank you.  I checkout these sources and close this case soon.

Lipotech
0
 

Author Comment

by:lipotech
Comment Utility
Thanks
0
 
LVL 5

Accepted Solution

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

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

It Is not possible to enable LLDP in vSwitch(at least is not supported by VMware), so in this article we will enable this, and also go trough how to enabled CDP and how to get this information in vSwitches and also in vDS.
Exchange server is not supported in any cloud-hosted platform (other than Azure with Azure Premium Storage).
Teach the user how to use configure the vCenter Server storage filters Open vSphere Web Client:  Navigate to vCenter Server Advanced Settings: Add the four vCenter Server storage filters: Review the advanced settings: Modify the values of the four v…
Teach the user how to install log collectors and how to configure ESXi 5.5 for remote logging Open console session and mount vCenter Server installer: Install vSphere Core Dump Collector: Install vSphere Syslog Collector: Open vSphere Client: Config…

772 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