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

s
swremove(1M) swremove(1M)
/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.
swagentd Disabled
If the
swagentd daemon has been disabled on the host, it can be enabled by the host’s system administra-
tor 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
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.
536 Hewlett-Packard Company 12 HP-UX 11i Version 3: February 2007