Software Distributor (SD-UX) Administration Guide HP-UX 11i v1, 11i v2, and 11i v3 (762797-001, March 2014)

Table Of Contents
-C session_file Run the command and save the current option and operand values
to a session_file for re-use in another session. See “Session Files
(page 39).
-f software_file Read a list of software selections from a separate file instead of (or
in addition to) the command line. See “Software Files” (page 36).
-S session_file Run the command based on values saved from a previous installation
session, as defined in session_file. See “Session Files
(page 39).
-s source Use the software source specified by source instead of the default,
/var/spool/sw. The syntax is: [host:][/directory] |
[./relative_path] | [../relative_path]
host may be a host name, domain name, or internet address (for
example, 15.1.48.23). directory is an absolute path. To specify
a relative_path when no host is specified, the relative_path
must start with ./ or ../; otherwise, the specified name is
considered as a host.
-x option=value Sets a command option to value and overrides default values
or a values in options files. See “Changing Command Options ”
(page 222).
-X option_file Read session options and behaviors from option_file. See
“Changing Command Options ” (page 222).
software_selections The software objects for which the request script will be executed.
See “Software Selections” (page 35).
target_selections The target of the command. See “Target Selections” (page 37).
Changing Command Options
You can change the behavior of this command by specifying additional command-line options
when you invoke the command (using the -x option) or by reading predefined values from a file.
The following table shows the options and default values that apply to swask.
Table 52 swask Command Options and Default Values
log_msgid=0 admin_directory=/var/adm/sw
ask=true logdetail=false
logfile=/var/adm/sw/swask.logautoselect_dependencies=true
autoselect_minimum_dependencies=false loglevel=1
lookupcache_timeout_minutes=10autoselect_patches=true
enforce_scripts=true patch_filter=*.*
run_as_superuser=trueinstalled_software_catalog=products
verbose=1
For More Information
See Appendix A (page 227) for complete descriptions of each default.
Request Script Tasks and Examples
You can run request scripts from the swinstall or swconfig commands by setting the ask
option to true. This tells the commands to run request scripts (if any exist) in addition to performing
install or configuration tasks. (Note that the value of the ask option if false for both swinstall
and swconfig but is true for swask.)
222 Using Control Scripts