Solved

Server 2012 HyperV Replication

Posted on 2014-12-01
7
163 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
  • 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
Get up to 2TB FREE CLOUD per backup license!

An exclusive Black Friday offer just for Expert Exchange audience! Buy any of our top-rated backup solutions & get up to 2TB free cloud per system! Perform local & cloud backup in the same step, and restore instantly—anytime, anywhere. Grab this deal now before it disappears!

 
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

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Cisco MRA Phones 4 26
Permissions vs Shares in Windows 2012 R2 2 25
cisco nexus experiance 2 30
Group Policy Question 7 36
ADCs have gained traction within the last decade, largely due to increased demand for legacy load balancing appliances to handle more advanced application delivery requirements and improve application performance.
A procedure for exporting installed hotfix details of remote computers using powershell
This tutorial will walk an individual through the process of installing the necessary services and then configuring a Windows Server 2012 system as an iSCSI target. To install the necessary roles, go to Server Manager, and select Add Roles and Featu…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

746 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now