Export (0) Print
Expand All
Expand Minimize
1 out of 2 rated this helpful - Rate this topic

Get-ClusterNode

Get-ClusterNode

Get information about one or more nodes (servers) in a failover cluster.

Syntax

Get-ClusterNode [-InputObject <psobject>] [[-Name] <StringCollection>] [-Cluster <string>] [<CommonParameters>]
  • InputObject

  • Name

  • Cluster

Detailed Description

Use this cmdlet to obtain information about the node status. To see the resources currently owned by a particular node, specify that node in this cmdlet and then pipe the results through Get-ClusterResource.

Parameters

Cluster

Specifies the name of the cluster to run this cmdlet on. If you type "-Cluster ." or omit the parameter, the cmdlet runs on the local cluster.

Default Value:

Data Type: string

Attributes

Name Value PSMAML Attribute

Required?

false

required

Variable Length?

false

variableLength

Accept wildcard characters?

false

globbing

Accept Pipeline Input?

false

pipelineInput

Position?

named

position

Value Attributes

Name Value PSMAML Attribute

Required?

true

required

Variable Length?

false

variableLength

InputObject

Specifies the cluster to enumerate cluster nodes on.

Default Value:

Data Type: psobject

Attributes

Name Value PSMAML Attribute

Required?

false

required

Variable Length?

false

variableLength

Accept wildcard characters?

false

globbing

Accept Pipeline Input?

true (ByValue)

pipelineInput

Position?

named

position

Value Attributes

Name Value PSMAML Attribute

Required?

true

required

Variable Length?

false

variableLength

Name

Specifies the name of the cluster node to get.

Default Value:

Data Type: StringCollection

Attributes

Name Value PSMAML Attribute

Required?

false

required

Variable Length?

false

variableLength

Accept wildcard characters?

true

globbing

Accept Pipeline Input?

false

pipelineInput

Position?

1

position

Value Attributes

Name Value PSMAML Attribute

Required?

true

required

Variable Length?

false

variableLength

Input Type

Microsoft.FailoverClusters.PowerShell.Cluster

Return Type

Microsoft.FailoverClusters.PowerShell.ClusterNode

Examples

-------------------------- EXAMPLE 1 --------------------------

Command Prompt: C:\PS>
 
Get-ClusterNode 
 
Name                                        State 
----                                        ----- 
node1                                          Up 
node2                                          Up 
node3                                          Up 
node4                                          Up

Description

-----------

This command displays the name and state of each node (server) in the local cluster.

 

-------------------------- EXAMPLE 2 --------------------------

Command Prompt: C:\PS>
 
Get-ClusterNode -Cluster cluster1 
 
Name                                        State 
----                                        ----- 
node1                                          Up 
node2                                          Up 

Description

-----------

This command displays the name and state of each node (server) in cluster1.

 

-------------------------- EXAMPLE 3 --------------------------

Command Prompt: C:\PS>
 
Get-ClusterNode node1 | Get-ClusterResource 
 
Name                State               Group               ResourceType 
----                -----               -----               ------------ 
Cluster Disk 1      Online              Cluster Group       Physical Disk 
Cluster IP Address  Online              Cluster Group       IP Address 
Cluster IP Addre... Online              Cluster Group       IPv6 Address 
Cluster Name        Online              Cluster Group       Network Name 
File Share Witness  Offline             Cluster Group       File Share Witness

Description

-----------

This command lists all cluster resources that are currently owned by node1 on the local cluster.

See Also

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.