Save-CauDebugTrace
Save-CauDebugTrace
Saves Cluster-Aware Updating (CAU) debug tracing information to a local zip file.
Syntaxe
Parameter Set: Default
Save-CauDebugTrace [[-ClusterName] <String> ] [[-FilePath] <String> ] [-Credential <PSCredential> ] [-Force] [-RunId <Guid> ] [ <CommonParameters>]
Description détaillée
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.
Note: 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.
Paramètres
-FilePath<String>
Specifies the name of the file to which to save the tracing information, such as MyTrace.zip
.
Alias |
none |
Obligatoire ? |
false |
Position ? |
2 |
Valeur par défaut |
none |
Accepter l’entrée de pipeline ? |
false |
Accepter les caractères génériques ? |
false |
-Force
Specifies that when the file specified by the FilePath parameter exists, it is overwritten without prompting for confirmation. If Force is not specified, then when the file specified by the FilePath parameter exists, the cmdlet returns an error.
Alias |
none |
Obligatoire ? |
false |
Position ? |
named |
Valeur par défaut |
none |
Accepter l’entrée de pipeline ? |
false |
Accepter les caractères génériques ? |
false |
-ClusterName<String>
Specifies the name of the cluster for which to gather CAU debug tracing information. This parameter is only required when this cmdlet is not run on a failover cluster node, or this cmdlet is used to reference a failover cluster different from where the cmdlet is run.
Alias |
none |
Obligatoire ? |
false |
Position ? |
1 |
Valeur par défaut |
none |
Accepter l’entrée de pipeline ? |
false |
Accepter les caractères génériques ? |
false |
-Credential<PSCredential>
Specifies the administrative credentials for the target cluster.
Alias |
none |
Obligatoire ? |
false |
Position ? |
named |
Valeur par défaut |
none |
Accepter l’entrée de pipeline ? |
false |
Accepter les caractères génériques ? |
false |
-RunId<Guid>
Indicates that the cmdlet should only include debug trace files related to an Updating Run with the specified Run ID.
Alias |
none |
Obligatoire ? |
false |
Position ? |
named |
Valeur par défaut |
none |
Accepter l’entrée de pipeline ? |
false |
Accepter les caractères génériques ? |
false |
<CommonParameters>
Cette applet de commande prend en charge les paramètres courants : -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer et -OutVariable. Pour plus d’informations, consultez about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).
Entrées
Le type d’entrée correspond au type des objets que vous pouvez transmettre à l’applet de commande.
- None
Sorties
Le type de sortie est le type des objets émis par l’applet de commande.
- None
Exemples
EXAMPLE 1
This example saves the debug tracing information, for the cluster called CONTOSO-FC1, to a trace file called testrun.zip in the C:\temp folder.
PS C:\> Save-CauDebugTrace –ClusterName CONTOSO-FC1 -FilePath C:\temp\testrun.zip