Change Replication Monitoring Interval to Multiple Days


i figure out how extend period of time hyper-v replication collects statistics for. extend cover multiple days have better picture of mx / average size of replication data before extending on wan connection.  found following powershell command -

set-vmreplicationserver -monitoringstarttime 06:00:00 -monitoringinterval 12:00:00

which says should able extend interval 7 days.  however, cannot figure out format need type in numbers make monitor more 1 day. if try put in 96:00:00 following error -

set-vmreplicationserver : parameter invalid. value monitoring interval not valid. value must an
fraction (in hours) of 24-hour day or whole days. valid range 1 hour 7 days.
@ line:1 char:1
+ set-vmreplicationserver -monitoringstarttime 06:00:00 -monitoringinterval 96:00: ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + categoryinfo          : invalidargument: (:) [set-vmreplicationserver], virtualizationinvalidargumentexception
    + fullyqualifiederrorid : invalidparameter,microsoft.hyperv.powershell.commands.setreplicationservercommand

wait!  found answer, i'm still going post question in case other people have same issue.  format interval put in days.00:00:00, in case, put in 6.00:00:00 , took it, work.  i'll check in few days.

thanks!

-brad

hi sir,

glad hear problem has been resolved .

thanks sharing .

generally , if got concern powershell command , may check in technet article details explanation each parameter:

https://technet.microsoft.com/en-us/itpro/powershell/windows/hyper-v/set-vmreplicationserver?f=255&mspperror=-2147217396 

best regards,

elton 


please remember mark replies answers if help.
if have feedback technet subscriber support, contact tnmff@microsoft.com.



Windows Server  >  Hyper-V



Comments

Popular posts from this blog

Edit Group Policy

Hyper-V VM not reaching OS 'Logon' screen

DNS question...