The following example shows the
script pattern that can be used to retrieve any counter. The first thing to do is the counter, object,
instance, and server parameters. The script sets the variables to get the CopyQueueLength on the passive
node. To get information about replication, the server must be set to the passive node. This example also
shows how to make the output overwrite itself, instead of continually scrolling.
$Current = $host.UI.RawUI.Get_CursorPosition()
$Object=???MSExchange Replication???
$Counter=???CopyQueueLength???
$Instance=???First Storage Group???
$Passive_Node=???MB101???
$perf = New-Object System.diagnostics.performancecounter( $Object, $Counter,
$Instance, $Passive_Node)
While (1)
{
$perf.RawValue
Start-Sleep -seconds 1
$host.UI.RawUI.Set_CursorPosition($Current)
}
Chapter 12: Working with Continuous Replication
353
Failover Types
There are two types of failover in Exchange Server 2007: planned and unplanned. The various methods
of continuous replication have different recovery strategies. This section examines the difference
between the two, and how to control failover features. The following cmdlets are used:
??‘ Move-ClusteredMailboxServer
??‘ Set-MailboxServer
??‘ Restore-StorageGroupCopy
??‘ Mount-Database
??‘ Dismount-Database
The continuous replication model uses asynchronous log shipping to keep the passive node up to date.
Pages:
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499