You have a cluster named cluster1 that contains two nodes. both nodes run windows server 2012
r2.
cluster1 hosts a virtual machine named vm1 that runs windows server 2012 r2.
you configure a custom service on vm1 named service1.
you need to ensure that vm1 will be moved to a different node3 if service1 fails.
which comdlet should you run on cluster1?

A.
set-clusterresiurcedependency
B.
add-clustergenericservicerole
C.
enable-vmresourcemetering
D.
add-clustervmmonitoreditem
I think the answer is INCORRECT.
The case states that the service has been configured.
We need to make sure that when the service fails, the service is moved to a different node. Said in another way : We need to MONITOR the service on VM1 so when it fails, we move it to a different node.
With Add-ClusteredVmMonitoredItem we Configures monitoring for a service or an ETW event so that it is monitored on a virtual machine.
With Add-ClusterGenericServiceRole we Configure high availability for a service that was not originally designed to run in a failover cluster
So to answer the question : Add-ClusteredVmMonitoredItem
7
0
Add-ClusteredVmMonitoredItem
0
0
” configure a custom service on vm1 named service1. ”
add-clustergenericservicerole is the answer.
( This is a custom service so it was not designed to run in a fail over cluster )
0
0
Hi,
The answer should be add-clustergenericservicerole, this is due to the question stating “you need to ensure that vm1 will be moved to a different node3 if service1 fails”. The important part is “VM1” needs to be moved not “Service1”, the below taken from TechNet explains what “add-clustergenericservicerole” is used for:
“The Add-ClusterVMMonitoredItem cmdlet configures monitoring for a service or an Event Tracing for Windows (ETW) event so that it is monitored on a virtual machine. If the service fails or the event 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.”
1
0
sorry i copied the incorrect answer, it is add-clustervmmonitoreditem not add-clustergenericservicerole
0
0
D.
Add-clustervmmonitoreditem
0
0
I’m confused… if the service1 is customized, how will Add-ClusterVmMonitoredItem monitor service1?
Shouldn’t be clusterGenericiServerRole?
0
0
The answer is Add-ClusterVMMonitoredItem.
Here’s the TechNet descriptions:
https://technet.microsoft.com/en-us/library/hh847288.aspx
Detailed Description
The Add-ClusterVMMonitoredItem cmdlet configures monitoring for a service or an Event Tracing for Windows (ETW) event so that it is monitored on a virtual machine. If the service fails or the event 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.
—————- Add-ClusterGenericServiceRole ——————–
Detailed Description
The Add-ClusterGenericServiceRole cmdlet configures high availability for a service that was not originally designed to run in a failover cluster. The cluster software will start the service, then periodically query the Service Controller, which is a feature of the operating system, to determine whether the service appears to be running. If so, then it is presumed to be online, and will not be restarted or failed over.
0
0
D
see same question here http://www.aiotestking.com/microsoft/which-cmdlet-should-you-run-on-cluster1-9/
0
0
I’m going with the given answer, after considering both TechNet descriptions. Yes, Add-ClusterVMMonitoredItem will monitor a service and failover if necessary, but so will Add-ClusterGenericServiceRole by querying the Service Controller to make sure the service is running. Considering the questions specified a custom service, Add-ClusterGenericServiceRole is the best choice.
0
0
As I understand we have tricky conditions here. As pfishers already stated, important part is !!! VM1 !!! needs to be moved and not the Service1.
If you would have two FC nodes and Service1 would be present on both, answer would be add-clustergenericservicerole.
In this case you have two FC nodes and VM1 is the object which is a FC role. So you monitor the service on VM1 with Add-ClusterVMMonitoredItem (there is no other node with Service1, except VM1).
0
0
By the way, take a look:
https://blogs.msdn.microsoft.com/clustering/2012/04/18/how-to-configure-vm-monitoring-in-windows-server-2012/
0
0
You’re not monitoring the VM, you’re monitoring the service.
Give answer is correct.
“you configure a custom service on vm1 named service1”
“you need to ensure that vm1 will be moved to a different node3 if service1 fails.”
“if service1 fails……”
0
0
Actually, upon further research I’m going with D.
0
0
answer is D
0
0