在 Configuration Manager 中使用状态系统Use the status system in Configuration Manager

适用范围:Configuration Manager (Current Branch)Applies to: Configuration Manager (current branch)

使用内置状态消息系统了解 Configuration Manager 环境的状态。Use the built-in status message system to understand the state of your Configuration Manager environment.

所有主要站点组件都会生成状态消息,以提供有关站点和层次结构操作的反馈。All major site components generate status messages that provide feedback on site and hierarchy operations. 此信息可以使你保持对不同站点进程的运行状况的了解。This information can keep you informed about the health of different site processes. 可调整警报系统,使其忽略已知问题的干扰,并增加对可能需要你关注的其他问题的提前预见性。You can tune the alert system to ignore noise for known problems, and increase early visibility for other issues that might need your attention.

通常不需要配置 Configuration Manager 状态系统。You generally don't need to configure the Configuration Manager status system. 默认情况下,它使用适合大多数环境的设置。By default, it uses suitable settings for most environments. 可配置以下组件:You can configure the following components:

  • 状态摘要生成器:控制指示下面 4 个摘要生成器发生更改的状态消息的频率:Status summarizers: Control the frequency of status messages that indicate a change for the following four summarizers:

    • 应用程序部署摘要生成器Application deployment summarizer

    • 应用程序统计摘要生成器Application statistics summarizer

    • 组件状态摘要生成器Component status summarizer

    • 站点系统状态摘要生成器Site system status summarizer

  • 状态筛选规则:在每个站点创建新的状态筛选规则、修改规则的优先级、禁用或启用规则,以及删除未使用的规则。Status filter rules: Create new status filter rules, modify the priority of rules, disable or enable rules, and delete unused rules at each site.

    备注

    状态筛选规则不支持使用环境变量来运行外部命令。Status filter rules don't support environment variables to run external commands.

  • 状态报告:配置服务器和客户端组件报告,并指定将它们发送到的位置。Status reporting: Configure both server and client component reporting, and specify where they're sent.

    警告

    由于默认的报告设置适用于大多数环境,因此请小心更改这些设置。Because the default reporting settings are appropriate for most environments, change them with caution. 选择报告所有状态详细信息来提高状态报告的级别时,可增加站点要处理的状态消息的数量。When you increase the level of status reporting by choosing to report all status details, you can increase the amount of status messages for the site to process. 此更改会增加 Configuration Manager 站点上的处理负载。This change increases the processing load on the Configuration Manager site. 如果降低状态报告的级别,则可能会限制状态摘要生成器的实用性。If you decrease the level of status reporting, you might limit the usefulness of the status summarizers.

状态系统会为每个站点维护独立的配置,因此请分别编辑每个站点。Because the status system maintains separate configurations for each site, edit each site individually.

配置状态摘要生成器Configure status summarizers

  1. 在 Configuration Manager 控制台中,转到“管理” 工作区,展开“站点配置” ,然后选择“站点” 节点。In the Configuration Manager console, go to the Administration workspace, expand Site Configuration, and select the Sites node.

  2. 选择一个站点。Select a site. 然后,在功能区的“主页”选项卡的“设置”组中,选择“状态摘要生成器” 。Then on the Home tab of the ribbon, in the Settings group, select Status Summarizers.

  3. 在“状态摘要生成器”窗口中,选择要配置的状态摘要生成器,然后选择“编辑” 。In the Status Summarizers window, select the status summarizer that you want to configure, and select Edit.

应用程序部署或应用程序统计摘要生成器Application deployment or application statistics summarizers

在摘要生成器属性页的“常规”选项卡上,配置摘要间隔。On the General tab of the summarizer properties page, configure the summarization intervals.

对于应用程序部署摘要生成器,这些时间段指定了站点更新应用程序、任务序列和包的部署状态的频率。For the application deployment summarizer, these time periods specify how frequently the site updates the deployment status for applications, task sequences, and packages. 它根据部署开始时间计算得出。It's calculated based on the deployment start time. 以下值显示默认设置:The following values show the defaults:

  • 最近 30 天内的修改:60 分钟Modified in the last 30 days: 60 minutes
  • 最近 31 到 90 天内的修改:24 小时Modified in the last 31 to 90 days: 24 hours
  • 90 天之前的修改:7 天Modified over 90 days ago: 7 days

