HP-UX Reference (11i v1 05/09) - 1M System Administration Commands N-Z (vol 4)

s
swremove(1M) swremove(1M)
(Hewlett-Packard Company)
Command Log
A non-interactive
swremove session logs all stdout and stderr messages to the the logfile
/var/adm/sw/swremove.log
. Similar messages are logged by an interactive swremove ses-
sion. The user can specify a different logfile by modifying the
logfile option.
Target Log
A
swagent process performs the actual remove operation at each target_selection. When removing
installed software, the
swagent logs messages to the file
var/adm/sw/swagent.log
beneath
the root directory (e.g.
/ or an alternate root directory). When removing available software (within
a depot), the swagent logs messages to the file swagent.log beneath the depot directory (e.g.
/var/spool/sw ).
You can view command and target log files using the
sd or swjob command.
EXAMPLES
Preview the remove of the C and Pascal products installed at the local host:
swremove -p cc pascal
Remove the C and Pascal products from several remote hosts:
swremove cc pascal @ hostA hostB hostC
Remove a particular version of HP Omniback:
swremove Omniback,l/opt/Omniback_v2.0
Remove the entire contents of a local depot:
swremove -d \* @ /var/spool/sw
FILES
$HOME/.swdefaults
Contains the user-specific default values for some or all SD options. If this file does not exist, SD
looks for user-specific defaults in $HOME/.sw/defaults
.
$HOME/.sw/defaults.hosts
Contains the user-specific default list of hosts to manage.
$HOME/.sw/sessions/
Contains session files automatically saved by the SD commands, or explicitly saved by the user.
/usr/lib/sw/sys.defaults
Contains the master list of current SD options with their default values.
/var/adm/sw/
The directory which contains all of the configurable and non-configurable data for SD. This direc-
tory is also the default location of log files.
/var/adm/sw/defaults
Contains the active system-wide default values for some or all SD options.
/var/adm/sw/defaults.hosts
Contains the system-wide default list of hosts to manage.
/var/adm/sw/getdate.templ
Contains the set of date/time templates used when scheduling jobs.
/var/adm/sw/products/
The Installed Products Database (IPD), a catalog of all products installed on a system.
/var/spool/sw/
The default location of a target software depot.
AUTHOR
swremove was developed by the Hewlett-Packard Company.
SEE ALSO
install-sd(1M), swacl(1M), swagentd(1M), swask(1M), swconfig(1M), swcopy(1M), swinstall(1M), swjob(1M),
swlist(1M), swmodify(1M), swpackage(1M), swreg(1M), swverify(1M), sd(4), swpackage(4), sd(5).
HP-UX 11i Version 1: September 2005 12 Hewlett-Packard Company Section 1M993