Link to home
Start Free TrialLog in
Avatar of patron
patronFlag for India

asked on

To Fetch Monthly Resource Utilization Report for CPU,Memory,Disk,Network Utilization on Esxi 6.5 with running vms

Need to Fetch Monthly Resource Utilization Report  for CPU,Memory,Disk,Network Utilization for My 3-5 Host and 20-35 VMS

Is there any Script /automation or free utility available to provide user friendly report -easy to understand report for management

Can we Automate the same on monthly basis
Avatar of Chirag Nagrekar
Chirag Nagrekar
Flag of India image

You can achieve it using RVTools. Download RVTools and See the script written on Vmware code site and you can automate it with WIndows Task Manager.


$ExportPath = 'C:\Temp'

$Servers = 'vcenter1','vcenter2'

 

$Servers | %{

. "C:\Program Files (x86)\Robware\RVTools 3.9.3\RVTools.exe" -passthroughAuth -s "$($_)" -c ExportAll2xls -d "$($ExportPath)" -f "RVTools-$($_)"

}


$smtpServer = 'smtp address'

$to = 'Receiver Email ID'

$from = 'Sender Email ID'


$att = Get-ChildItem -Path $ExportPath -Filter RVTools*.xlsx | select -ExpandProperty FullName


Send-MailMessage -SmtpServer $smtpServer -Subject 'RVTools reports' -To $to -From $from -Attachments $att

Reference :

https://communities.vmware.com/message/2665608#2665608
Avatar of patron

ASKER

Thanks ,but my need is -To Fetch Monthly Resource Utilization Report  for CPU,Memory,Disk,Network Utilization on Esxi 6.5 with running vms
Avatar of patron

ASKER

Monthly report like extract in excel/reporting format for 1 month cpu,mem,disk utilization @Host/VM
Do you mean that you are wanting to automate this type of report ?

If so, you might find this a useful starting point
Avatar of patron

ASKER

Thanks @ArneLovius.

How can I achieve this using script to automate my monthly report  in user friendly dashboard /Excel/presentations
Did you look at the 2nd link ?
Avatar of patron

ASKER

not working for me
What is not working for you, the second link ?
Avatar of patron

ASKER

Link is fine ,But not getting report as expected , looking for monthly for CPU,Memory,Disk and Network Utilization @Host/VM level
As I said, "it may be a useful starting point"
Avatar of patron

ASKER

Okay ,Thanks ,Will check for more enhancements
ASKER CERTIFIED SOLUTION
Avatar of Albert Widjaja
Albert Widjaja
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of patron

ASKER

Great , Thanks Senior IT System Engineer,Let me give a try
Avatar of patron

ASKER

Great Help Senior IT System Engineer , working fine for me.

Is it required to run it on weekly/monthly basis ?
Avatar of patron

ASKER

Thanks a lot.
Yes, I usually run it monthly not weekly.

glad that it could help you man :-)
Can someone tell me the sample syntax to run this script?