Hi,
i'm looking for a script that will run automatically after host HA.
the script should email the virtual machines name.
thanks,
Itay
What exactly do you mean with "host HA" ?
Is that HA kicking in and restarting VMs when one ESXi node goes down ?
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
Hi Luc,
the meaning is that after the host got HA, the virtual machines are restarting on another host.
i need to know which VM's was restarting on the other hosts.
Sorry, still not getting your question.
What exactly do you mean with "after the host got HA" ?
Is that when you enable HA on the cluster ?
Or is that HA taking action when an ESXi node in the cluster goes down ?
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
Do you mean some thing like this..
Get-VIEvent "vSphere HA restarted virtual machine"
ok it's nned to ne in that order:
let say that esx host was crushed abd the virtual machines was restart on another host in the cluster.
i need to run a powershell script that will sen an email with the restarted virtual machines name.
In that case the answer vin01 pointed to should do the trick.
Just add a Send-MailMessage cmdlet to send the email.
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference