Need script for Vcenter all the VMs Uptime
data for 30 days
XML or HDML report or mail would be great
Did you already have a look at my Get-VMUptime function in Game of Nines – VM Uptime Report ?
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
Hi
I have ran your script on the power CLI but i didn'd get any result ..I have stored your script on Myscript.Ps1 file
I have attached snapshot for your refernce.
Can you attach that MyScript.ps1 ?
Do you call the Get-VMUptime function at the end of the .ps1 file ?
The file content should look something like this
function Get-VMUptime {
....
}
$vm = Get-VM -Name MyVM
$start = (Get-Date).AddDays(-30)
Get-VMUptime -VM $vm -Start $start
Have a look at the samples at the end of my post.
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
HI
I have just copied your script on MySript.PS1 file
Is there anything need to my for my enviroment like Vcenter name or VM name?
I just copy whole script on the MYScript.Ps1. Is any thing need to modify something Please tel me ..??
Like I said before, it would be handy if you could attach this MyScript.ps1 file.
And yes, the function assumes you are connected to the vCenter.
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
Hi LucD,
Thanks for for the your valuable update and support.
I tried to attch the MyScript PS1 file but i couldn't attach the file in here.
This is first time Im using the script in my life so i need a clear picture on this..
I have a V Center server name:aabbcc01
and have 50 VMs on the VC server.
VM Name:(xx1,xx2,xx3,xx4,xx5)
I need monthly(30 days)
VM uptime report like below format through mail or CSV file.
Start Date Finishdate uptime VMName Unit(%)
I understand that u Game of Nines – VM Uptime Report ? posted clearly.Its looks realy great.
But I have little confusion on the scrpit where is need to be modify VM name and need to change something on script.
I need a script for my enviroment.
So can you please modify the your script using my VC and My VM name(Given example above VC name VM name) and update me please?
Thanks
Hi
Any update on this...