Export (0) Print
Expand All

How to Create a Management Pack With a Discovery Using the Windows Registry Template

Updated: May 22, 2009

Applies To: Operations Manager 2007 R2, Operations Manager 2007 SP1

This topic discusses creating a management pack based on the Windows Application (Registry) management pack template. The three major sections of this topic include creating the management pack, creating the discovery, and viewing and modifying the created class. This management pack will be used as the basic for further scenario topics used later in this section.

Create the Management Pack

  1. In the authoring console, click File, and then click New from the menu.

  2. On the Select a management pack template page, select the Windows Application (Registry) template, and then enter the management pack ID in the Management Pack Identity text box. For this exercise, enter AuthoringConsole.MyFirstMP. Note that this ID will become the file name of the management pack.

    066168bf-028d-4583-be32-6e63e2285b1e
  3. Click Next.

  4. On the Name and Description page, enter a name in the Display Name text box and, optionally, a description for the management pack in the Description text box, and then click Next.

    0b4a8da9-5eeb-456c-a087-c7cdf04b3806
  5. On the Windows Application page, enter AuthoringConsole.MyFirstMP.LOBApplication as the ID of the class.

  6. Enter LOB Application as the display name of the class.

  7. You can enter a description in the Description field.

  8. Click Next.

    d5229449-4078-449b-8a7a-ec905570fab6

Create the Discovery

  1. On the Discovery Schedule page, change the discovery time to 60 seconds, and then click Next.

    119a99c5-0cd9-4eed-ba05-8b27d9c8042d
  2. On the Registry Probe Configuration page, click Add to add an attribute to collect from the registry. The Edit Attribute Properties dialog box will display.

    02b5eb01-466e-4b61-b858-eebcf8ad2d51
  3. Select Key as the Object Type.

  4. For Properties, type “LOBApplicationExists” in the Name text box.

  5. Type “Software\LOB” in the Path text box.

  6. In the Attribute Type drop-down list, click Check if exists.

  7. Click OK to close the Edit Attribute Properties dialog box.

  8. Click Add to add a second attribute.

  9. Select Key as the Object Type.

    9a367621-45f7-443b-9d9b-da7689f71ed7
  10. For Properties, type “LOBApplicationVersion” in the Name text box.

  11. Type “Software\LOB\Version” in the Path text box.

  12. In the Attribute Type drop-down list, click String.

  13. Click OK to close the Edit Attribute Properties dialog box and return to the Attribute page.

  14. Click Next to proceed to the Expression Filter page.

  15. You can now configure the expression matching for the attributes you just created. Click Insert and add the following properties:

    • For the Parameter Name property, type Values/LOBApplicationExists.

    • For the Operator, select Equals.

    • For the Value, add true.

    4ae6af0e-77b0-4080-9d87-e46d73532468
  16. Click the Create button to finish the wizard and return to the main authoring console window.

  17. Click File, and then click Save As from the authoring console menu to save your management pack.

View and Modify the Created Class

  1. Add a property to the class that was created by the wizard. Select the Service Model space on the left side of the main authoring console window, and then click Classes View in the navigation pane.

  2. In the class list view, click the AuthoringConsole.MyFirstMP.LOBApplication class that was created, and then open its properties either by right-clicking it and then clicking Properties, or clicking Properties in the Actions panel on the right side of the window.

  3. In the AuthoringConsole.MyFirstMP.LOBApplication properties dialog, click the Properties tab.

  4. Right-click anywhere in the property list on the left side of the authoring console window, and then click Add Property. The Choose a unique identifier dialog box will display.

    7dba2ba8-7d49-4c2b-8a93-708bb6b52d32
  5. Enter Version as the ID of the property, and then click OK to return to the properties dialog box.

  6. In the Display Name field, type Version as the value.

  7. 7416c591-18a9-4dcf-beda-38951c63d6d2

    Click OK to save the class.

  8. Save the management pack by selecting File and Save from the authoring console menu.

You have now created a basic management pack. This management pack will be used as a starting point for subsequent how-to topics in this documentation.

See Also

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft