Software Distributor Administration Guide HP-UX 11i v1, 11i v2, and 11i v3 (5900-2561, March 2013)

-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 228).
-X option_file Read session options and behaviors from option_file. See
“Changing Command Options ” (page 228).
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 51 swask Command Options and Default Values
log_msgid=0
logdetail=false
logfile=/var/adm/sw/swask.log
loglevel=1
lookupcache_timeout_minutes=10
patch_filter=*.*
run_as_superuser=true
verbose=1
admin_directory=/var/adm/sw
ask=true
autoselect_dependencies=true
autoselect_minimum_dependencies=false
autoselect_patches=true
enforce_scripts=true
installed_software_catalog=products
For More Information
See Appendix A (page 235) for complete descriptions of each default.
11.11 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.)
228 Using Control Scripts