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.

별칭

none

필수 여부

false

위치

named

기본값

none

파이프라인 입력 허용 여부

false

와일드카드 문자 허용 여부

false

-ComputerName<String>

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

별칭

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.

별칭

none

필수 여부

false

위치

named

기본값

none

파이프라인 입력 허용 여부

false

와일드카드 문자 허용 여부

false

-DiagnosticLogLocation<String>

Specifies a central remote location for the logs.

별칭

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.

별칭

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.

별칭

none

필수 여부

false

위치

named

기본값

none

파이프라인 입력 허용 여부

false

와일드카드 문자 허용 여부

false

-PassThru

작업 중인 항목을 나타내는 개체를 반환합니다. 기본적으로 이 cmdlet은 출력을 생성하지 않습니다.

별칭

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.

별칭

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.

별칭

none

필수 여부

false

위치

named

기본값

none

파이프라인 입력 허용 여부

false

와일드카드 문자 허용 여부

false

-Confirm

cmdlet을 실행하기 전에 확인 메시지를 표시합니다.

필수 여부

false

위치

named

기본값

false

파이프라인 입력 허용 여부

false

와일드카드 문자 허용 여부

false

-WhatIf

cmdlet이 실행되는 경우 발생할 결과를 보여 줍니다. cmdlet은 실행되지 않습니다.

필수 여부

false

위치

named

기본값

false

파이프라인 입력 허용 여부

false

와일드카드 문자 허용 여부

false

<CommonParameters>

이 cmdlet은 -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, -OutVariable 등의 일반 매개 변수를 지원합니다. 자세한 내용은 TechNet의 about_CommonParameters(https://go.microsoft.com/fwlink/p/?LinkID=113216)

입력

입력 형식은 cmdlet으로 파이프할 수 있는 개체의 형식입니다.

출력

출력 형식은 cmdlet 실행 시 출력되는 개체의 형식입니다.

  • 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