Get-CMDataBaseReplicationStatus
Get-CMDataBaseReplicationStatus
Gets the status for database replication.
Syntax
Parameter Set: SearchBySite
Get-CMDataBaseReplicationStatus [-ChildSiteCode <String> ] [-ParentSiteCode <String> ] [ <CommonParameters>]
Detailed Description
The Get-CMDatabaseReplicationStatus cmdlet gets the status of the database replication link for a Microsoft System Center 2012 SP1 Configuration Manager parent/child site pair. The cmdlet identifies the sites by site code.
You can specify just the site code or just the name for a parent or child and get all the database replication links for the specified site.
Parameters
-ChildSiteCode<String>
Specifies a site code for a child site.
Aliases |
Site2 |
Required? |
false |
Position? |
named |
Default Value |
none |
Accept Pipeline Input? |
True (ByPropertyName) |
Accept Wildcard Characters? |
false |
-ParentSiteCode<String>
Specifies a site code for a parent site.
Aliases |
Site1 |
Required? |
false |
Position? |
named |
Default Value |
none |
Accept Pipeline Input? |
True (ByPropertyName) |
Accept Wildcard Characters? |
false |
<CommonParameters>
This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).
Inputs
The input type is the type of the objects that you can pipe to the cmdlet.
Outputs
The output type is the type of the objects that the cmdlet emits.
Examples
Example 1: Get status using site codes
This command gets the status of a database replication link for the child with a site code CCC and the parent with a site code CCA.
PS C:\> Get-CMDataBaseReplicationStatus -ChildSiteCode "CCC" -ParentSiteCode "CCA"