編集

次の方法で共有


Get-NetworkControllerDiagnostic

Gets network controller diagnostic settings.

Syntax

Default (Default)

Get-NetworkControllerDiagnostic
    [-ComputerName <String>]
    [-UseSsl]
    [-Credential <PSCredential>]
    [-CertificateThumbprint <String>]
    [<CommonParameters>]

Description

The Get-NetworkControllerDiagnostic cmdlet gets network controller diagnostic settings. This cmdlet displays whether the network controller collects only cluster logs. If a remote log ___location exists, this cmdlet displays it.

Examples

Example 1: Get diagnostic settings

PS C:\> Get-NetworkControllerDiagnostic -ComputerName "Node01.Contoso.com"
LogScope               : All
DiagnosticLogLocation  :
LogTimeLimitInDays     : 3
LogSizeLimitInMBs      :
LogLevel               : Verbose

This command gets the diagnostic settings for a cluster that contains the node named Node01.Contoso.com. The cmdlet shows that network controller collects all diagnostic logs. The network controller collects the logs locally on the nodes.

Parameters

-CertificateThumbprint

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.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-ComputerName

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

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-Credential

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.

Parameter properties

Type:PSCredential
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-UseSsl

Indicates that the remote computer 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.

Parameter properties

Type:SwitchParameter
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

Inputs

None

Outputs

Object

This cmdlet returns an object that contains the following fields:

  • Log scope
  • Diagnostic log ___location
  • Log aging time limit (in days)
  • Log aging size limit (in MB)
  • Log level