Save-CMDatabaseReplicationDiagnostic
Save-CMDatabaseReplicationDiagnostic
Saves database replication diagnostic information for Configuration Manager in a file.
構文
Parameter Set: SearchBySiteMandatory
Save-CMDatabaseReplicationDiagnostic -ChildSiteCode <String> -FileName <String> -ParentSiteCode <String> [-Confirm] [-WhatIf] [ <CommonParameters>]
詳細説明
The Save-CMDatabaseReplicationDiagnostic cmdlet saves diagnostic information for database replication issues for Microsoft System Center 2012 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.
System Center 2012 Configuration Manager database replication transfers data and merges changes made in a site database with the information stored in other sites in the System Center 2012 Configuration Manager site hierarchy so that all sites share the same information. System Center 2012 Configuration Manager configures database replication automatically between a parent and child site. Diagnostics identify problems in database replication.
パラメーター
-ChildSiteCode<String>
Specifies a site code for a Configuration Manager site. This is the child site.
エイリアス |
Site2 |
必須? |
true |
位置は? |
named |
既定値 |
なし |
パイプライン入力を許可する |
True (ByPropertyName) |
ワイルドカード文字を許可する |
false |
-FileName<String>
Specifies a file name. This cmdlet saves database diagnostic information for database replication to this file.
エイリアス |
なし |
必須? |
true |
位置は? |
named |
既定値 |
なし |
パイプライン入力を許可する |
True (ByPropertyName) |
ワイルドカード文字を許可する |
false |
-ParentSiteCode<String>
Specifies a site code for a Configuration Manager site. This is the parent site.
エイリアス |
Site1 |
必須? |
true |
位置は? |
named |
既定値 |
なし |
パイプライン入力を許可する |
True (ByPropertyName) |
ワイルドカード文字を許可する |
false |
-Confirm
コマンドレットを実行する前に、ユーザーに確認を求めます。
必須? |
false |
位置は? |
named |
既定値 |
false |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-WhatIf
コマンドレットを実行するとどのような結果になるかを表示します。コマンドレットは実行されません。
必須? |
false |
位置は? |
named |
既定値 |
false |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
<CommonParameters>
このコマンドレットは次の共通パラメーターをサポートします。-Verbose、-Debug、-ErrorAction、-ErrorVariable、-OutBuffer、-OutVariable.詳細については、以下を参照してください。 about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216)。
入力
入力型は、コマンドレットにパイプできるオブジェクトの型です。
出力
出力型は、コマンドレットによって生成されるオブジェクトの型です。
例
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"