Get-ClusterDiagnostics
Get-ClusterDiagnostics
Gets diagnostics for a cluster that contains virtual machines.
Syntax
Parameter Set: Read
Get-ClusterDiagnostics -ReadFromPath <String> [ <CommonParameters>]
Parameter Set: Write
Get-ClusterDiagnostics [[-WriteToPath] <String> ] [[-ClusterName] <String> ] [[-ZipPrefix] <String> ] [-HoursOfEvents <Int32> ] [-IncludeEvents] [ <CommonParameters>]
Detaillierte Beschreibung
The Get-ClusterDiagnostics cmdlet gets diagnostics for a cluster that contains virtual machines. This cmdlet produces a compressed file that has a .zip file name extension that contains the diagnostics that it collects.
Parameter
-ClusterName<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.
Aliase |
none |
Erforderlich? |
false |
Position? |
2 |
Standardwert |
none |
Pipelineeingaben akzeptieren? |
false |
Platzhalterzeichen akzeptieren? |
false |
-HoursOfEvents<Int32>
Specifies the number of hours in the past for which this cmdlet gathers events from the system log.
Aliase |
none |
Erforderlich? |
false |
Position? |
named |
Standardwert |
none |
Pipelineeingaben akzeptieren? |
false |
Platzhalterzeichen akzeptieren? |
false |
-IncludeEvents
Indicates that this cmdlet gathers events from the system log.
Aliase |
none |
Erforderlich? |
false |
Position? |
named |
Standardwert |
none |
Pipelineeingaben akzeptieren? |
false |
Platzhalterzeichen akzeptieren? |
false |
-ReadFromPath<String>
Specifies the path from which this cmdlet reads previously collected log files.
Aliase |
none |
Erforderlich? |
true |
Position? |
named |
Standardwert |
none |
Pipelineeingaben akzeptieren? |
false |
Platzhalterzeichen akzeptieren? |
false |
-WriteToPath<String>
Specifies the path in which this cmdlet creates the .zip file that contains gathered diagnostics.
Aliase |
none |
Erforderlich? |
false |
Position? |
1 |
Standardwert |
none |
Pipelineeingaben akzeptieren? |
false |
Platzhalterzeichen akzeptieren? |
false |
-ZipPrefix<String>
Specifies a string to prepend to the .zip file that this cmdlet creates.
Aliase |
none |
Erforderlich? |
false |
Position? |
3 |
Standardwert |
none |
Pipelineeingaben akzeptieren? |
false |
Platzhalterzeichen akzeptieren? |
false |
<CommonParameters>
Dieses Cmdlet unterstützt die allgemeinen Parameter: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer und -OutVariable. Weitere Informationen finden Sie unter about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).
Eingaben
Der Eingabetyp ist der Typ der Objekte, die Sie per Piping an das Cmdlet übergeben können.
Ausgaben
Der Ausgabetyp ist der Typ der Objekte, die vom Cmdlet ausgegeben werden.
Beispiele
Example 1: Generate cluster diagnostics
This command generates cluster diagnostics in the folder C:\Users\ClusterAdmin\HealthTest\.
PS C:\> Get-ClusterDiagnostics