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

s
swa(1M) swa(1M)
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:
swa clean usercache
To remove all cached downloaded software in the default location:
swa clean swcache
To preview the removal of all cached downloaded software in the default location:
swa clean swcache -p
To remove all cached inventory, catalog, analysis, and downloaded software in specified locations:
swa clean all -x user_dir=˜/myusercache -x swcache=/my/cache
AUTHOR
swa was developed by HP.
FILES
/etc/opt/swa/swa.conf
System-wide Software Assistant configuration file.
/etc/opt/swa/swa.conf.template
Template file that documents each -x option.
$HOME/.swa.conf Per-user Software Assistant configuration file.
/var/opt/swa/swa.log
Default log file location for root users. For users
without write permissions to the default log location,
a
swa.log le is created under the directory
specified by the user_dir extended option.
download.contents Lists all files downloaded from HP stored within the
swcache, a directory specified by the swcache
extended option.
readBeforeInstall.txt Lists special installation instructions and other depen-
dencies for the patches in the depot. Located in the
root directory of the target depot.
ignore Lists issue IDs to be ignored (for example, they are
completed or not applicable). Supports comments and
regular expressions. See regexp(5).
SEE ALSO
security_patch_check(1M), swa-clean(1M), swa-get(1M), swa-report(1M), swa-step(1M).
HP-UX Software Assistant System Administration Guide and HP-UX Software Assistant Release Notes at
http://docs.hp.com.
HP-UX 11i Version 2: December 2007 Update 3 Hewlett-Packard Company 377