As part of creating or modifying a discovery pattern, you can use the Parse variable operation to extract information from a variable and to store it in a variable table.

Before you begin

Role required: pd_admin

Navigate to the relevant pattern step:

  1. On the pattern form, select the relevant identification section for Discovery.

    Alternatively, select the relevant identification or connection section for Service Mapping.

  2. Select the relevant pattern step or click Add a step button to add a step.

Basic knowledge of programming is desirable.

Procedure

  1. Select Parse variable from the Operation list.
  2. Define the variable that you wish to parse in the Enter Variable field.
    You can use regular variables. You can also use values from a temporary tabular variable: from a specific field or a specific column in a table sequentially, starting from the first row. For more information, see Enter values and variables in patterns.
  3. Select the relevant parsing strategy from the Define Parsing list and define the parsing criteria.
  4. Select Terminate to stop discovery if no results are found.
  5. If in Debug mode, test the step by clicking Test and checking that the operation brings the result you expected.

Example

You can use the Command Line Java Style parsing strategy to extract the path of the installation directory of the WebSphere Server.


Using the Command Line Java Style parsing strategy

What to do next

cmdb-key-value
Discovery also collects cloud tags that are specific to each virtual machine (VM) and saves them to the Key Value [cmdb_key_value] table.