Reply to Message

View discussion in a popup

Replying to:
dhanu2k7
Enthusiast
Enthusiast

task and events

hello I am using below script to pull events, when I ran, i am getting output but those are tasks and i am not getting events list, I verified in VC that event is there on cluster level event I am searching is Successfully restored access to volume****

$xxxxx= get-cluster xxxxx

Get-VIevent -entity $xxxxx -Start 03/23/2018 -Finish 03/26/2018 -maxsamples 10000 | Where {$_.FullFormattedMessage -contains "Successfully restored"} | select @{Name='host';E={$_.Host.name}}, @{N='user';E={$_.UserName}},@{N='Createdtime'; E={$_.CreatedTime}}, @{N='Fullmessage';E={$_.FullFormattedMessage}} anything wrong in the script? regards dhanu

Tags (1)
Reply
0 Kudos