List VM’s affected by HA

The hardest task after dealing with a ESXi failure is diving into “deep log sea” looking for a clue so you can explain to the client why a host has died and which VM’s were affected and restarted by HA.

This is helping me … so far using the Events from vCenter Server:

Get-cluster <Cluster_Name> | get-vm | Get-VIEvent | ? {$_.FullformattedMessage -match "HA restarted" } | select  fullformattedmessage, createdtime
Advertisements

One thought on “List VM’s affected by HA”

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s