#
Collecting Data from SCCM (System Center Configuration Manager)
Open iT supports collecting data from Microsoft System Center Configuration Manager for reporting and analysis. It integrates with the SCCM SQL Server database to extract data and push it to the Open iT SQL Server database using SQL Server Integration Services (SSIS).
This document provides information on how to set up the integration with SCCM.
#
Requirements
- An installed Open iT Analysis Server
- Administrator account for SSIS connection
- Analysis Server Service Account registered in the SQL Server where the SSCM database resides with connect and read access
This assumes that you have Analysis Server installed and configured properly.
#
Integration
To integrate, follow these instructions sequentially:
- Uploading SSIS Packages. Use these instructions to upload the SSIS packages using SQL Server Management Studio.
- Configuring SSIS Packages. Use these instructions to configure each individual SSIS package with the correct connection string using SQL Server Management Studio.
- Testing the configuration. Use these instructions to test if the configuration is working properly.
- Creating a scheduled job. Use these instructions to create a scheduled job using the SQL Server Agent.
- Testing the scheduled job. Use these instructions to test if the created scheduled job is working fine.
#
Uploading SSIS Packages through SSMS
The integration is orchestrated by the SQL Server Integration Services (SSIS). It includes the extraction of data from the SQL Server database of SCCM and pushing it to the Analysis Server SQL Server database to be included in its daily processing.
To upload the projects, follow these instructions:
Open SSMS running as Administrator, and connect to the server where the Open iT database is hosted.
It is required to run as an Administrator since SQL Server Integration Services only allows an Administrator account to access its service.
Once connected, right-click Integration Services Catalogs folder. Choose Create Catalog.
SCCM Integration: Creating Catalog in SSIS
The Catalog Creation Wizard will appear. Click Enable CLR Integration.
Provide the Password and leave the other values as default. Click OK.
Make sure to secure a copy of the Password.
SCCM Integration: Catalog Creation Wizard
Wait until the process is finished. The SSISDB will be created. Right-click the SSISDB and choose Create Folder.
SCCM Integration: Creating Catalog Folder in SSIS
Name the folder as SCCM. Click OK.
SCCM Integration: Catalog Name in SSIS
Expand the SCCM folder, and it should contain the Projects folder. Right-click the Projects folder and choose Import Packages.
SCCM Integration: Import Packages in SSIS
The Integration Services Project Conversion dialog will appear. Click Next.
SCCM Integration: Integration Services Project Conversion
In the Folder option, browse in the Analysis Server SSIS packages directory. This is commonly located at
C:\Program Files\OpeniT\Analysis Server\SSIS
. Click OK and Next.SCCM Integration: Analysis Server SSIS Packages Directory
Select all available packages.
- MergeFileUsageSummaryData_v_1_1.dtsx
- MergeMeteredData_v1_1.dtsx
SCCM Integration: Analysis Server SSIS Packages
Click Next.
Name the project as SCCMtoOpeniT, and set the Protection Level to DontSaveSensitive. Click Next and skip the Update Execute Package Task.
SCCM Integration: SCCM Data Collection Project Name
Do not select anything in the Select Configurations option, and skip Create Parameters and Configure Parameters dialogs. Click Next.
Review the selections and click Convert.
SCCM Integration: Review Selections
Wait until all the processes are successful. Click Close.
SCCM Integration: Project Creation Results
The Integration Services Deployment Wizard will appear. Click Next.
SCCM Integration: Integration Services Deployment Wizard
In the Select Deployment Target, choose SSIS in SQL Server. Click Next.
If this dialog does not appear, please proceed to the next step.
In the Select Destination dialog, provide the Server Name where to deploy the project.
In some instances, you must click a Connect button before you can proceed. If this is not applicable, please proceed to the next step.
SCCM Integration: Integration Services Deployment Destination
Click Next.
Review the selections and click Deploy.
SCCM Integration: Review Integration Services Deployment
Wait until all the processes are successful. Once done, click Close.
SCCM Integration: Integration Services Deployment Results
Refresh the Projects folder, and the SCCMtoOpeniT project should appear. Expand the SCCMtoOpeniT > Packages, and it should contain the two packages.
SCCM Integration: Integration Services Project
#
Configuring SSIS Packages through SSMS
A manual configuration is necessary to successfully set up the integration. This includes configuring of the connection strings and user accounts for database connection.
To configure the packages, follow these instructions:
Open SSMS running as Administrator, and connect to the server where the Open iT database is hosted.
It is required to run as an Administrator since SQL Server Integration Services only allows an Administrator account to access its service.
Once connected, expand Integrated Services Catalogs > SSISDB > Projects > SCCMtoOpeniT > Packages.
Right-click the package MergeFileUsageSummaryData_v_1_1.dtsx and choose Configure.
SCCM Integration: Integration Services Catalog ProjectGo to the Connection Managers tab. Click the first container and configure the ConnectionString by clicking the ellipsis (...) button.
SCCM Integration: Configuring SSIS Package - ConnectionStringThe Set Parameter Value dialog will appear. Click the Edit value option. Copy the current connection string and paste it to the enabled text area.
Modify the following:
- Data Source - server name where Open iT database resides (e.g., Data Source=MNL1581WIN)
- Initial Catalog - database name used for Open iT (e.g., Initial Catalog=OpeniT)
SCCM Integration: Configuring SSIS Package - Edit ConnectionStringClick OK.
Click the ellipsis (...) button beside InitialCatalog.
SCCM Integration: Configuring SSIS Package - Initial CatalogThe Set Parameter Value dialog will appear. Click Edit Value and provide the database name of Open iT. Click OK.
SCCM Integration: Configuring SSIS Package - Edit Initial CatalogClick the ellipsis (...) button beside ServerName.
SCCM Integration: Configuring SSIS Package - Server NameThe Set Parameter Value dialog will appear. Click Edit Value and provide the server name where the Open iT database resides. Click OK.
SCCM Integration: Configuring SSIS Package - Edit Server NameClick the ellipsis (...) button beside UserName.
SCCM Integration: Configuring SSIS Package - User NameThe Set Parameter Value dialog will appear. Click Edit Value and provide the Analysis Server Service Account username. Click OK.
SCCM Integration: Configuring SSIS Package - Edit User NameClick the ellipsis (...) button beside Password.
SCCM Integration: Configuring SSIS Package - PasswordThe Set Parameter Value dialog will appear. Click Edit Value and provide the Analysis Server Service Account password. Click OK.
SCCM Integration: Configuring SSIS Package - Edit PasswordClick the second container and configure the ConnectionString. Click the ellipsis (...) button.
SCCM Integration: Configuring SSIS Package - SCCM ConnectionStringThe Set Parameter Value dialog will appear. Click the Edit value option. Copy the current connection string and paste it to the enabled text area.
Modify the following:
- Data Source - server name where SCCM database resides (e.g., Data Source=MNL1580WIN)
- Initial Catalog - database name of SCCM (e.g., Initial Catalog=SCCM)
SCCM Integration: Configuring SSIS Package - Edit SCCM ConnectionStringClick OK.
Click the ellipsis (...) button beside Initial Catalog.
SCCM Integration: Configuring SSIS Package - SCCM Initial CatalogThe Set Parameter Value dialog will appear. Click Edit Value and provide the database name of SCCM. Click OK.
SCCM Integration: Configuring SSIS Package - Edit SCCM Initial CatalogClick the ellipsis (...) button beside ServerName.
SCCM Integration: Configuring SSIS Package - Edit Server NameThe Set Parameter Value dialog will appear. Click Edit Value and provide the server name where the SCCM database resides. Click OK.
SCCM Integration: Configuring SSIS Package - Edit Server NameClick the ellipsis (...) button beside UserName.
SCCM Integration: Configuring SSIS Package - SCCM UserNameThe Set Parameter Value dialog will appear. Click Edit Value and provide the Analysis Server Service Account username. Click OK.
SCCM Integration: Configuring SSIS Package - Edit SCCM User NameClick the ellipsis (...) button beside Password.
SCCM Integration: Configuring SSIS Package - SCCM PasswordThe Set Parameter Value dialog will appear. Click Edit Value and provide the Analysis Server Service Account password. Click OK.
SCCM Integration: Configuring SSIS Package - Edit SCCM PasswordClick OK to save the configurations in the package.
SCCM Integration: Configuring SSIS Package - Save Changes
Do these instructions on the other package MergeMeteredData_v1_1.dtsx.
#
Testing the Configurations
To test if the configurations are working fine, follow these instructions:
Open SSMS running as Administrator, and connect to the server where the Open iT database is hosted.
It is required to run SSMS as an Administrator since SQL Server Integration Services only allows an Administrator account to access its service.
Once connected, expand Integration Services Catalogs > SSISDB > Projects > SCCMtoOpeniT > Packages.
Right-click the package MergeFileUsageSummaryData_v_1_1.dtsx. Choose Execute.
SCCM Integration: Testing Package ConfigurationsThe Execute Package dialog will appear. Click the Connection Managers tab, and review the connection string. Modify if necessary. Click OK.
SCCM Integration: Execute PackageWait until the process is finished. A message prompt will appear, click Yes to open the Overview Report.
SCCM Integration: Show Execution Overview ReportThe Overview Report will appear. Review the Execution Information and see the Status, which can be Failed or Success. More detailed information about the package execution is in the Execution Overview.
SCCM Integration: Execution Overview Report
Do these instructions on the other package MergeMeteredData_v1_1.dtsx.
#
Creating Scheduled Jobs through SSMS
It is essential to create a scheduled jobs using the SQL Server Agent to automate data extraction daily, ensuring that the data processed by the Analysis Server is up-to-date.
To create a scheduled job, follow these instructions:
Open SSMS running as Administrator, and connect to the server where the Open iT database is hosted.
Right-click the SQL Server Agent. Click Start. Wait until the status of the service turns active.
Expand the SQL Server Agent and right-click the Jobs folder. Choose New Job.
SCCM Integration: Creating Scheduled JobsName the job as SCCMtoOpeniT. Choose Data Collector as Category.
SCCM Integration: Scheduled Job DetailsIn the left pane, click Steps, then click New.
SCCM Integration: Scheduled Job New StepThe New Job Step dialog will appear. Provide the following details:
- Step Name - MergeFileUsageSummaryData
- Type - SQL Server Integration Services Package
- Package source - SSIS Catalogs
- Server - the server name where the SSIS package is uploaded
- Package - browse the package
MergeFileUsageSummaryData_v_1_1.dtsx
SCCM Integration: Scheduled Job StepsClick OK.
Click New. The New Job Steps dialog will appear. Provide the following details:
- Step Name - MergeMeteredData
- Type - SQL Server Integration Services Package
- Run as - SQL Server Agent Service Account
- Package source - SSIS Catalogs
- Server - the server name where the SSIS package is uploaded
- Package - browse the package
MergeMeteredData_v1_1.dtsx
SCCM Integration: Scheduled Job StepsClick OK.
In the left pane, click Schedules, then click New.
SCCM Integration: Scheduled Job ScheduleThe New Schedule dialog will appear. Provide the following details:
- Name - SCCMCollection
- Schedule Type - Recurring
- Occurs - Daily
- Recurs every - 1 day
- Occurs once at - 4:00 AM
- Start Date - today
- End Date - No end date
The job schedule should be before the daily execution of the Analysis Server ETL process. Please adjust accordingly.
Make sure that the SQL Server Agent service account has access to the SCCM server and database.
Review the Summary at the bottom of the dialog. Click OK.
SCCM Integration: Scheduled Job Schedule FrequencyClick OK to save the configurations.
SCCM Integration: Save Scheduled Job Schedule
#
Testing the Scheduled Jobs
To make sure that the configured scheduled jobs are working fine, follow these instructions to test:
Open SSMS running as Administrator, and connect to the server where the Open iT database is hosted.
Expand the SQL Server Agent > Jobs and right-click the job SCCMtoOpeniT. Choose Start Job at Step.
SCCM Integration: Testing the Scheduled JobThe Start Job dialog will appear. Click Start.
SCCM Integration: Start the Scheduled JobWait until the process succeeds. If the process fail, follow the instructions in the section
Viewing the History Logs .SCCM Integration: Scheduled Job Results
#
Viewing the History Logs
There will be times the job will fail. To see the history logs, follow these instructions:
Open SSMS running as Administrator, and connect to the server where the Open iT database is hosted.
Expand the SQL Server Agent > Jobs and right-click the job SCCMtoOpeniT. Choose View history.
SCCM Integration: Viewing the History LogsThe Log File Viewer will appear. Under the list of Log File Summary, click an item to review the details.
Review details at the bottom of the dialog. Use the details to learn more about the execution.
SCCM Integration: History Logs Details
#
Reporting SCCM Data in Analysis Server
Use these instructions to report the collected SCCM data in Analysis Server for analysis and inventory.
#
Application Level Report
To report, follow these instructions:
Open the Analysis Server web interface and navigate to the Analysis Page.
In the Pivot Field List, expand Measures.
SCCM Integration: Report Table ViewIn the Pivot Field List, drag and drop Elapsed Time, SMS Distinct User, and SMS Max Concurrent User (one-by-one) into the Pivot Table (Drop Data Items Here).
SCCM Integration: Report MeasuresIn the Pivot Field List, expand the Application dimension. Drag and drop the Application Hierarchy in the Pivot Table (Drop Rows Fields Here).
SCCM Integration: Report ApplicationsIn the Pivot Field List, drag and drop the Application Type in the Pivot Table (Drop Filter Fields Here).
Filter the Application Type, choose only SMS, then click OK. This will filter the list of rows in the Pivot Table.
SCCM Integration: Report FiltersExpand the list of data in the Pivot Table. Application Type > Vendor License > Name > Version.
SCCM Integration: Application Level Report
The report shows how long the application was used and how many distinct users are using a certain application. It also gives details on how the maximum number of concurrent users are using a certain application.
#
User Level Report
To report, follow these instructions:
Open the Analysis Server web interface and navigate to the Analysis Page.
In the Pivot Field List, expand Measures.
SCCM Integration: Report Table ViewIn the Pivot Field List, drag and drop Elapsed Time into the Pivot Table (Drop Data Items Here).
SCCM Integration: Report MeasuresIn the Pivot Field List, expand the Application dimension. Drag and drop the Application Hierarchy in the Pivot Table (Drop Rows Fields Here).
SCCM Integration: Report ApplicationsDrag the Application Type in the Pivot Table (Drop Filter Fields Here).
Filter the Application Type, choose only SMS, then click OK. This will filter the list of rows in the Pivot Table.
SCCM Integration: Report FiltersExpand the list of data in the Pivot Table. Application Type > Vendor License > Name > Version.
SCCM Integration: Application Level ReportIn the Pivot Field List, expand the User dimension. Drag and drop the User Id classification beside the Version.
Expand a specific Version to see the list of users.
SCCM Integration: User Level Report
This report shows the list of users using a certain application and how long the user used the application.