Searching the Help
To search for information in the Help, type a word or phrase in the Search box. When you enter a group of words, OR is inferred. You can use Boolean operators to refine your search.
Results returned are case insensitive. However, results ranking takes case into account and assigns higher scores to case matches. Therefore, a search for "cats" followed by a search for "Cats" would return the same number of Help topics, but the order in which the topics are listed would be different.
Search for | Example | Results |
---|---|---|
A single word | cat
|
Topics that contain the word "cat". You will also find its grammatical variations, such as "cats". |
A phrase. You can specify that the search results contain a specific phrase. |
"cat food" (quotation marks) |
Topics that contain the literal phrase "cat food" and all its grammatical variations. Without the quotation marks, the query is equivalent to specifying an OR operator, which finds topics with one of the individual words instead of the phrase. |
Search for | Operator | Example |
---|---|---|
Two or more words in the same topic |
|
|
Either word in a topic |
|
|
Topics that do not contain a specific word or phrase |
|
|
Topics that contain one string and do not contain another | ^ (caret) |
cat ^ mouse
|
A combination of search types | ( ) parentheses |
|
- REST Web Service Listener Policy User Interface
- Configuring REST Web Service Listener Policy Properties
- Configuring the Data Source in REST Web Service Listener Policies
- Configuring Mappings in REST Web Service Listener Policies
- Configuring Mappings in REST Web Service Listener Policies (Generic Output Only)
- Configuring Event Defaults in REST Web Service Listener Policies
- Configuring Metrics Defaults in REST Web Service Listener Policies
- Configuring Event Rules in REST Web Service Listener Policies
- Configuring Metrics Rules in REST Web Service Listener Policies
- Configuring Options in REST Web Service Listener Policies
Configuring the Data Source in REST Web Service Listener Policies
The source page of the REST Web service listener policy editor enables you to set up the path as part of URL where the REST Web Service Listener will listen for the XML data. In event and metric integrations, you can additionally upload the sample data to Operations Connector, and to specify one or more XML tags that create the shortcuts to the XML elements that you want to process. When integrating the topology data, you can specify the age to deletion and to decide whether delta detection should be done.
To access
-
In the Operations Connector user interface, click in the toolbar. Then click Event > REST Web Service Listener.
-
In the Operations Connector user interface, click in the toolbar. Then click Metrics > REST Web Service Listener.
-
In the Operations Connector user interface, click in the toolbar. Then click Topology > REST Web Service Listener.
-
In the Operations Connector user interface, click in the toolbar. Then click Generic output > REST Web Service Listener.
Alternatively, double-click an existing policy to edit it.
Click Source to open the policy Source page.
Customizing REST Web Service Listener
REST Web Service Listener listens for the XML data at the predefined URL. For example, for the event integration this URL should look as follows:
http(s)://<bsmc_FQDN>:<configured_port>/bsmc/rest/events/<PATH>
In this instance, <PATH>
is the string, entered in the policy. The REST Web Service Listener for the metric, topology, and generic output data integrations should look as follows:
-
/bsmc/rest/metrics/<PATH>
-
/bsmc/rest/topology/<PATH>
-
/bsmc/rest/genericdata/<PATH>
You can customize the OpsCx REST Web Service Listener by using the bsmc-wsconf.[bat|sh]
utility, located at:
$OvDataDir/installation/HPOprBSMC/
For example, to enable basic authentication, set the listener port to 12345 and set the credentials any client needs to provide to post data, type the following:
bsmc-wsconf.bat -enable_auth -port 12345 -username integrator -password bsmcRESTd8a
For the bsmc-wsconf.[bat|sh]
utility usage details, type:
bsmc-wsconf.[bat|sh] -help
The following table lists the available XPL configuration parameters that apply to each activated web service policy:
Attribute Name | Default | Description |
---|---|---|
RESTWS_PORT
|
30005
|
Operations Connector will spawn an HTTP(s) server on the specified port. |
RESTWS_USE_BASIC_AUTH
|
false
|
If set to TRUE , the REST Web Service Listener requires credentials. The basic HTTP authentication mechanism is used. |
RESTWS_AUTH_USER
|
Encrypted user name, used for the basic HTTP authentication.
Encryption is done by using the OvSecCore crypt mechanism.
|
|
RESTWS_AUTH_PASSWORD
|
Encrypted password, used for the basic HTTP authentication.
Encryption is done by using the OvSecCore crypt mechanism.
|
|
RESTWS_REGISTER_CB
|
false
|
If set to TRUE , the REST Web Service Listener is registered at the BBC communication broker. This enables accessing the Web Service Listener through the port 383. |
You can view the XPL configuration parameters by using the ovconfget
command.
REST Web Service accepts the regular XML data without an XML header structure ("<?xml version=.....
") and all-embracing XML root tag. Additionally, you can collect the data for multiple events and send them consolidated to the REST Web Service.
A successful Web Service call should result in HTTP status code 200. Otherwise status codes like 501 or 401 are returned.
The following is an example of the XML event:
<BSMCEvent>
<title>Detected neglectable impact on system hydrogen.elementary.com caused by monitored aspect workers_restart_rate [1/s]: 0.0000 at Tue Aug 5 13:41:32 2014</title>
<timeStamp>12/13/14 08:59:57 AM</timeStamp>
<impact>neglectable</impact>
<category>Monitor Alert</category>
<relatedCounter>workers_restart_rate [1/s]</relatedCounter>
<relatedEntity>hydrogen.elementary.com</relatedEntity>
</BSMCEvent>
Tasks
How to configure the REST Web service listener source (events and metrics)
This task describes how configure the REST Web service listener source and how the policy reads it.
-
Enter the Path parameter string, which is a part of the actual URL where the REST Web Service Listener listens for the XML data from the Web service client.
-
Click to load a sample XML file. You can load a sample file from the Operations Connector system or from the system where the Web browser runs.
When you load sample data, Operations Connector replaces already loaded data with the new data. This does not affect any mappings that are defined based on previously available sample data.
-
Click to create one or more XML event or metric tags. You can create a tag manually by typing the XML element. If you are working with sample data, you can create a tag by double-clicking the XML element in the list.
The XML tag creates a shortcut to the XML element that you want the policy to process. An event tag typically identifies an event record in an XML log file, while a metric tag identifies a metric record in an XML log file. You can define more than one XML tag. For example, an XML file may contain two types of events:
<PerformanceAlert>
and<AvailabilityAlert>
. To process both types, define both elements as event tags.
How to configure the REST Web service listener source (topology)
This task describes how configure the XML source file and how the policy reads it.
-
Enter the Path parameter string, which is a part of the actual URL where the REST Web Service Listener listens for the XML data from the Web service client.
-
Enter the age to deletion - the number of times for the policy to be run for a host that is not part of the topology data. After this number of policy executions, this host is deleted from the server.
-
Optionally, enable delta detection, so that only the difference between the received XML file and the repository is sent to the topology server.
Events and Metrics only: How to load sample data into the policy
- Create a file that contains the XML data, and then send it to the REST Web Service listener.
-
Click to upload the XML file to the Operations Connector user interface policy editor. The results are displayed in the Sample Data tabs of the policy.
Related tasks
-
How to Collect Event Data Through the REST Web Service Listener
-
How to Collect Metrics Data Through the REST Web Service Listener
-
How to Collect Generic Output Data Through the REST Web Service Listener
UI Descriptions
REST Web Service Listener Source Page
We welcome your comments!
To open the configured email client on this computer, open an email window.
Otherwise, copy the information below to a web mail client, and send this email to ovdoc-asm@hpe.com.
Help Topic ID:
Product:
Topic Title:
Feedback: