支持中心 OneTrace(预览)Support Center OneTrace (Preview)

从版本 1906 开始,OneTrace 是一个带有支持中心的新日志查看器。Starting in version 1906, OneTrace is a new log viewer with Support Center. 它的工作方式与 CMTrace 类似,同时具有以下改进:It works similarly to CMTrace, with the following improvements:

  • 选项卡式视图A tabbed view
  • 可停靠窗口Dockable windows
  • 改进了搜索功能Improved search capabilities
  • 无需离开日志视图,即可启用筛选器Ability to enable filters without leaving the log view
  • 可以快速识别错误群集的滚动条提示Scrollbar hints to quickly identify clusters of errors
  • 可快速打开大型文件的日志Fast log opening for large files

OneTrace 日志查看器的屏幕截图Screenshot of OneTrace log viewer

OneTrace 适用于许多类型的日志文件,如:OneTrace works with many types of log files, such as:

  • Configuration Manager 客户端日志Configuration Manager client logs
  • Configuration Manager 服务器日志Configuration Manager server logs
  • 状态消息Status messages
  • Windows 10 上的 Windows 更新 ETW 日志文件Windows Update ETW log file on Windows 10
  • Windows 7 和 Windows 8.1 上的 Windows 更新日志文件Windows Update log file on Windows 7 & Windows 8.1

必备条件Prerequisites

  • .NET Framework 版本 4.6 或更高版本.NET Framework version 4.6 or later

安装Install

OneTrace 与支持中心一起安装。OneTrace installs with Support Center. 通过以下路径在站点服务器上找到支持中心安装程序:cd.latest\SMSSETUP\Tools\SupportCenter\SupportCenterInstaller.msiFind the Support Center installer on the site server at the following path: cd.latest\SMSSETUP\Tools\SupportCenter\SupportCenterInstaller.msi.

默认情况下,OneTrace 应用程序安装在 C:\Program Files (x86)\Configuration Manager Support Center\CMPowerLogViewer.exe 中。By default, the OneTrace application is installed at C:\Program Files (x86)\Configuration Manager Support Center\CMPowerLogViewer.exe.

备注

支持中心和 OneTrace 使用 Windows Presentation Foundation (WPF)。Support Center and OneTrace use Windows Presentation Foundation (WPF). 此组件在 Windows PE 中不可用。This component isn't available in Windows PE. 继续在具有任务序列部署的启动映像中使用 CMTrace。Continue to use CMTrace in boot images with task sequence deployments.

日志组Log groups

从版本 2002 开始,OneTrace 支持可自定义的日志组,与支持中心的功能类似。Starting in version 2002, OneTrace supports customizable log groups, similar to the feature in Support Center. 日志组允许打开单个方案的所有日志文件。Log groups allow you to open all log files for a single scenario. OneTrace 当前包括以下方案的组:OneTrace currently includes groups for the following scenarios:

  • 应用程序管理Application management
  • 合规性设置(也称为所需的配置管理)Compliance settings (also referred to as Desired Configuration Management)
  • 软件更新Software updates

若要显示日志组,请转到“视图”菜单,然后选择“日志组” 。To show log groups, go to the View menu, and select Log groups.

用于应用程序管理的 OneTrace 日志组的屏幕截图

自定义日志组Customize log groups

可以通过修改配置 XML 来自定义这些组,该配置默认为以下路径:C:\Program Files (x86)\Configuration Manager Support Center\LogGroups.xmlYou can customize these groups by modifying the configuration XML, which by default is in the following path: C:\Program Files (x86)\Configuration Manager Support Center\LogGroups.xml.

下面的示例是默认配置文件的一部分:The following example is one portion of the default configuration file:

<LogGroups>
  <LogGroup Name="Desired Configuration Management" GroupType="1" GroupFilePath="">
    <LogFile>CIAgent.log</LogFile>
    <LogFile>CIDownloader.log</LogFile>
    <LogFile>CIStateStore.log</LogFile>
    <LogFile>CIStore.log</LogFile>
    <LogFile>CITaskMgr.log</LogFile>
    <LogFile>ccmsdkprovider.log</LogFile>
    <LogFile>DCMAgent.log</LogFile>
    <LogFile>DCMReporting.log</LogFile>
    <LogFile>DcmWmiProvider.log</LogFile>
  </LogGroup>
</LogGroups>

GroupType 属性接受以下值:The GroupType property accepts the following values:

  • 0:未知或其他0: Unknown or other
  • 1:Configuration Manager 客户端日志1: Configuration Manager client logs
  • 2:Configuration Manager 服务器日志2: Configuration Manager server logs

GroupFilePath 属性可以包含日志文件的显式路径。The GroupFilePath property can include an explicit path for the log files. 如果为空,则 OneTrace 依赖于组类型的注册表配置。If it's blank, OneTrace relies upon the registry configuration for the group type. 例如,如果你设置 GroupType=1,则 OneTrace 默认自动在 C:\Windows\CCM\Logs 中查找组的日志。For example, if you set GroupType=1, by default OneTrace will automatically look in C:\Windows\CCM\Logs for the logs in the group. 在此示例中,无需指定 GroupFilePathIn this example, you don't need to specify GroupFilePath.

另请参阅See also