Condividi tramite


Get-ClusterResourceDependency

Get-ClusterResourceDependency

Get information about the dependencies that have been configured between clustered resources in a failover cluster.

Syntax

Get-ClusterResourceDependency [-InputObject <psobject>] [[-Resource] <StringCollection>] [-Cluster <string>] [-Guid] [<CommonParameters>]
  • InputObject

  • Resource

  • Cluster

  • Guid

Detailed Description

Resource dependencies control the order in which resources are brought online or taken offline in the cluster.

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

Guid

Causes the generated dependency expression to have the resource GUID's instead of the resource names.

Default Value: **

Data Type: SwitchParameter

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?

false

required

Variable Length?

false

variableLength

InputObject

Specifies the cluster resource to get the dependency expression for.

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

Resource

Specifies the name of the cluster resource to get the dependency expression for.

Default Value: **

Data Type: StringCollection

Attributes

Name Value PSMAML Attribute

Required?

false

required

Variable Length?

false

variableLength

Accept wildcard characters?

false

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.ClusterResource

Return Type

Microsoft.FailoverClusters.PowerShell.ClusterResourceDependency

Examples

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

Command Prompt: C:\PS>

 
Get-ClusterResourceDependency cluster1FS12 
 
Resource                           DependencyExpression 
--------                           -------------------- 
cluster1FS12                       [IP Address 172.24.11.0] or [IP Add ...

Description

-----------

This command displays the dependencies for the resource called cluster1FS12.

 

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

Command Prompt: C:\PS>

 
Get-ClusterGroup cluster1FS12 | Get-ClusterResource | Get-ClusterResourceDependency 
 
Resource                           DependencyExpression 
--------                           -------------------- 
cluster1FS12                       [IP Address 172.24.11.0] or [IP Add ... 
Cluster Disk 6 
IP Address 157.56.48.0 
IP Address 2001:4898:9:2:: 
IP Address 2002:9d38:31ca:8::

Description

-----------

This command displays the dependencies for each resource in the clustered file server (resource group) called cluster1FS12. Some resources do not have dependencies.

See Also

Reference

Add-ClusterResourceDependency
Remove-ClusterResourceDependency
Set-ClusterResourceDependency

Other Resources

Online version: