VMware Cloud Community
abhilashhb
VMware Employee
VMware Employee
Jump to solution

Type of vmdk reporting

Is there any way through which I can find out what type of vmdk's(eager zeroed, lazy zeroed and thin) are present on a datastore using powercli or vcenter reporting?

I need to do it for all datastores and output it to a csv.

Abhilash B
LinkedIn : https://www.linkedin.com/in/abhilashhb/

0 Kudos
1 Solution

Accepted Solutions
UmeshAhuja
Commander
Commander
Jump to solution

Hi,

Kindly find the VMware PowerCLI script which will give you the details of HDD type attached to VM's

get-vm | get-harddisk | select Parent,StorageFormat,Filename | Export-Csv c:\output\disks.csv –NoTypeInformation

Thanks n Regards
Umesh Ahuja

If your query resolved then please consider awarding points by correct or helpful marking.

View solution in original post

0 Kudos
4 Replies
UmeshAhuja
Commander
Commander
Jump to solution

Hi,

Kindly find the VMware PowerCLI script which will give you the details of HDD type attached to VM's

get-vm | get-harddisk | select Parent,StorageFormat,Filename | Export-Csv c:\output\disks.csv –NoTypeInformation

Thanks n Regards
Umesh Ahuja

If your query resolved then please consider awarding points by correct or helpful marking.
0 Kudos
vThinkBeyondVM
VMware Employee
VMware Employee
Jump to solution

I believe, this can be done by using SDK as well. Ref- VIJAVA open source project (search in google) & post your query there as well


----------------------------------------------------------------
Thanks & Regards
Vikas, VCP70, MCTS on AD, SCJP6.0, VCF, vSphere with Tanzu specialist.
https://vThinkBeyondVM.com/about
-----------------------------------------------------------------
Disclaimer: Any views or opinions expressed here are strictly my own. I am solely responsible for all content published here. Content published here is not read, reviewed or approved in advance by VMware and does not necessarily represent or reflect the views or opinions of VMware.

abhilashhb
VMware Employee
VMware Employee
Jump to solution

Do you know if there's a script to pull this with vmkfstools?

Abhilash B
LinkedIn : https://www.linkedin.com/in/abhilashhb/

0 Kudos
UmeshAhuja
Commander
Commander
Jump to solution

Hi, Look at the below link... Might help you out with understanding the commands on the topic you have raised. http://searchitchannel.techtarget.com/feature/Creation-of-virtual-machines-utilizing-command-line-to...
Thanks n Regards
Umesh Ahuja

If your query resolved then please consider awarding points by correct or helpful marking.
0 Kudos