0% found this document useful (0 votes)
22 views29 pages

Analyzing Data Using Queries, Reports, and Cmpivot

Module 2 covers analyzing data using queries, configuring SQL Server Reporting Services (SSRS), and using CMPivot for real-time device analysis. It includes lessons on creating and running queries, configuring SSRS, and troubleshooting CMPivot, with practical lab exercises for hands-on experience. The module emphasizes the importance of queries in managing resources and generating reports within Configuration Manager.

Uploaded by

ashamel.ogs
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
22 views29 pages

Analyzing Data Using Queries, Reports, and Cmpivot

Module 2 covers analyzing data using queries, configuring SQL Server Reporting Services (SSRS), and using CMPivot for real-time device analysis. It includes lessons on creating and running queries, configuring SSRS, and troubleshooting CMPivot, with practical lab exercises for hands-on experience. The module emphasizes the importance of queries in managing resources and generating reports within Configuration Manager.

Uploaded by

ashamel.ogs
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 29

Module 2

Analyzing data using queries,


reports, and CMPivot
Module Overview

Introduction to queries
Configuring SQL Server Reporting Services
• Analyzing the real-time state of a device by
using CMPivot
Lesson 1: Introduction to queries

What is a query?
Objects and attributes
• Demonstration: Creating and running
queries
What is a query?

• A query is a specific set of instructions that


extracts information about a defined set of
objects
• A query in Configuration Manager:
• Is based on WMI Query Language, which is similar
to SQL
• Is preconfigured for easy use and can be
customized; you can create your own query
• A data query returns information related to
resources
• A status message query returns status
messages
In stored
general, the primary in the
purpose database
of data queries is to build collections.
Objects and attributes

A Configuration Manager object type is a


resource class containing a set of attributes
that represents Configuration Manager
database objects
Object type System Resource

Attribute class Processor Disk drives

Current clock Manufacture


Attribute speed r
Partitions SCSI Bus

You can use queries in Configuration Manager to search the site database for any
object
Query elements

Required
name

Required
object type

• Every query requires a unique name and object type


• Most default queries use the System Resource
object type
Query elements

Ne
w Delete
Group
Logical Not
operators
Change
Group operator
indicators Ungrou
Properties
p

Use the Criteria tab to specify the query elements


for narrowing the scope of the query
Demonstration: Creating and running
queries
In this demonstration, you will see how to:
• Create a data query
• Run a data query
• Examine Smsprov.log
Lab A: Creating and running queries

Exercise 1: Creating data queries


• Exercise 2: Creating subselect queries

Logon Information
Virtual machines: 20703-1B-LON-DC1-C
20703-1B-LON-CFG-C
User name: Adatum\Administrator
Password: Pa55w.rd

Estimated Time: 30 minutes


Lab Scenario

You must create queries to help with site


management at A. Datum Corporation. You
need to create queries for creating
collections to help deploy departmental
line-of-business applications to users.
Lab Review

Which operator would you use for the query


to return either the Sales users or the
Research users?
Why would you use a subselect query in your
work environment?
• Why would you import an existing query to
create a new query?
Lesson 2: Configuring SQL Server Reporting
Services

Overview of SSRS
Prerequisites for Configuration Manager
reporting
Configuring SSRS
Configuring the reporting services point
Demonstration: Installing a reporting
services point
Configuring report subscriptions
• Configuring report security
Overview of SSRS

SSRS is a SQL Server component that supports the


development and use of rich reports in a managed
environment
Advantages:
• Industry-standard reporting system
• Higher performance, availability, and
scalability
• Report subscription feature
• Simplified creation of SQL-based reports
Prerequisites for Configuration Manager
reporting

To install a reporting services point, you must


first install and configure SSRS on either:
• The site database server running SQL Server
• Remote server; which has the SSRS installed

Primary
site

Reporting
services
point
Configuring SSRS

1. Install SQL Server with the Reporting Services


