getVMsResourcePools.pl

Version 1

    This script extracts all the Resource Pools for a given ESX(i) host or vCenter and provides a list of VMs under each resource pool. If you're not using any resource pools, then all VMs under a given host will be mapped to the root resource pool which is just called Resources

     

    Requirements:

    ESX(i) 3.5 or 4.0

    vCenter 2.5 or 4.0

    vSphere SDK for Perl or vMA 4.0

     

    Sample Execution:

     

    [vi-admin@scofield ~]$ ./getVMsResourcePools.pl --server reflex.primp-industries.com --username primp
    Enter password:
    Resource Pools:
    
    Production -
            vm2
            sap2
            exchange2
    
    Proof Of Concept -
            vm1
            sap1
            exchange1
    
    Resources -
            vm01
            vm02
            vm03
            vm04