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.
Avant de commencer
Role required: pd_admin
Basic knowledge of programming is desirable.
Pourquoi et quand exécuter cette tâche
Service Mapping can discover and map configuration items (CIs) following their traffic-based connections. This method is referred to as traffic-based mapping and complements 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 designed 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.
Procédure
Navigate to Service Mapping > Services > Application Services.
Click View Map next to the relevant service instance.
Right-click the relevant CI.
Select Show traffic based connections.
The Traffic Based Connections List displays the following information:
Tableau 1. Traffic Based Connections List (when discovery based on Predictive Intelligence is disabled)
Field
Description
IP
The IP address of the application connected to the selected CI.
Port
The port on the selected CI that is used to communicate to the other application.
Process
The ID of the process in the selected CI.
Already on map
Yes — if this connection shows on the map.
No — if this connection is not part of the service instance and not on the map.
System decision
The setting defines if Service Mapping keeps the discovered traffic-based connection or removes it. The value comes from the algorithm that Service Mapping uses.
User decision
(Optional) The setting overrides the System decision setting, which defines if Service Mapping keeps the discovered traffic-based connection or removes it. For example, if the System decision setting for a connection is Keep, and you want to remove this connection,
select Remove.
Remarque :
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.
Double-click the connection you want to use to create a pattern step.
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.
The Debug Connection Section window is displayed with some fields
automatically populated.
Click Connect.
The Debug mode is activated.
The Search Assistant window opens.
Search CI configuration files for data received using traffic-based
discovery:
Under Free Text, review data automatically
filled in from the Traffic Based Connections List.
The File Patterns field displays file types in which Pattern Designer
performs the search.
Click the Search Files tab and review files.
If necessary, you can remove irrelevant files from the search by clicking the Minus icon.
Click Search.
After search completes, the Search Result tab
opens with the list of files in which any of the search criteria was
found.
Create a pattern step for parsing the configuration file containing information
about the connection:
On the Search Result tab, click one of the files and review connection
data found in this file.
Wait for the file content to load and select the relevant entry under
the file name:
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.
Facultatif : If necessary, you can modify parsing strategy.
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.