listVMsInResourcePool.pl

Version 1

    Script to query VM(s) in a specific Resource Pool, this will work if the Resource Pool is nested.

     

    Requirements:

    vCenter 2.5 or 4.0

    vSphere SDK for Perl or vMA 4.0

     

    Sample Execution:

     

    ./listVMsInResourcePool.pl --server reflex.primp-industries.com --username primp --resource_pool production
    
    vm-1
    vm-2
    vm-3
    vm-4