Hi All,
I'm trying to get a powercli script that can get me total storage and free storage for every cluster in a datacenter. The info I need is located on the summary page of the vsphere web client, upper right side when a cluster is highlighted, just storage info.
Any help would be great, thanks.
MK
ok so if you don't need to write a script for something, then don't!
If anyone else needs this information, in the vsphere web client, if you click on the VC server at the top, and click the clusters tab, you can show just the columns needed, like Available storage and total storage.
Thanks for your time!
The story always changes....
Maybe a script is in order....
Anyway I can get this information, excluding local datastores?
The output I have is as follows, but includes local where I need that excluded:
| Name | Available Storage (GB) | Total Storage (GB) |
| devesxndcl01 | 10,585.88 GB | 24,549.75 GB |
| genprodbp | 2,603.44 GB | 8,340.25 GB |
| genprodps | 4,076.2 GB | 9,017.5 GB |
| genstage | 3,043.11 GB | 7,108.25 GB |
| mgmtcl01 | 4,414.62 GB | 8,120.75 GB |
| prodesxcl01 | 11,563.58 GB | 28,257.75 GB |
| prodesxcl02 | 13,556.42 GB | 35,223 GB |
| prodesxcl03 | 13,002.79 GB | 28,976.75 GB |
| prodesxcl04 | 10,655.39 GB | 30,633 GB |
| prodesxcl05 | 6,401.01 GB | 18,538.25 GB |
Thanks!
Try like this
Get-Datastore | where{$_.ExtensionData.Summary.multipleHostAccess} |
Select Name,FreeSpaceMB,CapacityMB
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
