Get-ClusterLog

Get-ClusterLog

Creates a log file for all nodes, or a specific a node, in a failover cluster.

構文

Parameter Set: InputObject
Get-ClusterLog [[-Node] <StringCollection> ] [-Cluster <String> ] [-Destination <String> ] [-InputObject <PSObject> ] [-TimeSpan <UInt32> ] [-UseLocalTime] [ <CommonParameters>]

詳細説明

The Get-ClusterLog cmdlet creates a log file for all nodes, or a specific a node, in a failover cluster.

When creating a log file for the cluster, you can specify the timespan that you want logged information for in addition to providing a destination for the created logs.

Note:このコマンドレットは、サーバー コンピューターに Credential Security Service Provider (CredSSP) 認証がない場合、リモートで実行できません。

パラメーター

-Cluster<String>

Specifies the name of the cluster on which to run this cmdlet. If the input for this parameter is . or it is omitted, then the cmdlet runs on the local cluster.

エイリアス

なし

必須?

false

位置は?

named

既定値

なし

パイプライン入力を許可する

false

ワイルドカード文字を許可する

false

-Destination<String>

Specifies the location to which to copy one or more cluster logs. To copy to the current folder, use . for this parameter input.

エイリアス

なし

必須?

false

位置は?

named

既定値

なし

パイプライン入力を許可する

false

ワイルドカード文字を許可する

false

-InputObject<PSObject>

Specifies the cluster from which to generate cluster logs.

エイリアス

なし

必須?

false

位置は?

named

既定値

なし

パイプライン入力を許可する

true (ByValue)

ワイルドカード文字を許可する

false

-Node<StringCollection>

Specifies the name of the cluster node for which to generate the cluster log.

エイリアス

なし

必須?

false

位置は?

1

既定値

なし

パイプライン入力を許可する

false

ワイルドカード文字を許可する

false

-TimeSpan<UInt32>

Specifies the time span for which to generate the cluster log.

エイリアス

span

必須?

false

位置は?

named

既定値

なし

パイプライン入力を許可する

false

ワイルドカード文字を許可する

false

-UseLocalTime

Specifies that the time stamp for each cluster log entry uses local time. By default, the timestamp uses Greenwich Mean Time (GMT).

エイリアス

なし

必須?

false

位置は?

named

既定値

なし

パイプライン入力を許可する

false

ワイルドカード文字を許可する

false

<CommonParameters>

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

入力

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

  • Microsoft.FailoverClusters.PowerShell.Cluster

出力

出力型は、コマンドレットによって生成されるオブジェクトの型です。

  • System.IO.FileInfo

EXAMPLE 1

This example creates a log file for the local cluster in the cluster reports folder on each node of the cluster.

PS C:\> Get-ClusterLog

EXAMPLE 2

This example creates a log file for each node of the local cluster, and copies all logs to the local folder.

PS C:\> Get-ClusterLog -Destination .

EXAMPLE 3

This example creates a log file for the local cluster in the cluster reports folder on each node of the cluster. The log covers the last 5 minutes.

PS C:\> Get-ClusterLog -TimeSpan 5

関連トピック

Set-ClusterLog