Get-Cluster
Get-Cluster
Gets information about one or more failover clusters in a given domain.
Syntaxe
Parameter Set: Name
Get-Cluster [[-Name] <String> ] [-Domain <String> ] [ <CommonParameters>]
Description détaillée
The Get-Cluster cmdlet gets information about one or more failover clusters in a given domain.
This cmdlet can obtain a variety of configuration and state information about a failover cluster, including the following items:
-- State information about whether a backup is in progress.
-- State information about whether the cluster is in a forced quorum state.
-- Cross-network settings that are especially relevant for multi-site clusters.
To set a common property for the cluster, use this cmdlet to get the cluster object and then set the appropriate property on that cluster object directly.
Paramètres
-Domain<String>
Specifies the name of the domain in which to enumerate clusters.
Alias |
none |
Requis ? |
false |
Position ? |
named |
Valeur par défaut |
none |
Accepter l'entrée de pipeline ? |
false |
Accepter les caractères génériques ? |
false |
-Name<String>
Specifies the name of the cluster to get.
Alias |
none |
Requis ? |
false |
Position ? |
1 |
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 adresser à l'applet de commande.
Sorties
Le type de sortie correspond au type des objets que l'applet de commande émet.
- Microsoft.FailoverClusters.PowerShell.Cluster
Exemples
EXAMPLE 1
This example displays state and property information for the local cluster in the form of a list.
PS C:\> Get-Cluster | Format-List –Property *
EXAMPLE 2
This example gets information about a cluster named cluster1.
PS C:\> Get-Cluster –Name cluster1
EXAMPLE 3
This example gets information about each of the clusters in the contoso.com domain.
PS C:\> Get-Cluster -Domain contoso.com
EXAMPLE 4
This example sets the common property called CrossSubnetDelay for the local cluster to 1500.
PS C:\> Get-Cluster | ForEach-Object –Process {$_.CrossSubnetDelay = 1500}
EXAMPLE 5
This example enables the Dynamic Quorum feature for the cluster.
PS C:\> (Get-Cluster).DynamicQuorum = 1