Solved

Server 2012 HyperV Replication

Posted on 2014-12-01
7
171 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
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 
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

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

Question has a verified solution.

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

The recent Microsoft changes on update philosophy for Windows pre-10 and their impact on existing WSUS implementations.
When you try to share a printer , you may receive one of the following error messages. Error message when you use the Add Printer Wizard to share a printer: Windows could not share your printer. Operation could not be completed (Error 0x000006…
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…
Internet Business Fax to Email Made Easy - With  eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, f…

772 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