Service Graph Connector - SCCM Integration User Guide

Pradeep Thipani
Mega Sage

Integrate SCCM with ServiceNow 

 

Integration: Microsoft System Center Configuration Manager (SCCM) with ServiceNow. 

 

Purpose: To pull the Configuration Management data from SCCM to ServiceNow. 

 

Outcome: With this SCCM Integration, customers can put all the relevant CI data and update or create them in the respective CMDB_CI tables. 

 

 

 

 1)  Install “Service Graph Connector for Microsoft SCCM” Plugin 

App id: sn_sccm_integrate 

 

PradeepThipani_0-1731471679491.png

 

 

2) Create a user in ServiceNow for midserver. 

 

Ex: UserName: SCCM.User 

       Password: ........... 

Required Role: Mid_Server 

Make “Web services access only” flag True 

 

 

3)Open SCCM Server. 

  Need Admin privileges in SCCM to run MidServer. 

 

 4)Installation of MidServer 

  • Open ServiceNow in VM. 
  • Download midserver from SN. 

 

PradeepThipani_1-1731471679493.png

 

 

 

PradeepThipani_2-1731471679494.png

 

 

  • Move the downloaded file to C-Drive under a new folder and unzip the file. 

PradeepThipani_3-1731471679495.png

 

  • Open the config file and make the necessary configurations 

Downloaded file->Agent->config 

 

PradeepThipani_4-1731471679495.png

 

 

  Created UserID and Password, Instance URL, MidServer name. 

                     

PradeepThipani_5-1731471679496.png

 

 

  • Right click start then Run as Administrator. 

Note: To run Midserver must have admin privileges. 

 

PradeepThipani_6-1731471679497.png

 

 

5) Validation Midserver in ServiceNow 

 

  • Type Mid server under that open Server 

PradeepThipani_7-1731471679498.png

 

  • Validate MidServer 

 

PradeepThipani_8-1731471679499.png

 

 

 

PradeepThipani_9-1731471679499.png

 

 

  • Status should be up and Validated should Yes 

 

6) Create a SQL Server account  

SQL Server account on the SQL Server Database that the Microsoft Configuration Manager Site is configured to connect to and assign it the SQL Server 'db_datareader' role. 

 

7) Open SCCM Configuration from navigator. 

PradeepThipani_29-1731471924838.png

 

 

 

PradeepThipani_30-1731471924839.png

 

 😎 Open the Setup and follow the guided setup 

  • Configure Data source access  
  • Configure Scheduled data import access  
  • Configure connection: 

In order to complete this step, you will need the following information. 

  • Database username and password (Use Created SQL Server account) 
  • Database host name (ex: VMXETSCCM18) 
  • Database name (ex: DB_01) 

 

PradeepThipani_31-1731471924840.png

PradeepThipani_32-1731471924842.png

 

Note:  

  • Use created SQL Server account as username and password. 
  •  SCCM Integration, by default, uses SQL based authentication (Standard Security) to connect to the SQL server and the company may have elected to use Windows NT based authentication (Integrated Security) for their SQL server. 

In order to successfully test and use the connection, the user must enable Integrated Authentication for each SCCM Data Source. 

 

Reference: https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0546840 

 

Integrated Authentication configuration: 

 

  1. Verify MID Server credentials: 
  • Open Services in the Windows Management Console. 
  • Open the ServiceNow MID Server service. 
  • Verify the Log On account/password are a Windows user with access to the SQL SCCM tables. 
  • If updated, restart MID Server (To restart you should have access, need to check with windows team). 

 

PradeepThipani_33-1731471924843.png

 

  1. Select Integrated Authentication in JDBC Connection with specific Midserver. 

 

PradeepThipani_34-1731471924845.png

 

 

  1. Test the connection. 

PradeepThipani_35-1731471924846.png

 

9) Validate Data Sources 

 

 Note: Make sure Integrated Authentication is true if you are using integrated Auth. 

 

PradeepThipani_36-1731471924847.png

 

 

 

Open Data Source from list view and click the 'Test Load 20 Records' related link. 

 

PradeepThipani_37-1731471924848.png

 

 

If the completion code is Success, mark this step as complete. If the completion code is Error, there is an error in the SCCM JDBC Connection that you must fix. 

 

Reset 'Last run datetime' in test load data source 

 

PradeepThipani_38-1731471924848.png

 

 

10) Scheduled Import sets 

 

  • Execute the parent job “SG-SCCM Computer Identity” 

 

PradeepThipani_47-1731472107089.png

 

 

  • After Parent jobs executes automatically child jobs will run. 

 

PradeepThipani_48-1731472107092.png

 

 

  • After Successfully execution of jobs data is directly imported into CMDB tables by following IRE. 

 

Make sure below things are configured perfectly 

  • Provide import_scheduler role to Run as user. 

 

PradeepThipani_41-1731471950805.png

 

 

 

  • Check Instance name is given properly in all Scheduled jobs. 

 

PradeepThipani_42-1731471950805.png

 

 

  • If we use integrated authentication, make sure all the Data Sources are enabled with Integrated authentication. 

PradeepThipani_43-1731471950807.png

 

 

 

  • To make any changes in attributes/tables mapping go to the Robust transform maps under each data source. 

 

PradeepThipani_44-1731471950808.png

 

  • Recommended way is to install IntegrationHubETL plugin and make mapping configurations. 

 

Mid servers for three environments in ServiceNow 

 

  • As part of the best practice don’t use one Host machine to install three MidServers. 
  • Use separate VM ware for production midserver. 
  • Use another VM ware for Dev and Test MidServers. 
  • Follow the same procedure above to install midservers. 
  • Hosting two midservers in one VM. 
  • Install two Midserver Zip files in separate folders in C-drive. 
  • Open the wrapper-override.conf file in the MID Server installation folder. ({midinstallationfolder}/agent/conf) 

PradeepThipani_45-1731471950809.png

 

  • Change the wrapper.name and wrapper.displayname parameters to the service name to a different one that the dev mid (perhaps add _test to the end) 

PradeepThipani_46-1731471950810.png

 

  • Recommended to use different midserver usernames for Dev and Test. 

 

Regards,

Pradeep

 

"If this response was useful, please select 'Accept as Solution' and mark it as 'Helpful.' This helps me provide better answers and assists the community ".

Regards,
Pradeep
1 ACCEPTED SOLUTION

Akshay Kamble
Giga Expert

Thank you Pradeep for the article.

View solution in original post

3 REPLIES 3

BajiS
Tera Contributor

Thank you .!

Akshay Kamble
Giga Expert

Thank you Pradeep for the article.

skp
Tera Expert

Hi Pradeep,

Thank you for the very comprehensive guide. Do you know if the SCCM connector supports on premise SCCM installations?

 

Thank you.