追蹤管理組件中的變更Track changes in management pack

在 System Center - Operations Manager 中,使用者角色的定義有可能會透過管理組件而變更了應用程式和服務的監視設定。In System Center - Operations Manager, user roles are defined to potentially change monitoring settings for applications and services through management packs. 單一使用者角色可以有多個相關聯的使用者。There can be multiple users associated with a single user role. 舊版的 Operations Manager 並不會追蹤這些變更以識別進行變更的使用者和變更時間。In earlier versions of Operations Manager, there was no tracking of these changes to identify the user who has done the changes and when.

Operations Manager 2019 UR2 支援管理組件的變更追蹤。Operations Manager 2019 UR2 supports change tracking in management packs. 根據預設,2019 UR2 中會啟用變更追蹤,以追蹤和報告管理組件和管理組件物件的變更。Change tracking is enabled by default in 2019 UR2 to track and report the changes on the management packs and management pack objects.

現在您可以使用三種新報告來顯示變更:管理組件記錄管理組件物件,以及覆寫追蹤Three new reports Management Pack History, Management Pack Objects and Overrides tracking are now available to display the changes. 您可以在 [報告] > [Microsoft 一般報告庫] 中取得這些報告。These reports are available under Reporting > Microsoft Generic Report library.

您可以在報告中設定篩選準則,根據您的需求取得報告。You can use the filters available in the reports to set the criteria and get the reports per your requirement.

本文會詳述用於變更追蹤的報告,以及報告的使用方式。This article details the reports used for change tracking and how to use them.

管理組件記錄Management pack history

管理組件記錄報告會在管理群組中的任何管理伺服器上,產生已匯入或刪除的所有管理元件清單。The management pack history report generates the list of all the management packs, which are either imported or deleted on any management server in your management group. 您可以依日期、動作和使用者名稱來篩選報告。You can filter the report by date, action, and username.

範例: Bob 和 Dan 從上個月第一天到迄今為止所匯入的所有管理組件報告。Example: Report of all the management packs imported by Bob and Dan from first day of last month till date. 您可以如下列範例所示地套用篩選器,並針對此使用者產生報告。You can apply the filters as shown in the following example and generate the report for this user.

管理組件記錄

此報告會顯示下欄欄位和值:The report displays the following fields and values:

欄位Field 描述Description
管理組件Management Pack 執行動作時所在管理組件的名稱。Name of the management pack on which the action was performed.
版本Version 執行動作時所在管理組件的版本。Version of the management pack on which the action was performed.
日期Date 執行此動作時的日期和時間。Date and time when this action was performed.
動作Action 所執行動作的類型 - 安裝或刪除。Type of the action performed - install or delete.
使用者名稱Username 在管理組件上執行此動作的使用者名稱。Name of the user who has performed the action on the management pack.

範例報告:Sample report:

管理組件版本

注意

  • 任何在 UR2 升級之前就已匯入/刪除/更新的管理組件都會擷取到報告中,但不會為這些組件擷取使用者內容。Any management packs, which were imported/deleted/updated prior to UR2 upgrade will be captured in the report, but user context will not be captured for these.
  • 管理組件若有任何更新,都會擷取到報告中的兩個項目內。Any update on management pack will be captured in two entries in the report. 第一個項目代表刪除舊版管理組件,第二個項目則代表安裝新的版本。First entry for deletion of older management pack version and second entry for the installation of new version.

管理組件物件Management pack objects

管理組件物件報告會追蹤並產生從管理伺服器新建立或刪除的所有管理組件物件清單。The management pack objects report tracks and generates the list of all management pack objects, which are newly created or deleted from the management server. 此報告也會追蹤管理組件物件的編輯內容,例如重新命名群組/監視/規則,或新增/刪除群組中的成員等。This report also tracks edits on management pack objects like renaming a group/monitor/rule or adding/deleting a member in the group etc.

  • 此報告會顯示這些管理組件物件 (其在將 Operations Manager 管理伺服器升級為 UR2 之後有所變更) 的記錄。This report displays the history of those management pack objects, which are changed after the upgrade of Operations Manager management server to UR2.
  • 任何在 UR2 升級之前就已建立/刪除/編輯的管理組件物件也會顯示在報告中,但不會針對這些物件擷取使用者內容。Any management pack objects, which were created/deleted/edited prior to UR2 upgrade will also be shown in the report, but user context will not be captured for these objects.

您可以依日期、使用者名稱、管理組件、動作準則 (新增、刪除或編輯) 和物件類型來篩選報告。You can filter the reports by date, username, management pack, action criteria (new, delete or edit) and type of objects.

範例:如果您想要查看使用者 Dan 在過去一個月所建立的所有新監視器,則您會選取如下列範例所示的篩選:Example: If you want to see all the new monitors created by user Dan in the past One month, then you will select the filters as shown in the following example:

管理組件物件

管理組件物件報告包含下欄欄位和值:The management pack object report contains the following fields and values:

欄位Field 描述Description
管理組件名稱Management pack name 已變更的物件所屬管理組件的名稱。Name of the management pack to which the changed objects belong to.
Object NameObject Name 已建立/刪除/編輯的物件名稱。Name of the object, which was created/deleted/edited.
物件類型Object Type 物件的型別。Type of the object. 範例:監視器/規則/群組/模組。Example: Monitor/Rule/Group/Module.
受影響內容Affected property 已編輯的物件屬性。The property of the object that was edited.
舊值Old Value 受影響屬性先前的值。Previous values of the affected property.
新值New Value 受影響屬性的新值。New value of the affected property.
日期Date 執行此動作時的日期和時間。Date and time when the action was performed.
動作類型Action Type 在物件上執行的動作類型,例如新增/刪除/編輯。Type of the action performed on the object such as add/delete/edit.
使用者名稱Username 執行動作的使用者名稱。Name of the user who has performed the action.

測試管理組件

覆寫追蹤Overrides tracking

系統會建立覆寫來調整監視。Overrides are created to tune monitoring. 有多個使用者角色可以在 Operations Manager 中建立這些覆寫。Multiple user roles can create these overrides in Operations Manager. 當不同的使用者建立覆寫時,追蹤和擷取進行這些變更的使用者和進行時間就變得很重要。When different users create overrides, it becomes crucial to track and capture the user who made these changes and when. 透過覆寫追蹤報告,系統會擷取透過主控台、PowerShell 或 SDK API 所建立的所有覆寫。With Overrides tracking report, all the overrides either created through console, PowerShell, or SDK APIs are captured.

此報告具有相關的欄位/資訊,可讓您詳細地追蹤覆寫,例如管理組件名稱、物件名稱、物件類型、受影響的屬性、舊值、新值、物件類型目標和日期This report has relevant fields/information to track overrides in detail such as Management pack name, Object name, Object type, Affected Property, Old value, New value, Target of the object type and Date. 若要檢視每個已變更參數的詳細資訊,請將這些資料列各自展開,結果則會依管理組件名稱來分組。To view detailed information for every changed parameter, expand each of these rows, the results are grouped by management pack name.

篩選:您可以依使用者名稱、物件類型、管理組件名稱和日期來篩選報告,從而輕鬆地追蹤您感興趣的變更。Filtering: You can filter the report by username, type of object, management pack name and date, which makes it simple to track the changes you are interested in.

資料清理設定Data grooming settings

清理設定會與資料倉儲的管理組件清理設定繫結。Grooming settings are tied with management pack grooming settings for data warehouse. 這表示根據預設,報告中會顯示三個版本的管理組件和 400 天的舊資料。This means, by default, three versions of management packs and 400 days old data will be shown in the reports. 例如:每當您在 MyCustomMP 中進行變更時,並將過去 7 天的新版本變更儲存為 v1、v2、v3、v4。For example: whenever you make a change in MyCustomMP and save your changes in a new version as v1, v2, v3, v4 over Seven days. 則預設會清理 v1,而您只會看到 v2、v3 和 v4 的變更。Then by default, v1 will be groomed and you will only see changes for v2, v3 and v4. 除此之外,存在時間已達 400 天的變更都會清理掉。Besides this, any change which is 400 days old will be groomed.

已知問題Known issues

  • 當您升級 Operations Manager 2019 伺服器時,可能會在事件記錄中看到事件識別碼 33333 和 31552。When you upgrade Operations Manager 2019 server, you might see event ID 33333 and 31552 in event logs. 這些事件可能會在 Operations Manager 中產生一些警示。These events might generate some alerts in the Operations Manager. 一旦升級完成,警示和事件就會自動解決。Once the upgrade is complete, alerts and events will be resolved automatically.
  • 針對 Microsoft.SystemCenter.DBUpdateHelper 管理組件,系統不會擷取其使用者內容。For Microsoft.SystemCenter.DBUpdateHelper management pack user context will not be captured.
  • 在管理伺服器升級期間,某些匯入的管理組件不會擷取使用者內容。During the upgrade of management servers, some management packs that are imported, do not capture the user context. 升級完成後,就會擷取使用者內容。Once the upgrade is complete, then the user context will be captured. 若要確保變更追蹤功能會擷取所有交易,請升級所有管理伺服器。To make sure change tracking feature captures all transactions, upgrade all management servers.

後續步驟Next steps