swremove.1m (2011 03)
s
swremove(1M) swremove(1M)
session. 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 remov-
ing installed software, the
swagent logs messages to the file
var/adm/sw/swagent.log
beneath the root directory (for example,for example,for example,for example,
/ 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 (for example,
/var/spool/sw).
You can view command and target log files using the
sd or swjob command.
swagentd Disabled
If the
swagentd daemon has been disabled on the host, it can be enabled by the host’s system adminis-
trator by setting the SW_ENABLE_SWAGENTD
entry in /etc/rc.config.d/swconfig
to 1 and exe-
cuting
/usr/sbin/swagentd -r
.
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
Remove the entire contents of a local depot from the directory depot /tmp/software
while in the direc-
tory
/tmp:
swremove \* @ ./software
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
directory 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.
HP-UX 11i Version 3: March 2011 − 13 − Hewlett-Packard Company 13