HP-UX Reference (11i v2 07/12) - 1M System Administration Commands N-Z (vol 4)
s
swa-get(1M) swa-get(1M)
-x swcache=/var/opt/swa/cache
Usage: Basic
This is the directory where SWA stores downloaded patches before putting them into a depot. The
default location is only writable by root, so this value needs to be changed for a non-root user to be
able to download software. Opening up permissions on the default location is not recommended.
-x user_dir=˜/.swa
Usage: Basic
The directory where SWA stores catalog, inventory, analysis, ignore, and report files. The default
location is a subdirectory (.swa) of the user’s home directory. This can be changed, for example, to
allow archival of previous interim artifacts in a date-specific directory or off-host. Several other
options default to a directory relative to this directory, so changing this option allows all of those loca-
tions to stay in synch relative to a common root.
-x verbosity=3
Usage: Basic
Specifies the level of standard error verboseness:
0 Only ERROR messages and the starting and ending BANNER messages.
1 Adds WARNING messages.
2 Adds NOTE messages.
3 Adds INFO messages (informational messages preceded by the ’*’ character); this is the default.
4 Adds verbose INFO messages.
5 Adds very verbose INFO messages.
Note: The -v option is equivalent to increasing verbosity by 1 (for example, from 3 to 4) and the
-q
option is equivalent to decreasing verbosity by 1. The -v and -q options can be used more than once.
EXTERNAL INFLUENCES
Environment Variables
For compatibility with other applications (including
security_patch_check), several environment
variables can be used to configure how SWA connects to the Internet to retrieve catalogs, certificate revoca-
tion lists, and software. These environment variables include
ftp_proxy, http_proxy, and
https_proxy .
These environment variables have the same effect as the corresponding extended options of the same
names. The Extended Options section describes the usage and meaning of each option and the behavior if
the same option is specified in multiple places.
The proxy extended option cannot be specified as an environment variable, but may be a useful alterna-
tive if all protocols use the same proxy server at your site.
The TMPDIR environment variable is also honored for local operations, if set. If this value is not set, the
default of /var/opt/swa/tmp
is used. This directory does not allow write operations for non-
privileged users, so
TMPDIR must be set by non-root users if a temporary directory is required for that
operation. An example operation that uses this directory is unsharing of patch files. For older-style
patches which do not honor TMPDIR, SWA rewrites the shar file so that TMPDIR will be honored before
unpacking the patch.
RETURN VALUE
swa get returns the following values:
0 Success
1 Error
2 Warning
EXAMPLES
To display swa get usage information:
swa get -?
To display usage and list all swa get extended options:
386 Hewlett-Packard Company − 5 − HP-UX 11i Version 2: December 2007 Update