HP-UX Reference (11i v2 07/12) - 1M System Administration Commands N-Z (vol 4)
s
swa-report(1M) swa-report(1M)
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 report returns the following values:
0 Success
1 Error
2 Warning
EXAMPLES
To display swa report usage information:
swa report -?
To display usage and list all swa report extended options:
swa report -x -?
To run swa report using the options specified in the file ./myconfig
:
swa report -X ./myconfig
To inventory the local system, analyze it against an HP-supplied catalog (of known software and issues) for
newer Quality Pack patch bundles, security issues, and critical patch warnings, and then generate a default
standard output "action" report:
swa report
To create a report for security issues (SEC) for a remote system inventory gathered with Secure Shell, and
running ssh in batchmode to avoid being prompted for user input:
swa report -a SEC -s ssh://user@remotesystem \
-x ssh_options=’-o batchmode=yes’
To create a detailed report for remotesystem, limited in scope to Quality Pack patch bundle analysis (QPK)
and patches with critical warnings (PCW). This example uses the swlist networking protocol, which is
not integrity protected.
swa report -a QPK -a PCW -s remotesystem -r detail
To do the same task as the previous example, using the extended option equivalents (which can be specified
on the command line, in a user or system configuration file, or in an extended options file):
swa report -x analyzers=’QPK PCW’ \
-x inventory_source=remotesystem -x stdout_report_type=detail
To generate a report and place the analysis results in the ˜/firstanalysis.xml file (for later use by
swa get):
swa report -x analysis_file=˜/firstanalysis.xml
To generate a report, updating the catalog of HP software if it is more than 48 hours old:
HP-UX 11i Version 2: December 2007 Update − 8 − Hewlett-Packard Company 395