9.2 Scenario: Building an Organization Structure Based on Discovered Items

This example scenario involves building a new Organization structure based on a discovered item from a discovery tool. When working with discovery tool elements, special actions are required.

The following sections describe the two procedures required for this scenario:

9.2.1 Defining a Custom Element Menu Option

The first objective is to create a right-click option that displays a discovered attribute. In this example, the discovered operating system name should be displayed.

It is necessary to define a custom element option to display the discovered operating system. For steps to create custom element options, see Modifying Element and Alarm Menus in the Operations Center 5.6 Server Configuration Guide.

Use the following syntax to create the option:

Info("OS Name: " + element['CI.Operating System.Name']);

This string displays the discovered operating system name. To view attributes that can be displayed, look at Configuration Information on the property page of a discovered item; always start the property name with CI, as shown above.

9.2.2 Defining the Service Configuration

The second goal is to build a SCM Organizational structure based on the operating system with the host name listed beneath, such as the following the structure:

 Windows 2000
     Labs.net

To generate the new organizational structure:

  1. Open the Service Configuration Editor and define a Structure definition using the discovered hosts tree from the discovery tool.

    If you are unfamiliar with the Service Configuration Editor, see Section 8.0, Creating a Service Configuration.

  2. Define a Generation policy similar to the one shown in the following illustration:

    Service Configuration for OS Test View of Operations Center Console

    The following illustration shows the contents of the DWF_SCM1.XML hierarchy file:

    Notepad with DWF_SCM XML Data
  3. Click Generate to generate the new tree.

    Be patient when generating the element tree because the process must query every discovered host for the operating system name.