Remove-ClusterVMMonitoredItem
Remove-ClusterVMMonitoredItem
Removes monitoring of a service or event that is currently being monitored on a virtual machine.
構文
Parameter Set: InputObject
Remove-ClusterVMMonitoredItem [[-VirtualMachine] <String> ] [-Cluster <String> ] [-EventId <Int32> ] [-EventLog <String> ] [-EventSource <String> ] [-InputObject <PSObject> ] [-Service <StringCollection> ] [ <CommonParameters>]
詳細説明
The Remove-ClusterVMMonitoredItem cmdlet removes monitoring of a service or event that is currently being monitored. After removal, if the service fails or the event occurs, the system will no longer take an action, such as restarting the virtual machine.
パラメーター
-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 |
-EventId<Int32>
Specifies the event identifier (ID) of the Event Tracing for Windows (ETW) event to be removed from monitoring.
エイリアス |
なし |
必須? |
false |
位置は? |
named |
既定値 |
なし |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-EventLog<String>
Specifies the event log of the event to be removed from monitoring.
エイリアス |
なし |
必須? |
false |
位置は? |
named |
既定値 |
なし |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-EventSource<String>
Specifies the event source of the event to be removed from monitoring.
エイリアス |
なし |
必須? |
false |
位置は? |
named |
既定値 |
なし |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-InputObject<PSObject>
Specifies the cluster on which to run the cmdlet, the clustered virtual machine from which to remove monitoring, or the clustered virtual machine monitored item object to stop monitoring.
エイリアス |
なし |
必須? |
false |
位置は? |
named |
既定値 |
なし |
パイプライン入力を許可する |
true (ByValue) |
ワイルドカード文字を許可する |
false |
-Service<StringCollection>
Specifies the name of the service to be removed from monitoring.
エイリアス |
なし |
必須? |
false |
位置は? |
named |
既定値 |
なし |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-VirtualMachine<String>
Specifies the name of the clustered virtual machine from which to remove monitoring. When this parameter is specified, this cmdlet must be run on one of the host cluster nodes, or else the Cluster parameter must also be specified.
エイリアス |
なし |
必須? |
false |
位置は? |
1 |
既定値 |
なし |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
<CommonParameters>
このコマンドレットは次の共通パラメーターをサポートします。-Verbose、-Debug、-ErrorAction、-ErrorVariable、-OutBuffer、-OutVariable.詳細については、以下を参照してください。 about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216)。
入力
入力型は、コマンドレットにパイプできるオブジェクトの型です。
- Microsoft.FailoverClusters.PowerShell.Cluster
- Microsoft.FailoverClusters.PowerShell.ClusterGroup
- Microsoft.FailoverClusters.PowerShell.ClusterResource
- Microsoft.FailoverClusters.PowerShell.ClusterVMMonitoredItem
出力
出力型は、コマンドレットによって生成されるオブジェクトの型です。
- None
例
Example 1
This example removes all of the items being monitored on the virtual machine named VM1.
PS C:\> Get-ClusterVMMonitoredItem -VirtualMachine VM1 | Remove-ClusterVMMonitoredItem -VirtualMachine VM1
Example 2
This example removes monitoring on the print spooler service on the virtual machine named VM1.
PS C:\> Remove-ClusterVMMonitoredItem -VirtualMachine VM1 -Service spooler