Reuse a shared step library

As part of creating or modifying a discovery pattern, you can reuse a sequence of discovery steps that you created for one pattern in other patterns.

Before you begin

Basic knowledge of programming is desirable.

Role required: pd_admin

About this task

Reusing existing step sequences saves you from recreating the same steps manually.

First, you save the steps you want to reuse into a repository as a shared library. Then you can insert them wherever relevant and as many times as needed.

You can deactivate shared libraries, so that patterns using them, skip steps in deactivated shared libraries. For more information, see Discovery Configuration Console.

Procedure

  1. If the steps you want to reuse already exist, create a reusable step sequence as follows:
    1. Navigate to the pattern containing the steps that you want to reuse.
    2. Navigate to the steps that you want to combine.
    3. Select the steps, right-click, and choose Create shared library.
    4. Fill in the fields as appropriate:
      Field Description
      Shared Library Name Specify a unique name for the library. For example, UNIX-OS for a step sequence used to discover the Unix operating system.
      Library Description Specify a meaningful description for the library.
    5. Click Create.
      The selected steps are saved as a shared library.
  2. Reuse the step sequence you created:
    1. Navigate to the pattern in which you want to insert your step sequence.
    2. Select the relevant identification section or connectivity section
    3. Select Library Reference from the Operation list in one of the following locations:
      • the Identification Sections or Connectivity Sections for Service Mapping
      • the Step window for Discovery
    4. Select the required shared library from the Library list.
      The library is inserted as substeps inside an untitled step.

      Inserted shared library appears as a new step with the special icon.
    5. Rename Untitled Step to reflect the purpose of the step.
  3. If in Debug mode, test the step by clicking Test and checking that the operation brings the result you expected.

What to do next