The Mappings page enables you to map attribute keys gathered with the Perl script to custom variables.
In the BSM Connector user interface, click in the toolbar. Then click Event >
Perl Script.
In the BSM Connector user interface, click in the toolbar. Then click Metric >
Perl Script.
Alternatively, double-click an existing policy to edit it.
Click Mappings to open the policy Mappings page.
A custom variable consists of a map name, a key attribute name, and one or more source and target value pairs. For example, you can assign the data key name Severity
to the map name mapSeverity
, and add a source value of 2
. You can then assign the target value Critical
to the variable so that BSM Connector inserts the value Critical
into the event in all places where the variable is used.
Perl attribute key names use the following syntax:
<$DATA:<attribute_name>>
where <attribute_name> is the data key name in a Perl hash array.
This task describes how to map result data key names to custom variables.
Create one or more custom variables.
Drag the data keys from the Data Key names list to the Map Name column. BSM Connector automatically adds the default prefix map
to the map name and inserts the correct Input Data Property.
Alternatively, click above the Map Name column and type the Data key name in the map name field.
Add source and target value pairs to each custom variable.
above the Source Value column and type the source and target values in the corresponding fields.
Optional. In the Indicators tab, add indicators to the source or target value fields. After loading the indicators from the OMi server, the Indicators tab shows a hierarchy of configuration item types.
To insert an indicator in a source or target value field, drag the indicator state (for example, HTTPServer:Normal
) from the Indicators tab and drop it on the corresponding field.
Optional. In the Policy Variables tab, add policy variables to
HP recommends to surround variables with quotation marks, for example "<$MSG_NODE>"
or "<$MSG_GEN_NODE>"
, at least for those variables whose values can contain space characters.
Description |
|
---|---|
![]() |
Refresh. Loads the configured indicators from the Note:
|
<Search …> |
Entered search string is used to search the indicators and highlight only the indicators containing the specified string. To search for indicators with specific text strings in the name, type the string in the <Search …> field and click the |
<Indicators> |
Hierarchy of configuration item types with associated health indicators (HIs), which are applicable for the event integration only, and event type indicators (ETIs). To insert an indicator with a state in a policy, drag and drop the indicator from the Indicators tab to the relevant field in the policy. |