对于应用程序统计摘要生成器,这些时间段指定了站点更新应用程序统计信息的频率。For the application statistics summarizer, these time periods specify how often the site updates application statistics. 它们根据上次修改应用程序的日期得出。They're based on the date you last modified the application. 以下值显示默认设置:The following values show the defaults:

  • 最近 30 天内的修改:240 分钟Modified in the last 30 days: 240 minutes
  • 最近 31 到 90 天内的修改:24 小时Modified in the last 31 to 90 days: 24 hours
  • 90 天之前的修改:7 天Modified over 90 days ago: 7 days

组件状态摘要生成器Component status summarizer

  1. 在摘要生成器属性页的“常规”选项卡上,配置复制和阈值期的值:On the General tab of the summarizer properties page, configure the replication and threshold period values:

    • 启用状态摘要Enable status summarization
    • 复制到父站点并选择“复制优先级”(默认为“常规”) Replicate to parent site and select the Replication priority (by default, Normal)
    • 阈值周期(默认为从 00:00:00 开始) 。Threshold period (by default, Since 00:00:00). 也就是说,组件状态默认在午夜重置。In other words, by default component status is reset at midnight.
  2. 在“阈值”选项卡上,选择“消息类型” :信息、警告或错误。On the Thresholds tab, select the Message type: Informational, Warning, or Error.

  3. 选择一个组件,然后选择属性图标。Select a component and then select the properties icon. 也可双击组件,或者右键单击并选择“属性”。You can also double-click the component, or right-click and select Property.

  4. 指定站点更改状态之前组件上状态消息数的阈值。Specify the threshold for the number of status messages on the component before the site changes the status.

下表显示默认值:The following table shows the default values:

消息类型Message type 警告阈值Warning threshold 严重阈值Critical threshold
信息Informational 20002000 50005000
警告Warning 1010 5050
错误Error 11 55

例如,如果组件在阈值期间(默认从午夜开始)生成 2000 条信息性状态消息,则站点会将该组件的状态设置为“警告”。For example, if a component generates 2000 informational status messages in the threshold period (by default, since midnight), the site sets that component's state to warning.

站点系统状态摘要生成器Site system status summarizer

  1. 在摘要生成器属性页的“常规”选项卡上,配置复制和计划的值:On the General tab of the summarizer properties page, configure the replication and schedule values:

    • 启用状态摘要Enable status summarization
    • 复制到父站点并选择“复制优先级”(默认为“中等”) Replicate to parent site and select the Replication priority (by default, Medium)
    • 状态摘要计划(默认为每小时准点)Status summarization schedule (by default, every hour on the hour)
  2. 在“阈值”选项卡上,为任何站点系统上的可用空间指定“默认阈值”的值 。On the Thresholds tab, specify values for the Default thresholds for free space on any site system. 以下值为默认设置:The following values are the defaults:

    • 警告 (KB):10485760 (10 GB)Warning (KB): 10485760 (10 GB)
    • 严重 (KB):5242880 (5 GB)Critical (KB): 5242880 (5 GB)

    例如,如果站点系统报告驱动器上的可用空间少于 10 GB,则该站点系统的状态将更改为“警告”。For example, if a site system reports less than 10 GB of free space on a drive, that site system's status changes to warning.

  3. 站点还可监视特定存储对象的特定阈值。The site can also monitor specific thresholds for specific Storage objects. 默认情况下,它包括 SQL Server 数据库的阈值和站点数据库的事务日志。By default, it includes thresholds for the SQL Server database and transaction log for the site database. 这些默认对象的默认值与默认阈值相同。The default values for these default objects are the same as the default thresholds.

    若要修改这些阈值,请在列表中选择对象,然后选择属性图标。To modify these thresholds, select the object in the list, and then select the properties icon. (也可双击对象,或右键单击以访问这些操作。)(You can also double-click the object, or right-click to access these actions.)

  4. 若要创建新的存储对象进行监视,请选择“新建”图标(金色星号)。To create a new storage object to monitor, select the gold asterisk "new" icon. 从列表中选择存储对象,并指定可用空间阈值。Select a storage object from the list, and specify the free space thresholds.

  5. 若要删除存储对象,请选择该对象,然后选择删除图标。To delete a storage object, select the object, and then select the delete icon.

