Get-ClusterVMMonitoredItem

Get-ClusterVMMonitoredItem

Gets the list of services and events currently being monitored in the virtual machine.

Sintaxis

Parameter Set: InputObject
Get-ClusterVMMonitoredItem [[-VirtualMachine] <String> ] [-Cluster <String> ] [-InputObject <PSObject> ] [ <CommonParameters>]

Descripción detallada

The Get-ClusterVMMonitoredItem cmdlet gets the list of services and events currently being monitored in the virtual machine. If one of those services fails or one of the events occurs, then the system responds by taking an action based on the failover configuration for the virtual machine resource. For example, the configuration might specify that the virtual machine be restarted.

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

Local Cluster

¿Aceptar canalización?

false

¿Aceptar caracteres comodín?

false

-InputObject<PSObject>

Specifies the cluster on which to run the cmdlet or the clustered virtual machine for which to retrieve the clustered virtual machine monitored item object.

Alias

ninguno

¿Requerido?

false

¿Posición?

named

Valor predeterminado

ninguno

¿Aceptar canalización?

true (ByValue)

¿Aceptar caracteres comodín?

false

-VirtualMachine<String>

Specifies the name of the clustered virtual machine on which to perform monitoring. When this parameter is specified, the cmdlet must be run on one of the host cluster nodes, or else the Cluster parameter must also be specified.

Alias

ninguno

¿Requerido?

false

¿Posición?

1

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.Cluster
  • Microsoft.FailoverClusters.PowerShell.ClusterGroup
  • Microsoft.FailoverClusters.PowerShell.ClusterResource

Salidas

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

  • Microsoft.FailoverClusters.PowerShell.ClusterVMMonitoredItem

Ejemplos

Example 1

This example returns the services and events being monitored in the virtual machine named vm1 on the cluster named Cluster1.

PS C:\> Get-Cluster –Name Cluster1 | Get-ClusterVMMonitoredItem –VirtualMachine vm1

Temas relacionados

Add-ClusterVMMonitoredItem

Remove-ClusterVMMonitoredItem

Reset-ClusterVMMonitoredState