Parse text using keyword, command, and positional type

In discovery patterns, you can parse text into a variable for keyword, command, and positional type parsing strategies.

Before you begin

Basic knowledge of programming is desirable.

Role required: pd_admin

About this task

The following strategies are generally used to extract a value from a variable. You can use them to define only a single value for extraction. To extract multiple strings, define multiple steps.
  • After keyword
  • Command-line Java style
  • Command-line Unix style
  • Position from start
  • Position from end


  1. Select one of the parsing operations from the Operation list in one of the following locations:
    • the Identification Sections or Connectivity Sections for Service Mapping
    • the Step window for Discovery
  2. Select one of the keyword, command, or positional types from the Define Parsing list.
  3. Click Retrieve.
    The content of the file is displayed in the Output pane.
  4. Define the string to extract as a variable from within Debug mode:
    1. Select the string in the Output box.
      All settings are automatically entered in the variable fields.
    2. Provide a unique and meaningful name for the variable and click OK. The variable is added to the Variables table.
  5. Define the string to extract as a variable outside of Debug mode:
    1. Specify the value and delimiter for the Keyword, Position from Start, or Position from End.
    2. To add more strings and variables, click the plus icon.
  6. To end the discovery process if no results are found, select the If not found check box.


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