管理状态筛选规则Manage status filter rules

借助状态筛选规则,站点可在出现特定状态消息条件时执行操作。With status filter rules, the site can take action when specific status message criteria occurs. 有几个默认的状态筛选规则,你也可创建自定义规则。There are several default status filter rules, and you can create custom rules.

修改状态筛选规则Modify a status filter rule

  1. 在 Configuration Manager 控制台中,转到“管理” 工作区,展开“站点配置” ,然后选择“站点” 节点。In the Configuration Manager console, go to the Administration workspace, expand Site Configuration, and select the Sites node.

  2. 选择一个站点,然后在功能区的“主页”选项卡的“设置”组中,选择“状态筛选规则” 。Select a site, and then on the Home tab of the ribbon, in the Settings group, select Status Filter Rules.

  3. 在“状态筛选规则”窗口中,选择要修改的规则。In the Status Filter Rules window, select the rule that you want to modify.

    • 若要更改状态筛选规则的处理顺序,请选择“提高优先级”或“降低优先级” 。To change the processing order of the status filter rule, select Increase Priority or Decrease Priority.

    • 若要更改规则的状态,请选择“禁用”或“启用” 。To change the status of the rule, select Disable or Enable.

    • 若要从站点中删除状态筛选规则,请选择“删除”To delete the status filter rule from the site, select Delete

    • 若要更改状态消息规则的条件,请选择“编辑”。To change the criteria for the status message rule, select Edit.

创建状态筛选规则Create a status filter rule

  1. 在 Configuration Manager 控制台中,转到“管理” 工作区,展开“站点配置” ,然后选择“站点” 节点。In the Configuration Manager console, go to the Administration workspace, expand Site Configuration, and select the Sites node.

  2. 选择一个站点,然后在功能区的“主页”选项卡的“设置”组中,选择“状态筛选规则” 。Select a site, and then on the Home tab of the ribbon, in the Settings group, select Status Filter Rules.

  3. 选择“创建” 。Select Create.

  4. 在“创建状态筛选规则”向导的“常规”页面上,指定新状态筛选规则的名称 。On the General page of the Create Status Filter Rule Wizard, specify a Name for the new status filter rule. 为规则选择消息匹配条件,然后指定要匹配的值。Select message-matching criteria for the rule, and specify values to match. 可用条件如下:The following criteria are available:

    • 源:客户端、SMS 提供程序、站点服务器Source: Client, SMS Provider, Site Server
    • 站点代码Site code
    • 系统System
    • 组件Component
    • 消息类型:里程碑、详细信息、审核Message type: Milestone, Detail, Audit
    • 严重性:信息、警告、错误Severity: Informational, Warning, Error
    • 消息 IDMessage ID
    • PropertyProperty
    • 属性值Property value
  5. 在“操作”页面上,指定状态消息与指定条件匹配时的操作。On the Actions page, specify the actions when a status message matches the specified criteria. 提供了以下选项:The following actions are available:

    • 写入 Configuration Manager 数据库Write to the Configuration Manager database
      • 允许用户在多少天后删除消息Allow the user to delete messages after how many days
    • 报告到事件日志Report to the event log
    • 复制到父站点Replicate to the parent site
      • 复制优先级Replication priority
    • 运行程序Run a program
      • 指定要在站点服务器上运行的命令行Specify a command line to run on the site server
    • 不转发到状态摘要生成器Do not forward to status summarizers
    • 不处理低优先级的状态筛选规则Do not process lower-priority status filter rules
  6. 完成向导。Complete the wizard.

备注

Configuration Manager 仅要求新的状态筛选规则具有名称。Configuration Manager only requires that a new status filter rule has a name. 如果创建规则,但未指定任何状态消息处理条件,则状态筛选规则将失效。If you create a rule, but you don't specify any criteria to process status messages, the status filter rule has no effect. 利用此行为,你可在为每个规则配置条件之前创建并整理规则。This behavior allows you to create and organize rules before you configure the criteria for each rule.

