For SCOM how can we fetch the data of the devices configured?

Paulomi Chauhan 0 Reputation points
2024-12-11T10:38:17.06+00:00

We would like to fetch device (instance properties) data from SCOM.

We have explored various approaches, such as:

  1. Pulling data directly from the database (documentation not found).
  2. Using PowerShell commands.
  3. Accessing REST endpoints.

Could you please advise if there is a preferred method to fetch the required data?

Service Manager
Service Manager
A family of System Center products for managing incidents and problems.
241 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. XinGuo-MSFT 20,156 Reputation points
    2024-12-12T08:58:07.5233333+00:00

    Hi,

    What specific properties are you looking to fetch?

    • Pulling data directly from the database (documentation not found).

    Direct queries to the SCOM database, despite its complexity and potential risks, provide access to raw data.

    We can utilize the following query to dig the database.

    select * from MTV_Computer
    
    select * from INFORMATION_SCHEMA.TABLES 
    where TABLE_NAME like '%computer%' 
    
    select * from INFORMATION_SCHEMA.COLUMNS 
    where COLUMN_NAME like '%mac%'
    

    https://kevinholman.com/2016/11/11/scom-sql-queries/

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.