I recently had a problem that a custom rule was not running correctly, so I wanted to find out which of my SCOM 2012 Management Servers was running the All Management Servers Resource Pool instance, where the rule was targetted to.
I could not find a something which matched in the web so I contacted some of my great SCOM colleagues and got feedback from Kevin Holman with the correct solution. Thanks Kevin!
There are two tasks in SCOM already, which can give you more deatils about which Management Server takes care of which instance (class).
I will show now where you find them and what you need to enter.
Both tasks you require the ID of the resource pool which handles the instances. In my case it is the ‘All Management Servers Resource Pool’.
To find that run the Operations Manager Shell and enter the command:
Get-SCOMResourcePool | FT Displayname, ID
The output shows the resource pool names and the IDs. So copy the ID of the pool you need.
Then go to your Operations Manager Console.
Open the Management Servers State Dashboard view:
Select one of the Management Servers in the Management Server State section.
Then run the task ‘Get the Pool Member Monitoring a Top Level Instance’.
Here you need to override the PoolId and the ManagedEntityID. In my case the IDs are both the same as I want to know which pool member of the All Management Servers Resource Pool manages the pool. In your case you perhaps want to know that for another class. You can find the ManagedEntityID of the class through the PowerShell command: (Get-SCOMClass -Displayname ‘xxx’).Id.
The output of the Task gives you the Management Server Name:
The second task has another approach. It gives you all top level instances which a Pool Member monitors.
So run the ‘Get Top Level Instances Monitored by a Pool Member’ task.
Here you only need to override the PoolId.
The output lists all classes monitored by the pool member you selected in the Management Server State view.
With that information you can now go on and troubleshoot the logs why things are not working correctly on that Management Server.