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 |
|
- Web Service Interfaces
- Reference information for all web services
- Action Web Service Interface
- Downtime Web Service Interface
- Event Synchronization Web Service Interface
- Event Web Service Interface
- Monitoring Automation Web Service Interface
- Status Web Service Interface
- Tool Execution Web Service Interface
- User Management Web Services Interface
Action Web Service Interface
The REST- based Action Web Service enables integrators to access the following functionality from an external application:
-
Execute an arbitrary command string on one or more monitored nodes. Requests can be run in parallel.
A command type must be specified. A command can be executable (default), Perl script, VBScript, JavaScript, or Windows Scripting Host script. The script code must be passed in the web service call. For Unix agents, commands are executed in a shell. For Windows agents, commands are not executed in a shell. For example, an "echo hello world" command would read
echo hello world
on Unix andcmd /c echo hello world
on Windows.Target hosts can be specified by hostname (from the RTSM) and by IP address.
Requests are dropped when the OMi backend is disabled or restarted. In some cases, an Action Web Service request will not finish. For example, if you use the
ovc- stop
command to stop the action agent process, which sends back a call response, the call will continue to run until the OMi backend is disabled or restarted.On the agents, environment variables like
OvDataDir
,OvInstallDir
, and so on are predefined. For a complete list you can call the OMi server using the following command:$ <OvBinDir>/ovdeploy –cmd set [ -host <remoteHost> ] | grep “Ov”
Linux output:
OvBinDir = /opt/OV/bin
Windows output:
Program Files\HP\HP BTO Softeare\bin\win64
-
Cancel the command on the managed nodes.
-
Retrieve the command status for the managed nodes.
The OMi backend keeps the execution results for 10 minutes after the last managed node has finished execution. Web service clients must retrieve the results in that time period.
-
Retrieve the detailed command status for a specific managed node.
The Action Web Service only triggers command strings entered by the user. In this case, an "action" is an arbitrary string entered by the web service user, as opposed to a "tool", which is a predefined string stored in the database. The Action Web Service does not trigger automatic actions or user actions.
For further information about actions, see Actions
For information about tools, see
When using a JAVA client, the classes provided in the opr-external-api.jar
can be used to marshal or unmarshal the XML content directly. See also the example code in <OMi_HOME>/opr/examples/action-ws-client

Your entry point to the web service interface is the Service Document, using the following base URL and syntax:
|
|
<serviceURL> |
The URL of the Action web service:
where |
<request> |
The service request. For a complete list and syntax of possible service requests, see Action Web Service request reference. |
List of Services in the Service Document
OPR Action Web Services |
URL |
---|---|
Action Web Service POST request: |
|
Action Web Service GET | DELETE request: |
|
Action Web Service GET details | DELETE request on single node: |
|

Because the Action Web Service enables the user to trigger mass requests that run on all managed nodes, security and authorization settings are especially important. It is highly recommended that you configure OMi to use HTTPS while working with the Action Web Service. Make sure that the following security requirements have been met:
-
Check if the Action Web Service is enabled. The Web Service is enabled by default. To edit the Tool Execution infrastructure setting, got to:
Administration > Setup and Maintenance > Infrastructure Settings
Alternatively, click Infrastructure Settings.
Select Applications and use the list to set the context to Operations Management. Scroll down to Operations Management - Action Web Service Settings. Set Allow command execution through Action Web Service to true.
-
To be able to access the Action Web Service, a user needs to be assigned a role with the Action Web Service permission. This permission can be accessed in the Operations Console category of the permission section of a role. For more information on permissions, see Users, Groups, and Roles.
-
The Action Web Service user must specify a valid username and password in the web service.

Error handling for the Action web service is as follows:
HTTP error codes:
- HTTP error code 403: authorization problems
- HTTP error code 409: requested hosts not in the RTSM or no CIs match requirements
- HTTP error code 4xx (other than 403, 409): any form of communication problems with the OMi backend
- HTTP code 200: at least one requested host is in the RTSM and meets the requirements
Individual return codes per requested host (HTTP code always 200):
- Return code -404: requested host is not in the RTSM or the CI does not meet the requirements
- Return code -500: communication problem with the requested host
- Return code 0: execution succeeded
- Other return codes (for example, 1): error code from the command to be executed
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: