• Today we are open from 9:00am to 5.00pm

  • Call Us: (02) 4372 8007

I have multiple severs set up for clients where they have two servers and VM’s are replicated across for backup purposes and so downtime is reduced if the main server has hardware faults.

For whatever reason, sometimes the replication fails and needs to be reset and re synced manually from scratch with a few clicks. In these instances, you need to be notified so you can manually enable the replication to start again.

Step 1. Open up Task Scheduler
Step 2 – Created a New task, name it something like Email Alert For VM Replication Fail
Step 3 – Make sure it runs whether user is logged on or not see below screenshot:

2015-09-14 11_42_52-Clipboard

 

 

Step 4 – Set the trigger to on event. Fill in the details as per below screenshot:

2015-09-14 11_44_39-59.167.130.13_33000 - Remote Desktop Connection

 

Step 5 – Set an Action to email yourself via powerscript. Make sure you select the clients ISP SMTP gateway that does not need authentication.
For the argument you need to edit this line to suit your needs.

-command &{send-mailmessage -from [email protected] -to [email protected] -subject ‘VM Replication issue on HyperV’ -body ‘Go Gix It!’ -smtpserver x.x.x.x}

2015-09-14 11_46_18-59.167.130.13_33000 - Remote Desktop Connection

 

The Event ID I have used gives me emails when the replication is critical and manually needs to be reset. If you want more alerts for even warnings you will need to add more schedules for more ID’s The following ID’s if you search in even log will give you the main ones. This article here mentions the main ones also.

http://www.altaro.com/hyper-v/how-to-check-hyper-v-replica-health-part-2/

 

2015-09-14 11_49_10-Start

 

Add a Facebook Comment

Leave a Reply

Your email address will not be published.

*

Notify me of followup comments via e-mail. You can also subscribe without commenting.