HP-UX Software Assistant Reference (November, 2010)

Extended Options
The extended options may be specified in different ways: on the command line using the -x
option, in an option file specified using the -X option, or in one of the configuration files /etc/
opt/swa/swa.conf (system wide) or $HOME/.swa.conf (user-specific). The /etc/opt/swa/
swa.conf.template file provides example syntax for a configuration or -X file.
If the same option is given in multiple locations, the following order is prioritized from highest to
lowest:
1. Options specified on the command line
2. Options specified within an option file (-X option_file)
3. Proxy environment variables (See the Environment Variable section.)
4. Options specified within the $HOME/.swa.conf file
5. Options specified within the /etc/opt/swa/swa.conf file
6. Default value, specified in the descriptions of each option below in
option_name=default_value format.
Note: If the same option or extended option is given multiple times in the same location, the last
option takes effect. If the option has a single letter equivalent (for example, -v and -x verbosity)
and both are used on the command line, the single letter option generally takes precedence. If the
single letter option affects an extended option that takes a list of arguments, specifying the single
letter option multiple times will append to the list.
swa clean recognizes the following -x (extended) options which are shown with their default
values:
-x logfile=/var/opt/swa/swa.log
Usage: Basic
Applicable caches: swcache, usercache, all
This is the path to the log file for this command. Each time SWA is run, this file will grow larger.
This can be changed, for example, to a month-specific location for easier archiving, off-host
backup, and rotation.
-x log_verbosity=4
Usage: Basic
Applicable caches: swcache, usercache, all
Specifies the level of message verbosity in the log file (See also -x verbosity). Legal values
are:
0 Only ERROR messages and the starting/ending BANNER messages.
1 Adds WARNING messages.
2 Adds NOTE messages.
3 Adds INFO messages (informational messages preceded by the asterisk '*' character).
4 Adds verbose INFO messages; this is the default.
5 Adds very verbose INFO messages.
-x preview=false
Usage: Basic
Applicable caches: swcache, usercache, all
Specifies if swa clean should be run in preview mode or not. If preview is set to false, do
not run in preview mode. If preview is set to true, run this command in preview mode only
(that is, complete the analysis phase and exit; no changes are committed to disk). Setting this
option to true has the same effect as specifying -p on the command line.
12