component
2. Install the default instance or a named instance of
SQL Server; install SSRS in the default SQL Server
instance if you have more than one reporting
services point in your Configuration Manager site
3. Connect to SSRS by using:
• The server name
• The report server instance
4. Configure the following properties for the reporting
services point:
• Service account
• Web service URL
• Database
• Web portal URL
Configuring the reporting services point

Although the Add Site


System Role Wizard fills
in most values
automatically, you must:
• Verify the database
connection before
continuing with the
wizard
• Specify credentials for
SSRS to connect to the
Configuration Manager
database
• Use the Set button to
specify a Windows
account
Demonstration: Installing a reporting services
point
In this demonstration, you will see how to:
• Review SSRS settings
• Add the reporting services point role
• Test the reporting services point
Lab B: Configuring SSRS

• Exercise 1: Configuring a reporting services


point

Logon Information
Virtual machines: 20703-1B-LON-DC1-C
20703-1B-LON-CFG-C
User name: Adatum\Administrator
Password: Pa55w.rd

Estimated Time: 30 minutes


Lab Scenario

Your organization is planning to migrate all client


systems to Windows 10, and the migration project
team wants to be able to view daily reports on the
migration progress. You must ensure that
Configuration Manager administrators and the
migration project team can view the reports that
Configuration Manager generates. Although
Configuration Manager administrators can use the
console to view the reports, the migration project
team cannot. To ensure that the migration project
team can view the reports, you also must ensure
that the SQL Server Reporting Services website is
functioning.
Lab Review

What is the difference between a WQL query


and an SQL query?
What account should you use for the SSRS
service account?
• Which Configuration Manager security role
do users need to view reports on the SQL
Server Reporting Services website?
Lesson 3: Analyzing the real-time state of a
device by using CMPivot

Overview of CMPivot
Comparing CMPivot to Run Script,
Compliance Settings, and Inventory
How CMPivot interacts with devices
• Troubleshooting CMPivot
Overview of CMPivot

CMPivot:
• Was introduced in Configuration Manager version
1806
• Allows for real-time querying of online devices
• Allows to query details such as:
• Registry keys
• File shares
• Event Viewer Events
How CMPivot interacts with devices

• Both queries and results are in plain text


• Results are temporarily stored within the
Configuration Manager database
• A Configuration Manager admin can:
• Export the results to a CSV file or Clipboard
• Create a collection from the results
Demonstration: Using CMPivot for data
analysis

In this demonstration, you will see how to:


• Create a CMPivot query
• Create a collection from the query results
• Export the query results to a CSV file
Troubleshooting CMPivot

• Primary site log files


• SmsProv.log
• bgbServer.log
• StateSys.log

• Client site log files


• CcmNotificationAgent.log
• Scripts.log
• StateMessage.log

Log file reference

https://learn.microsoft.com/en-us/mem/configmgr/core/plan-design/h
ierarchy/log-files
Lab C: Analyzing the real-time state of a
device by using CMPivot
• Exercise 1: Using CMPivot to analyze the
current state of devices

Logon Information
Virtual machines: 20703-1B-LON-DC1-C
20703-1B-LON-CFG-C
20703-1B-LON-CL1-C
20703-1B-LON-CL2-C
User name: Adatum\
Administrator
Password: Pa55w.rd
Estimated Time: 30 minutes
Lab Scenario

Your security manager needs to know the


machines on which a specific user is listed
as a local administrator. You decide to use
CMPivot to analyze and determine the
results. You are also having issues with
some of your client computers and need to
determine which services are in a stopped
state. You will use CMPivot to determine the
results for these issues also.
Lab Review

What type of collection membership is


created from CMPivot results?
• What is the error generated by changing
“where” to “Where” in the queries?
Module Review and Takeaways

Review Questions
Real-world Issues and Scenarios
Tools
Best Practices
• Common Issues and Troubleshooting Tips

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy