HP-UX Reference (11i v2 07/12) - 1M System Administration Commands N-Z (vol 4)
s
swa-clean(1M) swa-clean(1M)
NAME
swa-clean: swa - remove files created by SWA
SYNOPSIS
swa clean {swcache|usercache|all
}[-p]
[
-q[q[q
]]] [-v[v]] [[-option] -?][
-x option=[value|-?]] [-X option_file]
DESCRIPTION
The
swa clean command allows the user to remove software and files cached by Software Assistant
(SWA). As SWA is used to report on systems and download software, objects are cached on disk for later
use. There are two caches. The first cache is for catalog, inventory, and analysis information, and the
second cache is for software downloaded from HP. The
swa clean command allows the recapture of this
disk space.
The
swa clean commands are as follows:
swa clean swcache
Remove files containing software downloaded by
swa get into the swcache directory. The
swcache directory is specified by the swcache extended option. The directory is often one or more
gigabytes in size.
swa clean usercache
Remove cached files that were created by swa report. These files are stored in the
cache sub-
directory of the directory specified by the
user_dir extended option. Generally, the cache direc-
tory includes the inventories of systems and depots, the catalog of issues and recommended resolu-
tions, and the results of the analysis. This directory is often a dozen or more megabytes in size.
swa clean all
Clean the usercache and the swcache directories.
Options
swa clean recognizes the following options:
-p Runs this command in preview mode.
-q The verbosity level is decreased by one for each instance -q is specified. (See also the
-x verbosity option.)
-v The verbosity level is increased by one for each instance -v is specified. (See also the
-x verbosity option.)
-? Displays general usage.
-option -?
Describes the legal values for this option. If option is -x, all possible extended options are listed
for the specified major mode (swa command). If no major mode is given, all extended options
are listed for all the major modes.
-x option=value
Sets the extended option to a value. See the Extended Options definitions below.
-x option=-?
Describes the legal values for this option.
-X option_file
Gets the extended options from option_file. For a description and examples of syntax for this
file, see the /etc/opt/swa/swa.conf.template
file.
Extended Options
The extended options may be specified in different ways: on the command line using the
-x option, in an
option file specified using the -X option, or in one of the configuration files /etc/opt/swa/swa.conf
(system wide) or $HOME/.swa.conf (user-specific). The /etc/opt/swa/swa.conf.template
file provides example syntax for a configuration or -X file.
If the same option is given in multiple locations, the following order is prioritized from highest to lowest:
1. Options specified on the command line
2. Options specified within an option file (-X option_file)
378 Hewlett-Packard Company − 1 − HP-UX 11i Version 2: December 2007 Update