As an alternative to customizing the pattern from the Pattern Designer side, improve existing patterns so that Service Mapping can use them to find configuration item (CI) connections previously found using traffic-based discovery.

Before you begin

Role required: pd_admin

Basic knowledge of programming is desirable.

About this task

Service Mapping can discover and map configuration items (CIs) following their traffic-based connections. This method is referred to as traffic-based mapping and it complements the pattern-based mapping.

Using traffic-based discovery, Service Mapping may discover an important CI connection. In this case, you can make sure that this connection is always found for all CIs belonging to the same CI type. You do that by modifying the pattern used to discover CIs of that CI type. A pattern is a sequence of commands whose purpose it is to detect attributes of a CI and its outbound connections.

You can search CI configuration files to locate data discovered using traffic-based discovery, for example IP address and port. If there are configuration files containing this data, you create a pattern step to parse this file. Next time Service Mapping discovers this CI using the modified pattern, it extracts the information about this connection directly from the configuration file.

Procedure

  1. Navigate to Service Mapping > Services > Application Services.
  2. Click View Map next to the relevant application service.
  3. Right-click the relevant CI.
  4. Select Show traffic based connections.
    The Traffic Based Connections List displays the following information:
    Note: There may be a case when you can see traffic-based connections on the map, but the Traffic Based Connections list does not display them. It happens for the connections that have been removed from the TCP Connection [cmdb_tcp] table less than three days.
  5. Double-click the connection you want to use to create a pattern step.
  6. If there are multiple patterns used to discover this CI, select the pattern for which you want to create the step, and click OK.

    Pattern Designer creates a temporary connection section for this pattern with a new step.


    Temporary Connection section in the Pattern Designer

    The Debug Connection Section window is displayed with some fields automatically populated.

  7. Click Connect.

    The Debug mode is activated.

    The Search Assistant window opens.
  8. Search CI configuration files for data received using traffic-based discovery:
    1. Under Free Text, review data automatically filled in from the Traffic Based Connections List.

      Search Assistant shows search criteria pulled directly from the Traffic Based Connections List

      The File Patterns field displays file types in which Pattern Designer performs the search.

    2. Click the Search Files tab and review files.
      If necessary, you can remove irrelevant files from the search by clicking the Minus icon.
    3. Click Search.

      After search completes, the Search Result tab opens with the list of files in which any of the search criteria was found.

  9. Create a pattern step for parsing the configuration file containing information about the connection:
    1. On the Search Result tab, click one of the files and review connection data found in this file.
    2. Wait for the file content to load and select the relevant entry under the file name:

      Search Result tab showing data found in files.
    3. To use this data to create the pattern step, click Create parse file step.

      Pattern Designer shows the new step with the Parse File operation. It automatically assigns this step the name in the following format: Parsing <file name>.

      Pattern Designer automatically sets the file name, file path, and parsing strategy for the step. It also creates variables that contain data you searched for. If there is a variable, which contains the file path, Pattern Designer enters this variable for the path.


      Automatically created step
    4. (Optional) If necessary, you can modify parsing strategy.
    5. Rename the section to provide a meaningful name, for example Discover HA Proxy client connection.
      Or

      Copy and past the step into the relevant connection section.

  10. Complete modifying the pattern as described in Finalize a pattern.