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.

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

Procedure

  1. Select one of 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 Parsing strategy list.
  3. Define the string to be parsed from within Debug mode, or outside of Debug mode.
    OptionDescription
    In Debug mode
    1. Select the string to be parsed in the text box, or by using the Quick find field.
    2. Provide a unique and meaningful name for the variable and click OK. The variable is added to the Variables table.
    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.
  4. To end the discovery process if no results are found, select the If not found check box.