HP-UX Software Assistant Reference (November, 2010)
0 Success completion
1 Error
2 Warning
EXAMPLES
To display swa usage information:
swa -?
To display usage and list all swa extended options for all major modes:
swa -x -?
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 installed, active 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:
swa report -x catalog_max_age=48
To generate a report using a specified catalog of HP software without updating that catalog:
swa report -x catalog=~/mycatalog.xml -x catalog_max_age=-1
To generate a report always updating the catalog of HP software:
swa report -x catalog_max_age=0
To get patches from HP that are recommended in the default analysis file (that is, from the previous
swa report command) and place the results into the new depot, mydepot:
swa get -t mydepot
To add newly recommended patches into the existing depot, mydepot, only downloading patches
from HP that are neither in mydepot nor previously downloaded:
swa get -t mydepot -x allow_existing_depot=true
To preview which patches need to be downloaded from HP and added to an existing depot without
actually doing the work, and with increased verbosity:
swa get -p -v -t mydepot -x allow_existing_depot=true
To remove all cached inventory, catalog, and analysis information in the default location:
8