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 |
|
Installation scripts
The installation scripts reside in the pad
subdirectory. Like installation hooks, the installation scripts are run at specific stages during the installation and uninstallation of an application on a managed server.
Differences between installation scripts and hooks
Although they serve a similar purpose, installation scripts and hooks have several differences, as noted in the following table.
Installation scripts |
Installation hooks |
---|---|
Displayed by the Properties of the package in the SA Client. |
Displayed by the Contents of the package in the SA Client. (Only RPMs are displayed.) |
Reside in the |
Reside in the |
Stored in Model Repository (after an upload). |
Bundled in the control package, installed on the managed server in the directory specified by |
Run by the Server Agent. |
Run by the native packaging engine. |
Can be defined for each package in the ISM. |
Defined for the entire ISM. |
Creating installation scripts
Although the ISMTool creates the pad
subdirectory structure, it does not create default installation scripts. For each package created with --build
or added with --addPassthruPkg
, the ISMTool creates a subdirectory as follows:
pad/<package-name>/scripts
For example, on Linux the --build
command would create the following subdirectories for an ISM named ntp-1.4.2
:
pad/ismruntime-rpm-2.0.0-1.i386.rpm/scripts
pad/ntp-ism-4.2.1-1.i386.rpm/scripts
pad/ntp-4.2.1-1.i386.rpm/scripts
With a text editor, you create the installation scripts in the scripts
subdirectory. For example, you could create installation scripts for the ntp-4.2.1-1.i386.rpm
package as follows:
pad/ntp-4.2.1-1.i386.rpm/scripts/
preinstallscript
pstinstallscript
preuninstallscript
pstuninstallscript
The file names of the installation scripts must match the preceding example. For example, the script invoked immediately after the installation must be named pstinstallscript
.
Invocation of installation scripts and hooks
If an ISM has both installation scripts and hooks, when an application is installed on a managed server, Server Automation performs tasks in the following order:
- Installs the ISM runtime package.
- Installs the ISM control package.
- Runs
preinstallscript
(installation script). - Runs
ism_pre_install
(installation hook). - Installs the application package (the application bits).
- Runs
ism_post_install
(installation hook). - Runs
ism_configure
(control script). - Runs
ism_start
(control script). - Runs
pstinstallscript
(installation script).
During the uninstallation of an application on a managed server, Server Automation performs actions in the following order:
- Runs
preuninstallscript
(uninstallation script). - Runs
ism_pre_uninstall
(uninstallation hook). - Runs
ism_stop
(control script). - Uninstall the application package (the application bits).
- Runs
ism_post_uninstall
(uninstallation hook). - Runs
pstuninstallscript
(uninstallation script). - Uninstalls the ISM control package.
- Uninstalls the ISM runtime package.
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: