KS-Soft. Network Management Solutions
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister    ProfileProfile    Log inLog in 

Hyper-V replication test

 
Post new topic   Reply to topic    KS-Soft Forum Index -> Configuration, Maintenance, Troubleshooting
View previous topic :: View next topic  
Author Message
ruzickav



Joined: 30 Jan 2018
Posts: 6

PostPosted: Tue Apr 03, 2018 8:31 am    Post subject: Hyper-V replication test Reply with quote

Hello,
is there a way, how to test Replication status on Hyper-V?

Best regards
Vladimir
Back to top
View user's profile Send private message
KS-Soft



Joined: 03 Apr 2002
Posts: 12792
Location: USA

PostPosted: Tue Apr 03, 2018 10:44 am    Post subject: Reply with quote

You can create Shell Script test, e.g. using Get-VMReplication powershell command
https://docs.microsoft.com/en-us/powershell/module/hyper-v/get-vmreplication?view=win10-ps
http://www.ks-soft.net/hostmon.eng/mframe.htm#tests.htm#chkShell

We plan to add some new test methods related to IIS, Exchange, Hyper-V
Do you want to check if State==Error? or check State and Health? or may be State, Health and Last replication time?

Regards
Alex
Back to top
View user's profile Send private message Visit poster's website
ruzickav



Joined: 30 Jan 2018
Posts: 6

PostPosted: Tue Apr 03, 2018 11:10 am    Post subject: Reply with quote

Thanks for reply.
I want to check Helth - it is Normal or something else. I think that State is not usable, because it is changing to Replicating, Resynchronizing .... periodically, so in test, there would be periodical error (change state at least..)
Back to top
View user's profile Send private message
KS-Soft



Joined: 03 Apr 2002
Posts: 12792
Location: USA

PostPosted: Thu Apr 05, 2018 9:52 am    Post subject: Reply with quote

If you are using Windows 8.1, Windows Server 2008 R2 or newer, you may use WMI test
namespace: Root\Virtualization\V2
query: select ReplicationHealth from Msvm_ReplicationRelationship where ReplicationHealth>1
Alert if row count>0
If instance not available set Ok status

Regards
Alex
Back to top
View user's profile Send private message Visit poster's website
ruzickav



Joined: 30 Jan 2018
Posts: 6

PostPosted: Thu Apr 05, 2018 10:46 am    Post subject: Reply with quote

KS-Soft wrote:
If you are using Windows 8.1, Windows Server 2008 R2 or newer, you may use WMI test
namespace: Root\Virtualization\V2
query: select ReplicationHealth from Msvm_ReplicationRelationship where ReplicationHealth>1
Alert if row count>0
If instance not available set Ok status

Regards
Alex


Great - much easier than scripting. Thanks
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    KS-Soft Forum Index -> Configuration, Maintenance, Troubleshooting All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

KS-Soft Forum Index