編輯

共用方式為


Save-CauDebugTrace

Saves CAU debug tracing information to a local zip file.

Syntax

Save-CauDebugTrace
    [[-ClusterName] <String>]
    [[-FilePath] <String>]
    [-Credential <PSCredential>]
    [-RunId <Guid>]
    [-Force]
    [-FeatureUpdateLogs <FeatureUpdateLogs>]
    [<CommonParameters>]

Description

The Save-CauDebugTrace cmdlet saves Cluster-Aware Updating (CAU) debug tracing information to a local zip file. The tracing information is mainly intended for use by developers and support engineers. Specify the file name with the FilePath parameter.

To run this cmdlet, Windows PowerShell remoting must be enabled on each node. To do this, run the Enable-PSRemoting cmdlet. In addition, ensure that the Windows Remote Management - Compatibility Mode (HTTP-In) firewall exception is enabled on each node.

Examples

Example 1: Save debug tracing information for the specified cluster

Save-CauDebugTrace -ClusterName "CONTOSO-FC1" -FilePath "C:\temp\testrun.zip"

This command saves the debug tracing information for the cluster named CONTOSO-FC1, to a trace file called testrun.zip in the C:\temp folder.

Parameters

-ClusterName

Specifies the name of the cluster for which to gather CAU debug tracing information. This parameter is only required when this cmdlet isn't run on a failover cluster node, or this cmdlet is used to reference a failover cluster different from where the cmdlet is run.

Type:String
Position:0
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-Credential

Specifies the administrative credentials for the target cluster.

Type:PSCredential
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-FeatureUpdateLogs

Specifies feature update logs.

Type:FeatureUpdateLogs
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-FilePath

Specifies the name of the file to which to save the tracing information, such as MyTrace.zip.

Type:String
Aliases:Path
Position:1
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-Force

Forces the command to run without asking for user confirmation.

Type:SwitchParameter
Aliases:f
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-RunId

Indicates that the cmdlet should only include debug trace files related to an updating run with the specified Run ID.

Type:Guid
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

Inputs

None

Outputs

Microsoft.ClusterAwareUpdating.ActivityIdMap

FileInfo