VMware

getVMDiskInfo.pl

VERSION 2 Published

Created on: Oct 11, 2009 9:10 PM by lamw - Last Modified:  Oct 29, 2009 9:32 PM by lamw

This scripts functions similar to that of PowerCLI equivalent at: http://ict-freak.nl/2009/10/11/powercli-virtual-machine-disk-vmdk-info-v2-analyze-data-with-excel/ which extracts all VMDK(s) for a given VM and displays the full VMDK path, whether or not the disk was thin provisioned or not and disk mode. There is an additional argument that can be passed on the commandline which will filter only thin provisioned VM(s) and the script can be executed against ESX(i) or vCenter system.

Update: Added Disk backing version info as found here

Requirements:
ESX(i) 3.5/4.0
vCenter 2.5/4.0
vSphere SDK for Perl or vMA

Sample Execution:

Display all VM(s):
show_all.png

Display all VM(s) with thin provisioned disks only:
show_thin.png
Attachments:
Average User Rating
(1 rating)




Comments

There are no comments on this document

 

Developer Social Media

Communities