Solved

Server 2012 HyperV Replication

Posted on 2014-12-01
7
190 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 39

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 39

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
Does Powershell have you tied up in knots?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

 
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 39

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

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

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

This article will inform Clients about common and important expectations from the freelancers (Experts) who are looking at your Gig.
Previously, on our Nano Server Deployment series, we've created a new nano server image and deployed it on a physical server in part 2. Now we will go through configuration.
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…

719 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