Windows Server

How to install and debug logs with the CMTrace Tool

Configuration Manager installation

CMTrace Log Viewer is also referred to as the CMTrace tool (previously called Trace32). It is a tool from Microsoft to view log files such as Microsoft Deployment Toolkit (MDT), Microsoft Software Center Configuration Manager (SCCM), DISM, and many others. Though, mostly for SCCM as it is part of “Configuration Manager Tools”. In this guide, we will discuss How to install and debug logs with the CMTrace Tool. Kindly refer to the following related guides: How to Add Packages to Windows image the DISM Tool, and how to add languages to Windows image using DISM and PowerShell.

The Configuration Manager tools include client-based and server-based tools, and this will be discussed later on in this guide. Unlike many other log viewers, this tool shows the data as the log file is written or updated. The log file viewer shows the most recent updated lines written to the log file and it is considered one of the favorite tools for MDT and SCCM administrators.

Moreover, I’m tired of using Notepad and Notepad++ to view verbose logs, finding them challenging to read due to excessive information. Search no further, CMTrace makes viewing logs and highlights the errors. Nonetheless,

Enhance Log Readability for Effortless Debugging

Also, with Notepad or Notepad++, these logs are extremely difficult to read as they contain lots of metadata. Therefore, I will be showing you how to download and install the CMTrace Tool which is a great debugging tool. See how to install ADK, MDT, and WDS: How to deploy Windows images via Microsoft Deployment Toolkit and Windows Deployment Services

Consequently, This is a free tool you can download from Microsoft. It’s part of the SCCMTooklit downloads. Click the Download button, and download ConfigMgrTools.msi

Note: This tools is also included in the CD.Latest\SMSSETUP\Tools folder on the site server.

Debugging logs in Configuration Manager
CMTrace Tool troubleshooting

Upon download, double click on the ConfigMgrTools.msi to install the System Center Configuration Manager Toolkit as shown below.

CMTrace Tool usage and benefits

On the setup screen below, click on Next to continue.

Configuration Manager installation

Accept the license agreement as shown below and click on Next.

CMTrace Tool troubleshooting

Kindly refer to the following related guides: How to Add Packages to Windows image the DISM Tool, and how to add languages to Windows image using DISM and PowerShell.

Select components

In the select components window, click on next to continue.

Screenshot-2021-07-21-at-20.05.46

If you have the UAC setup, this will be prompted. Just click on Yes to proceed.

User Account Control (UAC) can help prevent unauthorized changes to your computer.

Screenshot-2021-07-21-at-20.06.49

The setup is complete as shown below. Click on finish to close the wizard.

Screenshot-2021-07-21-at-20.07.07
Click on the Start Menu, the newly (recently) installed application will be displayed as shown below. 

Shortly, I will be showing you how to use these tool (CMTrace) in particular. But before then, I will be discribing what these tools are,

Screenshot-2021-07-21-at-20.07.41

Empowering Configuration Manager Management: 15 Essential Toolkit Tools

The Microsoft System Center Configuration Manager Toolkit offers 15 tools for managing and troubleshooting. The following list provides specific information about each tool in the toolkit.

Note: Some features require Microsoft System Center 2012 R2 Configuration Manager for full functionality.

Server Based ToolsClient Based Tools
DP Job Manager – A tool that helps troubleshoot and manage ongoing content distribution jobs to Configuration Manager distribution points.Client Spy – A tool that helps you troubleshoot issues related to software distribution, inventory, and software metering on System Center 2012 Configuration Manager clients.
Collection Evaluation Viewer – A tool that assists in troubleshooting collection evaluation related issues by viewing collection evaluation details.Configuration Manager Trace Log Viewer – A tool used to view log files created by Configuration Manager components and agents.
Content Library Explorer – A tool that assists in troubleshooting issues with and viewing the contents of the content library.Deployment Monitoring Tool – The Deployment Monitoring Tool is a graphical user interface designed help troubleshoot Applications, Updates, and Baseline deployments on System Center 2012 Configuration Manager clients.
Security Configuration Wizard Template for Microsoft System Center 2012 R2 Configuration Manager – The Security Configuration Wizard (SCW) is an attack-surface reduction tool for the Microsoft Windows Server 2008 R2 operating system. Security Configuration Wizard determines the minimum functionality required for a server’s role or roles, and disables functionality that is not required.Policy Spy – A policy viewer that helps you review and troubleshoot the policy system on System Center 2012 Configuration Manager clients
Content Library Transfer – A tool that transfers content from one disk drive to another.Power Viewer Tool – A tool to view the status of power management feature on System Center 2012 Configuration Manager clients.
Content Ownership Tool – A tool that changes ownership of orphaned packages (packages without an owner site server).Send Schedule Tool – A tool used to trigger a schedule on a client or trigger the evaluation of a specified DCM Baseline. You can trigger a schedule either locally or remotely.
Role-based Administration Modeling and Auditing Tool – This tool helps administrators to model and audit RBA configurations.Wakeup Spy – A tool that provides a view of the power state of Configuration Manager client computers and which operate as managers or manages.
Run Metering Summarization Tool – The purpose of this tool is to run the metering summarization task to analyze raw metering data

Launch the CMTrace Tool

Now, we will be using the CMTrace Tool to access any log on my workstation. Click on the Start Menu and select CMTrace as shown below.

Screenshot-2021-07-21-at-20.08.19

When you start the Tool, it will prompt you to set it as the default log file viewer. Why not? Select Yes please 🙂

Screenshot-2021-07-21-at-20.09.00

To demonstrate how you can read logs with CMtrace SCCM Log Viewer, I will be selecting a random log file on my device.

Right-click on the log file and select open with.

Screenshot-2021-07-21-at-20.12.07

However, CMTrace can help view the LOGs by nicely outputting the information as shown below. Moreover, The application might show you red and yellow lines when reading the logs.

Note: Furthermore, Most times, this does not represent real issues as shown below. It is worth noting that the “CMTrace” marks lines with the words “Error” / “Failed” in it with red color and for yellow color with “Could not”.

When something is failing, in most cases the task will execute again and it will succeed. Therefore, read the LOGs carefully and try to understand the meaning of the message.

Screenshot-2021-07-21-at-20.12.54

After installation, the application will be in the specified path. If CMTrace log viewer truncates logs over 8000 characters.

C:\Program Files (x86)\ConfigMgr 2012 Toolkit R2\ClientTools
Screenshot-2021-07-21-at-23.15.24

Kindly review the Tabs (Menu bar) for more functionalities of this tool.

I hope you found this blog post on how to install and debug logs with the CMTrace Tool helpful. Please let me know in the comment session if you have any questions.

Subscribe
Notify of
guest

1 Comment
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
KGA

Download link for Configuration Manager Tools does not work 🙁

1
0
Would love your thoughts, please comment.x
()
x