配置状态报告Configure status reporting

  1. 在 Configuration Manager 控制台中,转到“管理” 工作区,展开“站点配置” ,然后选择“站点” 节点。In the Configuration Manager console, go to the Administration workspace, expand Site Configuration, and select the Sites node.

  2. 选择一个站点,接着在功能区的“主页”选项卡的“设置”组中,选择“配置站点组件”,然后选择“状态报告” 。Select a site, and then on the Home tab of the ribbon, in the Settings group, select Configure Site Components, and then select Status Reporting.

  3. 在“状态报告组件属性”窗口中,指定要报告或记录的服务器和客户端组件状态消息:In the Status Reporting Component Properties window, specify the server and client component status messages that you want to report or log:

    • 报告:向 Configuration Manager 状态消息系统发送状态消息。Report: Send status messages to the Configuration Manager status message system. 默认对服务器和客户端组件的所有里程碑启用此选项。By default, this option is enabled for All Milestones for both server and client components. 还会默认启用“报告失败时的详细信息”选项。The option to Report details on failure is also enabled by default.

    • 日志:将状态消息的类型和严重性写入到 Windows 事件日志中。Log: Write the type and severity of status messages to the Windows event log. 默认情况下,不会为服务器或客户端组件启用此选项。By default, this option isn't enabled for either server or client components.

监视状态系统Monitor the status system

Configuration Manager 中的“系统状态”提供了层次结构的一般站点操作和站点服务器操作的概览。System status in Configuration Manager provides an overview of the general operations of sites and site server operations of your hierarchy. 它可显示站点系统服务器或组件的操作问题。It can reveal operational problems for site system servers or components. 可使用系统状态来查看不同 Configuration Manager 操作的特定详细信息。You can use the system status to review specific details for different Configuration Manager operations. 从 Configuration Manager 控制台中“监视”工作区的“系统状态”节点监视系统状态。You monitor system status from the System Status node of the Monitoring workspace in the Configuration Manager console.

大多数 Configuration Manager 站点系统角色和组件都会生成状态消息。Most Configuration Manager site system roles and components generate status messages. 状态消息详细信息记录在每个组件的操作日志中,但也会提交到站点数据库。Status message details are logged in each component's operational log, but are also submitted to the site database. 然后,该站点对每个组件或站点系统进行汇总,并以常规运行状况汇总的形式显示它们。The site then summarizes and presents them in a general health rollup for each component or site system. 这些状态消息汇总提供正常操作的信息详情,还提供警告和错误详细信息。These status message rollups provide information details for regular operations, and details of warnings and errors. 可配置站点触发警告或错误的阈值。You can configure the thresholds at which the site triggers warnings or errors. 在环境中优化系统,确保汇总信息忽略与你无关的已知问题。Tune the system in your environment to make sure rollup information ignores known issues that aren't relevant to you. 还可对其进行配置,唤起对需要调查的实际问题的注意。Also configure it to call attention to actual problems that you need to investigate.

系统状态将以站点数据(而非全局数据)的形式复制到层次结构中的其他站点。System status is replicated to other sites in a hierarchy as site data, not global data. 此行为意味着你只能查看 Configuration Manager 控制台连接到的站点以及该站点下任何子站点的状态。This behavior means you can only see the status for the site to which your Configuration Manager console connects, and any child sites below that site. 查看系统状态时,请将 Configuration Manager 控制台与层次结构的顶层站点一起使用。When you view system status, use the Configuration Manager console with the top-level site of your hierarchy. 若要详细了解站点数据与全局数据,请参阅数据库复制:数据类型For more information on site data versus global data, see Database replication: Types of data.

