Hyper-V replication test

All questions related to installations, configurations and maintenance of Advanced Host Monitor (including additional tools such as RMA for Windows, RMA Manager, Web Servie, RCC).
Post Reply
ruzickav
Posts: 6
Joined: Tue Jan 30, 2018 2:11 pm

Hyper-V replication test

Post by ruzickav »

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

Best regards
Vladimir
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

You can create Shell Script test, e.g. using Get-VMReplication powershell command
https://docs.microsoft.com/en-us/powers ... w=win10-ps
http://www.ks-soft.net/hostmon.eng/mfra ... m#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
ruzickav
Posts: 6
Joined: Tue Jan 30, 2018 2:11 pm

Post by ruzickav »

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..)
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

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
ruzickav
Posts: 6
Joined: Tue Jan 30, 2018 2:11 pm

Post by ruzickav »

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
Post Reply