Get-ClusterOwnerNode
Get-ClusterOwnerNode
Gets information about which nodes can own a resource in a failover cluster or information about the order of preference among owner nodes for a clustered role.
構文
Parameter Set: InputObject
Get-ClusterOwnerNode [-Cluster <String> ] [-Group <String> ] [-InputObject <PSObject> ] [-Resource <String> ] [-ResourceType <String> ] [ <CommonParameters>]
詳細説明
The Get-ClusterOwnerNode cmdlet gets information about which nodes can own a resource in a failover cluster or information about the order of preference among owner nodes for a clustered role.
Settings that control the possible or preferred owners affect the way the cluster responds to the failure of a resource or a clustered role.
パラメーター
-Cluster<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.
エイリアス |
なし |
必須? |
false |
位置は? |
named |
既定値 |
なし |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-Group<String>
Specifies the name of the cluster group for which owner nodes are enumerated.
エイリアス |
なし |
必須? |
false |
位置は? |
named |
既定値 |
なし |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-InputObject<PSObject>
Specifies the cluster group or cluster resource on which to enumerate owner nodes.
エイリアス |
なし |
必須? |
false |
位置は? |
named |
既定値 |
なし |
パイプライン入力を許可する |
true (ByValue) |
ワイルドカード文字を許可する |
false |
-Resource<String>
Specifies the name of the cluster resource for which owner nodes are enumerated.
エイリアス |
res |
必須? |
false |
位置は? |
named |
既定値 |
なし |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-ResourceType<String>
Specifies the name of the cluster resource type for which owner nodes are enumerated.
エイリアス |
restype |
必須? |
false |
位置は? |
named |
既定値 |
なし |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
<CommonParameters>
このコマンドレットは次の共通パラメーターをサポートします。-Verbose、-Debug、-ErrorAction、-ErrorVariable、-OutBuffer、-OutVariable.詳細については、以下を参照してください。 about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216)。
入力
入力型は、コマンドレットにパイプできるオブジェクトの型です。
- Microsoft.FailoverClusters.PowerShell.ClusterResource
- Microsoft.FailoverClusters.PowerShell.ClusterGroup
- Microsoft.FailoverClusters.PowerShell.ClusterResourceType
出力
出力型は、コマンドレットによって生成されるオブジェクトの型です。
- Microsoft.FailoverClusters.PowerShell.ClusterOwnerNodeList
例
EXAMPLE 1
This example lists the possible owners for the cluster named Cluster Disk 1 in the local cluster.
PS C:\> Get-ClusterResource –Cluster "Cluster Disk 1" | Get-ClusterOwnerNode
EXAMPLE 2
This example lists the preferred owners for the clustered file server, or resource group, called cluster1FS12 on the local cluster.
PS C:\> Get-ClusterGroup –Group cluster1FS12 | Get-ClusterOwnerNode