Configuration Manager 控制台中有不同的系统状态视图:There are different system status views in the Configuration Manager console:

  • 站点状态:查看每个站点系统的状态汇总,进而查看每个服务器的运行状况。Site Status: View a rollup of the status of each site system to review the health of each server. 站点通过在站点系统状态摘要生成器中为每个站点配置的阈值来确定站点系统运行状况。The site determines site system health by thresholds that you configure for each site in the Site System Status Summarizer. 在此节点中:In this node:

    • 查看每个站点系统的状态消息View status messages for each site system
    • 设置状态消息的阈值Set thresholds for status messages
    • 使用 Configuration Manager Service Manager 管理站点系统上组件的操作Manage the operation of the components on site systems by using the Configuration Manager Service Manager
  • 组件状态:查看每个 Configuration Manager 组件的状态汇总,进而查看其运行状况。Component Status: View a rollup of the status of each Configuration Manager component to review its operational health. 站点通过在组件状态摘要生成器中为每个站点配置的阈值来确定组件运行状况。The site determines component health by thresholds that you configure for each site in the Component Status Summarizer. 在此节点中:In this node:

    • 查看每个组件的状态消息View status messages for each component
    • 设置状态消息的阈值Set thresholds for status messages
    • 使用 Configuration Manager Service Manager 管理组件的操作Manage the operation of components by using the Configuration Manager Service Manager
  • 冲突的记录:查看有关可能有冲突记录的客户端的状态消息。Conflicting Records: View status messages about clients that might have conflicting records. Configuration Manager 使用硬件 ID 来尝试标识可能重复的客户端,并发出有关冲突的记录的警报。Configuration Manager uses the hardware ID to attempt to identify clients that might be duplicates and alert you to the conflicting records. 例如,如果必须重新安装计算机,则硬件 ID 将相同,但 Configuration Manager 使用的 GUID 可能会更改。For example, if you have to reinstall a computer, the hardware ID would be the same, but the GUID that Configuration Manager uses might change.

  • 状态消息查询:查询特定事件的状态消息及相关详细信息。Status Message Queries: Query status messages for specific events and related details. 使用状态消息查询来查找与特定事件相关的状态消息。Use status message queries to find the status messages related to specific events. 你可确定特定组件、操作或 Configuration Manager 对象的修改时间,以及用于进行修改的帐户。You can identify when a specific component, operation, or Configuration Manager object was modified, and the account that was used to make the modification. 例如,运行内置的“已创建、已修改或已删除的集合”查询来确定创建特定集合的时间以及用于创建该集合的用户帐户。For example, run the built-in Collections Created, Modified, or Deleted query to identify when a specific collection was created, and the user account used to create it.

查看状态消息View status messages

  1. 若要在 Configuration Manager 控制台中查看状态消息,请选择特定站点系统服务器或组件。To view status messages in the Configuration Manager console, select a specific site system server or component.

  2. 在功能区中,选择“显示消息”,然后选择要显示的消息类型:全部、错误、警告、信息。In the ribbon, select Show Messages, then choose the type of messages to show: All, Error, Warning, Information.

  3. 选择查看时间段。Select the viewing period. 在某一特定日期和时间或之后,或从某一特定时间段开始。Either on or after a specific date and time, or from a specific time period. 默认情况下,查看时间是“1 天前”。By default, the viewing period is 1 day ago.

    状态消息截图:“设置查看时间段”窗口

  4. 状态消息查看器有许多控件可自定义视图。The Status Message Viewer has many controls to customize the view. 例如,若要根据状态消息详细信息筛选结果,请转到“视图”菜单,然后选择“筛选器” 。For example, to filter the results based on the status messages details, go to the View menu, and select Filter.

从 2010 版开始,有一种更简单的方法来查看以下对象的状态消息:Starting in version 2010, there's an easier way to view status messages for the following objects:

  • 设备Devices
  • 用户Users
  • ContentContent
  • 部署Deployments
    • 监视工作区Monitoring workspace
      • 分阶段部署(从“分阶段部署”节点中选择“显示部署”)Phased deployments (select Show Deployments from the Phased Deployments node)
    • 详细信息窗格中的“部署”选项卡用于:Deployments tab in the details pane for:
      • Packages
      • 任务序列Task sequences

在 Configuration Manager 控制台中选择这些对象之一,然后从功能区中选择“显示状态消息”。Select one of these objects in the Configuration Manager console, and then select Show Status Messages from the ribbon.

后续步骤Next steps

配置警报Configure alerts

Configuration Manager Service ManagerConfiguration Manager Service Manager