HP-UX Reference (11i v2 07/12) - 1M System Administration Commands N-Z (vol 4)

s
swa-step(1M) swa-step(1M)
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 step returns the following values:
0 Success
1 Error
2 Warning
EXAMPLES
To display swa step usage information:
swa step -?
To display usage and list all swa step extended options:
swa step -x -?
To run swa step using the options specified in the file ./myconfig
:
swa step -X ./myconfig
To inventory the local system, assuming it was last inventoried over 24 hours ago:
swa step inventory
To inventory a remote system using the unauthenticated swlist networking protocols, assuming it was
last inventoried over 1 hour ago:
swa step inventory -s remotesystem -xinventory_max_age=1
To get the catalog of known HP software and issues, only downloading the catalog if it is older than 24
hours, using the default (HTTPS) protocol, and caching it in the default location:
swa step catalog
To get the catalog regardless of age, using the cleartext, unauthenticated FTP protocol, and specifying
where to cache a local copy of the catalog:
swa step catalog -x catalog_max_age=0 \
-x catalog_source=ftp://ftp.itrc.hp.com/export/patches/swa_catalog.xml.gz \
-x catalog=˜/mycatalog.xml
To analyze the local system with the QPK, SEC, and PCW analyzers, using the previously cached inventory
and catalog (in their default locations):
406 Hewlett-Packard Company 10 HP-UX 11i Version 2: December 2007 Update