Quantcast
Channel: VMware Communities : All Content - All Communities
Viewing all articles
Browse latest Browse all 180923

Get a list of vm names experiencing an event

$
0
0

I'm trying to get a list of vms from the prior day (or any time period) where a specific event has occurred. I'm very much a novice at Powershell.

 

This is the event filter and I'll post a result:

 

Get-VIEvent -start 06/24/2020 | ?{$_.fullFormattedMessage -match "reload"}

 

Info                 : VMware.Vim.TaskInfo

Key                  : 6776769

ChainId              : 6776769

CreatedTime          : 6/26/2020 1:00:22 AM

UserName             : com.springpath.sysmgmt.domain-c67

Datacenter           : VMware.Vim.DatacenterEventArgument

ComputeResource      : VMware.Vim.ComputeResourceEventArgument

Host                 : VMware.Vim.HostEventArgument

Vm                   : VMware.Vim.VmEventArgument

Ds                   :

Net                  :

Dvs                  :

FullFormattedMessage : Task: Reload virtual machine

ChangeTag            :

 

As shown, the VM property doesn't contain useful information, so I thought I'd try to use the Key or ChainId to retrieve information, but querying these returns nothing.

 

get-vievent | ?{$_.key -eq 6776769}


Viewing all articles
Browse latest Browse all 180923

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>