Solved

Server 2012 HyperV Replication

Posted on 2014-12-01
7
177 Views
Last Modified: 2014-12-14
Hello,

I am currently replicating several VMs from one site to another using HyperV Replication.  I have to manually check the status of the replication of each VM.  There is no visible warning when a VM is behind schedule.  Is there a way to be automatically alerted when there is a problem with HyperV replication?

Thanks,

TB
0
Comment
Question by:TropicalBound
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
7 Comments
 
LVL 38

Expert Comment

by:Philip Elder
ID: 40476585
Check the Hyper-V specific Event Logs for the message that something is amiss.

Once you figure out the specific message that indicates things are falling behind right click and associate a task with it. Set up the task to fire an e-mail off to yourself or admin team responsible.

Without third party monitoring that's about one of the best ways to do it.
0
 
LVL 3

Author Comment

by:TropicalBound
ID: 40476611
I gave that a try.  I received an error stating, "The task definition uses a deprecated feature".  Didn't Microsoft remove the 'Send email' feature from the Task Scheduler?

TB
0
 
LVL 38

Expert Comment

by:Philip Elder
ID: 40476677
See RobGilbie's How-To for PowerShell to fire those e-mails on the TechNet forum.

It's a bit of a ringer but once done it becomes fairly straightforward.
0
Manage your data center from practically anywhere

The KN8164V features HD resolution of 1920 x 1200, FIPS 140-2 with level 1 security standards and virtual media transmissions at twice the speed. Built for reliability, the KN series provides local console and remote over IP access, ensuring 24/7 availability to all servers.

 
LVL 3

Accepted Solution

by:
TropicalBound earned 0 total points
ID: 40480844
I found this Powershell function that works perfectly.  It produces a Window that shows the VM names, replication status, and delta.  I can run this on a schedule, but I will need to manually check the server.  Now I'm looking to modify this to email the results.  I'll attempt this myself, but if anyone can assist, it would be appreciated.

get-content c:\serverlist.txt | foreach-object {get-vm -computername $_ } | whe
re {$_.replicationstate -notmatch "Disabled"} | get-VMreplication | select primaryserver, replicaserver, name, replicati
onmode, State, replicationhealth, @{Expression={"{0:0.0}" -f ($_.FrequencySec / 60)};Label="Target Freq (min)"}, @{Expre
ssion={"{0:N0}" -f ((get-date)-($_.lastreplicationtime)).TotalMinutes};Label="Delta (min)"} | out-gridview


Thanks,

TB
0
 
LVL 38

Expert Comment

by:Philip Elder
ID: 40481249
The PowerShell in the link I posted can help.
0
 
LVL 3

Author Closing Comment

by:TropicalBound
ID: 40498677
Still don't have an adequate solution.  The one I found was closest, but still requires manual intervention.
0

Featured Post

SharePoint Admin?

Enable Your Employees To Focus On The Core With Intuitive Onscreen Guidance That is With You At The Moment of Need.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Veeam Backup & Replication has added a new integration – Veeam Backup for Microsoft Office 365.  In this blog, we will discuss how you can benefit from Office 365 email backup with the Veeam’s new product and try to shed some light on the needs and …
I had an issue with InstallShield not being able to use Computer Browser service on Windows Server 2012. Here is the solution I found.
In this Micro Tutorial viewers will learn how to restore their server from Bare Metal Backup image created with Windows Server Backup feature. As an example Windows 2012R2 is used.
This tutorial will walk an individual through the process of configuring their Windows Server 2012 domain controller to synchronize its time with a trusted, external resource. Use Google, Bing, or other preferred search engine to locate trusted NTP …

730 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question