Attached is a useful VI Perl Toolkit script written by a VMware employee:
Print the utilization report for a specified time period for a specified host/VM or a set of hosts/VMs managed by a VirtualCenter server. Can be connected either to a VirtualCenter Server or directly to an ESX Server.
Examples:
List the utilization report for the for all the VMs managed by VirtualCenter Server running from 8/24 to 8/25
./perf.pl server vcserverusername user --password 'password' --entity VirtualMachine --freq daily --date 2007-08-25
List the utilization report for the given hostname in the VirtualCenter Server running from 8/24 to 8/25
./perf.pl --server vcserver --username user --password 'password' --entity HostSystem --freq daily --name hostname --date 2007-08-25
Thanks just what I was looking for, will give it a try...
Hi..Thanks you very much for providing such a good scrpit...actually i am very new in VMperl scriping could anyone please let me knwo how to use this script...where i have to mention virtual centre or ESX hostname...
regards,Jitu