Save-CMDatabaseReplicationDiagnostic

Save-CMDatabaseReplicationDiagnostic

Saves database replication diagnostic information for Configuration Manager in a file.

Syntax

Parameter Set: SearchBySiteMandatory
Save-CMDatabaseReplicationDiagnostic -ChildSiteCode <String> -FileName <String> -ParentSiteCode <String> [-Confirm] [-WhatIf] [ <CommonParameters>]

Detailed Description

The Save-CMDatabaseReplicationDiagnostic cmdlet saves diagnostic information for database replication issues for Microsoft System Center 2012 SP1 Configuration Manager in a specified file. This cmdlet runs diagnostics for a link between a parent and a child site databases. You can specify sites by either name or site code, but you cannot specify one site by name and the other by site code.

Configuration Manager database replication transfers data and merges changes made in a site database with the information stored in other sites in the Configuration Manager site hierarchy so that all sites share the same information. Configuration Manager configures database replication automatically between a parent and child site. Diagnostics identify problems in database replication.

Parameters

-ChildSiteCode<String>

Specifies a site code for a Configuration Manager site. This is the child site.

Aliases

Site2

Required?

true

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-FileName<String>

Specifies a file name. This cmdlet saves database diagnostic information for database replication to this file.

Aliases

none

Required?

true

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-ParentSiteCode<String>

Specifies a site code for a Configuration Manager site. This is the parent site.

Aliases

Site1

Required?

true

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-Confirm

Prompts you for confirmation before running the cmdlet.

Required?

false

Position?

named

Default Value

false

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Required?

false

Position?

named

Default Value

false

Accept Pipeline Input?

false

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: Save database replication diagnostic

This command saves database replication diagnostics in a file named CCB_CC2_Diagnostics.csv. The command specifies a parent and child site by using site codes.

PS C:\> Save-CMDatabaseReplicationDiagnostic -ChildSiteCode "CC2" -FileName "D:\Diagnostics\CCB_CC2_Diagnostics.csv" -ParentSiteCode "CCB" 

Get-CMDatabaseReplicationLinkProperty

Get-CMDataBaseReplicationStatus