getVMDiskInfo.pl

Version 3

    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:

    • Dec 19th 2009- Added SCSI Adapter and Target information for each VMDK

    • Oct 29th 2009 - 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):

     

    Display all VM(s) with thin provisioned disks only: