Search


Sponsors

OpsMgr: Get Agent-Managed Computer

Operations Manager 2007 The other day I needed to get a list of all SCOM 2007 agent-managed computers in my environment, because they needed to have a registry key fixed. I constructed a SQL query to do so:

SELECT MEGv.[Displayname] AS Object FROM dbo.ManagedEntityGenericView AS MEGv
INNER JOIN dbo.[ManagedTypeView] AS TMv
ON TMv.[id] = MEGv.[MonitoringClassId]
WHERE TMv.[Name] = 'Microsoft.SystemCenter.HealthService'
ORDER BY MEGv.[Displayname]

I saved the results to a file called "servers.txt". Essentially, it queries the OpsMgr operational DB for any instance of the HealthService class. Enjoy!



  
Remember personal info?

Emoticons / Textile

Before sending a comment, you have to correctly answer a simple question you know the answer to. This is a countermeasure against automated spam bots.
 

  ( Register your username / Log in )

Notify:
Hide email:

Small print: All html tags except <b> and <i> will be removed from your comment. You can make links by just typing the url or mail-address.