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 |
|
opcmsg Java API
Operations Agent provides a set of Java classes to generate messages for open message interface policies. The classes can be used to generate messages from within a Java program.
The Java classes can also be used to acknowledge previously generated messages, and to send monitor values to the Operations Agent. Operations Connector does not support these uses.
JAR files
The JAR files jopcagtbase.jar
and jopcagtmsg.jar
that are necessary to use the APIs are installed as part of Operations Agent on the Operations Connector server at:
Windows: %OvInstallDir%\java
Linux: /opt/OV/java
Prerequisites
To use the Java classes:
-
The -classpath parameter used for the javac and java commands must include the
jopcagtbase.jar
andjopcagtmsg.jar
files. -
The PATH system variable must include the directory where the shared library files reside. The agent installation does this automatically.
Documentation
Javadoc style class documentation is available at the following location:
Windows: %OvInstallDir%\www\htdocs\jdoc_agent\index.html
Linux: /opt/OV/www/htdocs/jdoc_agent/index.html
For more information, see the section "Java API" in the Operations Agent Reference section PDF.
Examples
Examples of how the API classes can be used from Java are available in the following directory on the Operations Connector server:
Windows: %OvInstallDir%\examples\jopcagtapi
Linux: /opt/OV/OpC/examples/jopcagtapi
To compile and run the example code on Windows
-
Change to the folder
%OvInstallDir%/examples/jopcagtapi
on the Operations Connector server. -
Compile the example code, type:
javac -classpath "%OvInstallDir%/java/jopcagtbase.jar:%OvInstallDir%/java/jopcagtmsg.jar" JOpcAgtMsgTest.java
-
Run the example code, type:
java -classpath ".:%OvInstallDir%/java/jopcagtbase.jar:%OvInstallDir%/java/jopcagtmsg.jar" JOpcAgtMsgTest
To compile and run the example code on Linux
-
Change to the directory
/opt/OV/OpC/examples/jopcagtapi
on the Operations Connector server. -
Compile the example code, type:
javac -classpath "/opt/OV/java/jopcagtbase.jar:/opt/OV/java/jopcagtmsg.jar" JOpcAgtMsgTest.java
-
Run the example code, type:
java -classpath ".:/opt/OV/java/jopcagtbase.jar:/opt/OV/java/jopcagtmsg.jar" JOpcAgtMsgTest
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: