Quantcast
Channel: VMware Communities : Discussion List - Automation Tools
Viewing all articles
Browse latest Browse all 9071

Need to find VMs Moved off host prior to being put in Maintenance Mode

$
0
0

I need to find what VMs were on a host prior to putting into maintenance mode.   I had an issue and want to know if it is related to a particular VM.

 

I figured using Get-VIevent to search the logs and show what was migrated off the host between 10:00 am and 11:00am on 1/1/1970.

I have this but am having trouble getting it to work.

Get-VM | Get-VIEvent –Start “3/10/2017 8:00 AM” –Finish “3/10/2017 9:00 AM” | Where {$_.Gettype().Name -eq "VmBeingMigratedEvent"}

Get-VM | Get-VIEvent –Start “3/10/2017 8:00 AM” –Finish “3/10/2017 9:00 AM” | Where {$_.Gettype().Name -eq "MigrationEvent"}

Get-VM | Get-VIEvent –Start “3/10/2017 8:00 AM” –Finish “3/10/2017 9:00 AM” | Where {$_.Gettype().Name -eq "MigrationEvent"}

I do not get errors it just returns to the prompt.

 

Any help will be appreciated.


Viewing all articles
Browse latest Browse all 9071

Trending Articles



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