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 |
|
Showing the progress of an APX
You can use the apxprogress
command in your program APX to provide information about the progress of your APX. This is useful for program APXs that run for a long period of time when you want to give the user status on the progress of your APX.
You can use a web APX as a front-end to the program APX and display the progress in the web APX.
The apxprogress command
Use the apxprogress
command to define the number of steps in the execution of a program APX and to record when each step has completed. This lets users of the APX know how far the APX has progressed and how much is remaining.
Syntax of apxprogress
apxprogress {option}..
.
Option |
Description |
---|---|
|
Specifies the total number of steps the APX takes to run. Use this option once at the beginning of the APX to specify the total number of steps the APX will take. You can use this option multiple times in an APX to increase the number steps. Each use increments the total number of steps by the specified value. |
|
Specifies the current step number. Call |
|
Specifies a text message describing the status of the APX. |
|
Specifies additional information the APX can make available about itself. |
|
Indicates debug mode. Displays the output of the command to stdout for debugging purposes. |
|
Displays help information about the apxprogress command. |
Example shell script that uses apxprogress
The following shell script is part of a program APX that uses the apxprogress
command. The APX defines a total of 100 steps and announces its current progress 100 times. Each time it also provides a message that includes the step number.
#!/bin/sh ###################################################################### # A simple shell script for a program APX that displays progress # about itself. # Author: <name> ###################################################################### echo "This is a simple APX that uses apxprogress." totalsteps=100 apxprogress -i $totalsteps -c 1 for i in `seq $totalsteps`; do apxprogress -c $i -m "APX is running, working on step $i" -d sleep 10 done
Viewing APX progress
You can use the SA API method JobService.getProgress()
to access the progress information about a running APX that calls the apxprogress
command. For an example showing this method, see Viewing the APX progress in the Twister interface, which is part of the Tutorial: Creating a program APX.
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 hpe_sa_docs@hpe.com.
Help Topic ID:
Product:
Topic Title:
Feedback: