description | external help file | Module Name | ms.date | online version | schema | title |
---|---|---|---|---|---|---|
Use this topic to help manage Windows and Windows Server technologies with Windows PowerShell. |
Microsoft.FailoverClusters.PowerShell.dll-Help.xml |
FailoverClusters |
11/22/2022 |
2.0.0 |
Get-ClusterLog |
Creates a log file for all nodes, or a specific a node, in a failover cluster.
Get-ClusterLog [[-Node] <StringCollection>] [-Destination <String>] [-TimeSpan <UInt32>]
[-UseLocalTime] [-SkipClusterState] [-Health] [-InputObject <PSObject>] [-Cluster <String>]
[<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: This cmdlet cannot be run remotely without Credential Security Service Provider (CredSSP) authentication on the server computer.
Get-ClusterLog
This command creates a log file for the local cluster in the cluster reports folder
C:\Windows\Cluster\Reports
on each node of the cluster.
Get-ClusterLog -Destination .
This command creates a log file for each node of the local cluster, and copies all logs to the local folder.
Get-ClusterLog -TimeSpan 5
This command creates a log file for the local cluster in the cluster reports folder
C:\Windows\Cluster\Reports
on each node of the cluster. The log covers the last 5 minutes.
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.
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Specifies the location to which to copy one or more cluster logs. To copy to the current folder, use
.
for this parameter input. Default location is C:\Windows\Cluster\Reports
.
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Indicates that the cmdlet also logs the health information of the cluster.
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Specifies the cluster from which to generate cluster logs.
Type: PSObject
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: False
Specifies the name of the cluster node for which to generate the cluster log.
Type: StringCollection
Parameter Sets: (All)
Aliases:
Required: False
Position: 0
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Indicates that the cmdlet doesn't add additional cluster state information to the cluster logs.
Type: SwitchParameter
Parameter Sets: (All)
Aliases: scs
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Specifies the time span in minutes for which to generate the cluster log.
Type: UInt32
Parameter Sets: (All)
Aliases: Span
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Specifies that the time stamp for each cluster log entry uses local time. By default, the timestamp uses Greenwich Mean Time (GMT).
Type: SwitchParameter
Parameter Sets: (All)
Aliases: lt
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.