Get-ClusterResourceDependencyReport

Get-ClusterResourceDependencyReport

Generates a report that lists the dependencies between resources in a failover cluster.

Sintaxis

Parameter Set: InputObject
Get-ClusterResourceDependencyReport [-Cluster <String> ] [-Group <String> ] [-InputObject <PSObject> ] [-Resource <String> ] [ <CommonParameters>]

Descripción detallada

The Get-ClusterResourceDependencyReport cmdlet generates a report that lists the dependencies between resources in a failover cluster.

The report has a filename extension of MHT. For convenience in storing and finding the report, you can pipe this cmdlet to the Copy-Item cmdlet and specify a destination folder into which to copy the report.

Parámetros

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

Alias

ninguno

¿Requerido?

false

¿Posición?

named

Valor predeterminado

ninguno

¿Aceptar canalización?

false

¿Aceptar caracteres comodín?

false

-Group<String>

Specifies the name of the cluster group for which to generate the dependency report.

Alias

ninguno

¿Requerido?

false

¿Posición?

named

Valor predeterminado

ninguno

¿Aceptar canalización?

false

¿Aceptar caracteres comodín?

false

-InputObject<PSObject>

Specifies the cluster group or cluster resource for which to create the dependency report.

Alias

ninguno

¿Requerido?

false

¿Posición?

named

Valor predeterminado

ninguno

¿Aceptar canalización?

true (ByValue)

¿Aceptar caracteres comodín?

false

-Resource<String>

Specifies the name of the cluster resource for which to generate the dependency report.

Alias

ninguno

¿Requerido?

false

¿Posición?

named

Valor predeterminado

ninguno

¿Aceptar canalización?

false

¿Aceptar caracteres comodín?

false

<CommonParameters>

Este cmdlet admite los siguientes parámetros comunes: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer y -OutVariable. Para obtener más información, consulte about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).

Entradas

El tipo de entrada es el tipo de los objetos que se pueden canalizar al cmdlet.

  • Microsoft.FailoverClusters.PowerShell.ClusterGroup
  • Microsoft.FailoverClusters.PowerShell.ClusterResource

Salidas

El tipo de resultado es el tipo de objetos que emite el cmdlet.

  • System.IO.FileInfo

Ejemplos

EXAMPLE 1

This example creates a dependency report file for the clustered file server, or resource group, named cluster1FS12 on the local cluster.

PS C:\> Get-ClusterResourceDependencyReport -Group cluster1FS12

EXAMPLE 2

This example creates a dependency report file for the clustered file server, or resource group, named cluster1FS12 on the local cluster. The dependency report is copied to C:\users\user1.

PS C:\> Get-ClusterResourceDependencyReport -Group cluster1FS12 | Copy-Item -Destination C:\users\user1

EXAMPLE 3

This example creates a dependency report file for each clustered role, or resource group, on the local cluster, and copies all reports to \\fileserver\share.

PS C:\> Get-ClusterGroup | Get-ClusterResourceDependencyReport | Copy-Item -Destination \\fileserver\share

Temas relacionados

Add-ClusterResourceDependency

Remove-ClusterResourceDependency

Set-ClusterResourceDependency

Copy-Item