VMware

getVMsResourcePools.pl

VERSION 1 Published

Created on: Aug 30, 2009 7:35 PM by lamw - Last Modified:  Aug 30, 2009 7:37 PM by lamw

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
Attachments:
Average User Rating
(1 rating)




Comments

There are no comments on this document

 

Developer Social Media

Communities