getAllVMsDiskFormatType.pl

    Script to retrieve VMs disk format type, specifically either 'thick' or 'thin' from either an ESX(i) host or vCenter.

     

    Requirements:

    ESX(i) 3.5 or 4.0

    vCenter 2.5 or 4.0

    VIMA 1.0 or vMA 4.0

    VI Perl Toolkit or vSphere SDK for Perl

     

    Sample Execution:

     

    [vi-admin@scofield ~]$ ./getAllVMsDiskFormatType.pl --server himalaya.primp-industries.com --username root 
    Enter password:
    
    vm-1
    =============================================
    [himalaya-local-storage-1] vm-1/vm-1.vmdk isThinProv: NO
    =============================================
    
    vm-2
    =============================================
    [himalaya-local-storage-1] vm-2/vm-2.vmdk isThinProv: NO
    =============================================
    
    vm-3
    =============================================
    [himalaya-local-storage-2] vm-3/vm-3.vmdk isThinProv: YES
    =============================================