Set-NetworkControllerDiagnostic

Set-NetworkControllerDiagnostic

Changes diagnostic settings for the network controller.

構文

Parameter Set: Default
Set-NetworkControllerDiagnostic [-CertificateThumbprint <String> ] [-ComputerName <String> ] [-Credential <PSCredential> ] [-DiagnosticLogLocation <String> ] [-LogLocationCredential <System.Management.Automation.PSCredential> ] [-LogScope <LogScope> {Cluster | All} ] [-PassThru] [-UseLocalLogLocation] [-UseSsl] [-Confirm] [-WhatIf] [ <CommonParameters>]

詳細説明

The Set-NetworkControllerDiagnostic cmdlet changes diagnostic settings for the network controller. You can specify whether to collect logs locally on the nodes, or in a single central remote location. You can specify the central location and credentials to access that location. You can specify whether to collect all logs or only cluster logs.

パラメーター

-CertificateThumbprint<String>

Specifies the digital public key X.509 certificate of a user account that has permission to perform this action. Specify the certificate thumbprint of the certificate. Specify this parameter only if you run this cmdlet on a computer that is not part of the network controller cluster.

Aliases

none

必須/オプション

false

位置

named

既定値

none

パイプライン入力の受け入れ

false

ワイルドカード文字の受け入れ

false

-ComputerName<String>

Specifies the name of the network controller node on which this cmdlet operates.

Aliases

none

必須/オプション

false

位置

named

既定値

none

パイプライン入力の受け入れ

false

ワイルドカード文字の受け入れ

false

-Credential<PSCredential>

Specifies a user credential that has permission to perform this action. The default is the current user. Specify this parameter only if you run this cmdlet on a computer that is not part of the network controller cluster.

Aliases

none

必須/オプション

false

位置

named

既定値

none

パイプライン入力の受け入れ

false

ワイルドカード文字の受け入れ

false

-DiagnosticLogLocation<String>

Specifies a central remote location for the logs.

Aliases

none

必須/オプション

false

位置

named

既定値

none

パイプライン入力の受け入れ

false

ワイルドカード文字の受け入れ

false

-LogLocationCredential<System.Management.Automation.PSCredential>

Specifies the credentials required to access the log location. Specify this parameter only if the log location restricts access.

Aliases

none

必須/オプション

false

位置

named

既定値

none

パイプライン入力の受け入れ

false

ワイルドカード文字の受け入れ

false

-LogScope<LogScope>

Specifies whether network controller collects cluster logs or collects all logs. All logs include cluster and application logs. このパラメーターに指定できる値は、次のとおりです。 Cluster and All.

Aliases

none

必須/オプション

false

位置

named

既定値

none

パイプライン入力の受け入れ

false

ワイルドカード文字の受け入れ

false

-PassThru

作業中の項目を表すオブジェクトを返します。既定では、このコマンドレットから出力は生成されません。

Aliases

none

必須/オプション

false

位置

named

既定値

none

パイプライン入力の受け入れ

false

ワイルドカード文字の受け入れ

false

-UseLocalLogLocation

Indicates that this cmdlet collects all diagnostic logs locally on each node in the network controller cluster. To collect logs centrally in a remote location, specify the LogLocation parameter.

Aliases

none

必須/オプション

false

位置

named

既定値

none

パイプライン入力の受け入れ

false

ワイルドカード文字の受け入れ

false

-UseSsl

Indicates that the remote machine uses the Secure Sockets Layer (SSL) protocol to establish a connection to the Network Controller node. The default value of this parameter is false. Specify this parameter only if you run this cmdlet on a computer that is not part of the network controller cluster.

Aliases

none

必須/オプション

false

位置

named

既定値

none

パイプライン入力の受け入れ

false

ワイルドカード文字の受け入れ

false

-Confirm

コマンドレットを実行する前に確認メッセージを表示します。

必須/オプション

false

位置

named

既定値

false

パイプライン入力の受け入れ

false

ワイルドカード文字の受け入れ

false

-WhatIf

コマンドレットが実行された場合に何が起きるのかを示します。コマンドレットは実行されません。

必須/オプション

false

位置

named

既定値

false

パイプライン入力の受け入れ

false

ワイルドカード文字の受け入れ

false

<CommonParameters>

このコマンドレットは共通のパラメーターをサポートしています(-Verbose、-Debug、-ErrorAction、-ErrorVariable、-OutBuffer、および -OutVariable)。詳細については、TechNet の「 「about_CommonParameters」 (https://go.microsoft.com/fwlink/p/?LinkID=113216) を参照してください。

入力

入力型は、コマンドレットにパイプできるオブジェクトの型です。

出力

出力型は、コマンドレットが出力するオブジェクトの型です。

  • This cmdlet returns an object that contains the following fields:

    -- Log scope
    -- Diagnostic log location

使用例

Example 1: Modify diagnostic settings

This command changes the location for diagnostic logs to be the network controller nodes. The command also starts logging both cluster and application logs.

PS C:\> Set-NetworkControllerDiagnostic -LogScope All -UseLocalLogLocation -PassThru

関連項目

Get-NetworkControllerDiagnostic