Quantcast
Channel: VMware Communities: Message List
Viewing all articles
Browse latest Browse all 144140

Displaying More than 1000 Events using EventManager

$
0
0

Any way to get this to display more than 1000 events?

 

$begintime = (Get-Date).adddays(-15)
$endtime = Get-Date 
$si=get-view serviceinstance
$em= get-view $si.Content.EventManager
$EventFilterSpec = New-Object VMware.Vim.EventFilterSpec
$EventFilterSpecByTime = New-Object VMware.Vim.EventFilterSpecByTime
$EventFilterSpecByTime.BeginTime = $begintime
$EventFilterSpecByTime.EndTime = $endtime
$EventFilterSpec.Type = "DrsVmMigratedEvent","VmMigratedEvent"
$EventFilterSpec.Time = $EventFilterSpecByTime
$events = $em.QueryEvents($EventFilterSpec) 

Viewing all articles
Browse latest Browse all 144140

Trending Articles