sd.5 (2011 03)

s
sd(5) sd(5)
Configure - (Applies to swconfig,
swinstall, and swremove.) A script that configures
installed filesets or products.
Unconfigure - (Applies to swconfig and
swremove.) A script to "undo" configurations per-
formed by configure scripts.
Verify - (Applies to swverify.) A script that verifies the configuration of filesets or products.
(The script performs these checks in addition to the standard
swverify checks for file con-
sistency with SD database entries.)
Checkremove - (Applies to swinstall.) A check script that analyses each target_selection
(target host) before removal to determine if the removal and unconfiguration can take place.
Preremove - (Applies to swremove.) A script executed immediately before removal of
software files to perform additional file operations (such as removing files created by a preinstall
script).
Postremove - (Applies to swremove.) A script executed immediately after a fileset or product
has been removed to perform additional remove operations (such as restoring "rollback" files).
Request - (Applies to swask,
swconfig, and swinstall.) An interactive script that
requests a response from the user as part of the installation or configuration process.
Other scripts - You can include other specialized scripts as subscripts to standard SD con-
trol scripts.
See the Software Distributor Administration Guide for more information on using control scripts.
Software States
The SD commands transition products and filesets through a number of states .
During installation, software is transitioned through the following states:
non-existent
TRANSIENT
INSTALLED
CONFIGURED
During removal, software is transitioned through these states:
CONFIGURED
INSTALLED
TRANSIENT
non-existent
When packaging or copying software into a depot, the software is transitioned through the following
states:
non-existent
TRANSIENT
AVAILABLE
When removing software from a depot, the software is transitioned through these states:
AVAILABLE
TRANSIENT
non-existent
If a task fails during any TRANSIENT state, the state is set to CORRUPT.
Options
The following options are supported by one or more of the SD commands. Refer to the manual pages for
each command for the options specific to that command.
XToolKit Options The interactive commands support a subset of the standard X Toolkit options to
control the appearance of the GUI. The supported options are:
-bg, -back-
ground, -fg, -foreground, -display, -name, -xrm. and -synchro-
nous. See the X(1) manual page for a definition of these options.
-d Causes the command to operate on target_selections which are software depots
rather than root directories.
-r Causes SD commands to operate on alternate root directories, which must be
specified in the @ target_selections option. (This option is not required for alter-
nate root operations but is maintained for backward compatibility.
HP-UX 11i Version 3: March 2011 5 Hewlett-Packard Company 5