need a script to collect the performance report.
i need a script to collect virtual machine performance from a vCenter.1) Average CPU usage for one month2) Average active memory usage for one month
View ArticleRe: need a script to collect the performance report.
Over which time interval do you want those averages ?1 value for each metric for the complete month ?Or an average for each 2-hour interval ?
View ArticleRe: need a script to collect the performance report.
I'll just give the 2 options.This produces an average over the previous month for CPU and memory for each VM...
View ArticleRe: need a script to collect the performance report.
Thanks for the script at an Interval of every 2 hours. Does this script captures the virtual machines average active memory in %? I need a script that captures average CPU usage in % & Average...
View ArticleRe: need a script to collect the performance report.
Both metrics return results in %For the 2 hour interval you need to use the 2nd script. Btw the 2 hours interval is the default for that Historical Interval.See my PowerCLI & vSphere statistics –...
View ArticleRe: need a script to collect the performance report.
Thank you once again The question which i have does it give output for average active memory for the virtual machines? $vms = Get-VM $metric = "cpu.usage.average","mem.active.average" $now = Get-Date...
View ArticleRe: need a script to collect the performance report.
LucD, i am getting the error for 2nd script Get-Stat : 1/27/2012 10:06:07 AM Get-Stat Object reference not set to an instance of an object.At E:\script\performance.ps1:12 char:18+ $stats =...
View ArticleRe: need a script to collect the performance report.
Try changing this line $stats=Get-Stat-Entity$vms-Stat$metric-Start$start-Finish$finish to this $stats=Get-Stat-Entity$vms-Stat$metric-Start$start-Finish$finish-ErrorActionSilentlyContinue There might...
View ArticleRe: need a script to collect the performance report.
LucD, After changing the line its generate blank report thanksvmguy
View ArticleRe: need a script to collect the performance report.
That could mean there is no performance data for the selected VMs for the selected period.Strange, do you see perfomance data in the vSphere client when you select "Last month" ?
View ArticleRe: need a script to collect the performance report.
LucD, did you mean this. PFA.thanksvmguy
View ArticleRe: need a script to collect the performance report.
No, I ment the Performance tab for a specific VM.Then select Advanced and click <Chart settings>.In there select Past Month (for Cpu or Memory) and then make sure the line that contains usage and...
View ArticleRe: need a script to collect the performance report.
Thanks LucD, i will check and update you. vmguy
View ArticleRe: need a script to collect the performance report.
Hey lucD $vms = Get-VM$metric = "cpu.usage.average","mem.active.average"$now = Get-Date -Hour 0 -Minute 0 -Second 0$finish = $now.AddDays(- $now.Day)$start = $finish.AddMonths(-1).AddDays(1)$finish =...
View ArticleRe: need a script to collect the performance report.
So just a monthly cpu and memory average, 1 value ech, per VM ?Then try this...
View ArticleRe: need a script to collect the performance report.
Lu, your all script are awesome man, I ran this one as wel, very informative picture, but few thing if you please make tweak in your script what if - ran against specific VM and collected the Data on...
View ArticleRe: need a script to collect the performance report.
Have a look at my PowerCLI & vSphere statistics – Part 2 – Come together post.In there I show how to filter the statistics to only report on business hours. Let me know if that gets you where you...
View ArticleRe: need a script to collect the performance report.
Looking in to it and get back to youOnce again man thank you very much
View ArticleRe: need a script to collect the performance report.
Buddy, you previous script that I used, see below works excellent$vms = "MY-VM"$metric = "cpu.usage.average","mem.usage.average"$metric = "cpu.usage.average","mem.consumed.average"$now = Get-Date -Hour...
View ArticleRe: need a script to collect the performance report.
Please let me know cpu is measured in %&Memory is kilobytes?
View Article