Below script can help you to get the count of all vMotion events that has happened in the past 24 hrs.
Related Article
If you want to calculate the count for longer period then change the number AddDays.Get-VIEvent -Entity (Get-VM -Location $_) -MaxSamples ([int]::MaxValue) -Start (Get-Date).AddDays(-1) |Where { $_.GetType().Name -eq “TaskEvent” -and $_.Info.DescriptionId -eq “VirtualMachine.migrate”} |
0 Comments