Get-Cluster
Get-Cluster
Gets information about one or more failover clusters in a given domain.
구문
Parameter Set: Name
Get-Cluster [[-Name] <String> ] [-Domain <String> ] [ <CommonParameters>]
자세한 설명
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.
매개 변수
-Domain<String>
Specifies the name of the domain in which to enumerate clusters.
별칭 |
없음 |
필수 여부 |
false |
위치 |
named |
기본값 |
없음 |
파이프라인 입력 적용 여부 |
false |
와일드카드 문자 허용 여부 |
false |
-Name<String>
Specifies the name of the cluster to get.
별칭 |
없음 |
필수 여부 |
false |
위치 |
1 |
기본값 |
없음 |
파이프라인 입력 적용 여부 |
false |
와일드카드 문자 허용 여부 |
true |
<CommonParameters>
이 cmdlet은 일반 매개 변수 -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer 및 -OutVariable을 지원합니다. 자세한 내용은 다음을 참조하세요. about_CommonParameters(https://go.microsoft.com/fwlink/p/?LinkID=113216).
입력
입력 유형은 cmdlet에 파이프할 수 있는 개체의 유형입니다.
출력
출력 유형은 cmdlet이 내보내는 개체의 유형입니다.
- Microsoft.FailoverClusters.PowerShell.Cluster
예제
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