PSDN
Contributor
Contributor

How to get space utilization by file type for storage

Hello,

Is there any way to get the space utlilization by file type for each storage from powercli? I would like to get raw numbers, for example:

https://docs.vmware.com/en/VMware-vSphere/7.0/com.vmware.vsphere.monitoring.doc/GUID-E07CA3B9-B69B-4...

https://kb.vmware.com/s/article/2003090

PSDN_0-1624027296030.png

 

 

 

0 Kudos
3 Replies
LucD
Leadership
Leadership

In Storage Views – Datastores I did something like that by

- retrieving all the VMs on the datastore
- using the LayoutEx.File property of each VM to determine how much space each type of VM file occupied

If you want a Pie chart, you can use the ImportExcel module and use the New-ExcelChart cmdlet to create such a chart.

 

 


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

Bolick1225
Contributor
Contributor

I am pretty much pleased with your good work. You put really very helpful information.

0 Kudos
PSDN
Contributor
Contributor

Didnt know about that LayoutEx.File property, will try to work with it. Thank you.

0 Kudos