Export (0) Print
Expand All
Expand Minimize

Get-CsManagementStoreReplicationStatus

 

Topic Last Modified: 2013-02-22

Returns information about the Lync Server replication process; this includes information on whether replication is currently up to date for your Lync Server computers. This cmdlet was introduced in Lync Server 2010.

Get-CsManagementStoreReplicationStatus [-ReplicaFqdn <String>] [-CentralManagementStoreStatus <SwitchParameter>]

In Example 1, the Get-CsManagementStoreReplicationStatus cmdlet is called without any parameters; that returns the replication status (up to date or not up to date) for all Lync Server computers.

Get-CsManagementStoreReplicationStatus

Example 2 returns a collection of all the computers where replication is not up to date. This is done by first using the Get-CsManagementStoreReplicationStatus cmdlet to retrieve a collection containing the replication status for all the servers. This collection is then piped to the Where-Object cmdlet, which applies a filter that limits the returned data to computers where the UpToDate property is equal to False.

Get-CsManagementStoreReplicationStatus | Where-Object {$_.UpToDate -eq $False}

In Example 3, returned data is limited to a single computer: atl-cs-001.litwareinc.com/

Get-CsManagementStoreReplicationStatus -ReplicaFqdn atl-cs-001.litwareinc.com

Example 4 returns information about the computers that were last replicated prior to 8:00 P.M. on August 11, 2010. To do this, the Get-CsManagementStoreReplicationStatus cmdlet is first called to return replication information for all your Lync Server computers. This information is then piped to the Where-Object cmdlet, which selects only those computers where the LastUpdateCreation property is less than 8:00 P.M. on August 11, 2010 (8/11/2010 8:00 P.M.). To return information about computers that were last replicated after 8:00 P.M. on August 11, 2010, use the -gt (greater than) operator:

Where-Object {$_.LastUpdateCreation -gt "8/11/2010 8:00 PM"}

The dates specified in this example use the U.S. English format for date-time values. Dates should be specified using a format compatible with your Regional and Language Options.

Get-CsManagementStoreReplicationStatus | Where-Object {$_.LastUpdateCreation -lt "8/11/2010 8:00 PM"}

The command shown in Example 5 uses the CentralManagementStoreStatus parameter to return detailed information about the current status of the Central Management store. This includes the fully qualified domains names of the Active Master and the File Transfer Agent services, as well as the date and time of the last heartbeat detected for each of those services.

Get-CsManagementStoreReplicationStatus -CentralManagementStoreStatus

When an administrator makes a change of some kind to Lync Server (for example, when an administrator creates a new voice policy or changes the Address Book Server configuration settings) that change is recorded in the Central Management store. In turn, the change must then be replicated to all the computers running Lync Server services or server roles.

In order to replicate data, the Master Replicator (running on the Central Management Server) creates a snapshot of the modified configuration data; a copy of this snapshot is then sent to each computer running Lync Server services or server roles. On those computers, a replication agent receives the snapshot and uploads the modified data; the agent then sends the Master Replicator a message reporting the latest replication status.

The Get-CsManagementStoreReplicationStatus cmdlet enables you to verify the replication status for any (or all) of the Lync Server computers in your organization.

Who can run this cmdlet: By default, members of the following groups are authorized to run the Get-CsManagementStoreReplicationStatus cmdlet locally: RTCUniversalUserAdmins, RTCUniversalServerAdmins. To return a list of all the role-based access control (RBAC) roles this cmdlet has been assigned to (including any custom RBAC roles you have created yourself), run the following command from the Windows PowerShell prompt:

Get-CsAdminRole | Where-Object {$_.Cmdlets –match "Get-CsManagementStoreReplicationStatus"}

 

Parameter Required Type Description

CentralManagementStoreStatus

Optional

System.Management.Automation.SwitchParameter

Returns additional information about the current status of the Central Management store, including a list of active replicas and deleted replicas, as well as the location of the Active Master and the File Transfer Agent services.

ReplicaFqdn

Optional

System.String

Fully qualified domain name (FQDN) of the computer for which the replication status is to be checked. For example: -ReplicaFqdn "atl-cs-001.litwareinc.com".

If this parameter is not included, then replication status information for all your Lync Server computers will be returned.

None. The Get-CsManagementStoreReplicationStatus cmdlet does not accept pipelined input.

By default, the Get-CsManagementStoreReplicationStatus cmdlet returns instances of the Microsoft.Rtc.Management.Xds.ReplicaState object. If the CentralManagementStoreStatus parameter is used, then the cmdlet returns instances of the Microsoft.Rtc.Management.Xds.CentralManagementStoreStatusResult object.

 
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft