HP-UX Reference (11i v3 07/02) - 1M System Administration Commands N-Z (vol 4)
s
swmodify(1M) swmodify(1M)
Logfile
The swmodify command logs events to the command logfile and to the
swmodify logfile associated
with each target_selection.
Command Log
The
swmodify command logs all messages to the the logfile
/var/adm/sw/swmodify.log
.
(The user can specify a different logfile by modifying the
logfile option.)
Target Log
When modifying installed software,
swmodify logs messages to the file
var/adm/sw/swagent.log
beneath the root directory (e.g.
/ or an alternate root directory).
When modifying available software (within a depot),
swmodify
logs messages to the file
swagent.log beneath the depot directory (e.g. /var/spool/sw
).
EXAMPLES
Add additional files to an existing fileset:
swmodify -xfiles=’/tmp/a /tmp/b /tmp/c’ PRODUCT.FILESET
Replace the definitions of existing files in an existing fileset (e.g. to update current values for the files’
attributes):
chown root /tmp/a /tmp/b
swmodify -x files=’/tmp/a /tmp/b’ PRODUCT.FILESET
Delete control files from a fileset in an existing depot:
swmodify -d -u -x control_files=’checkinstall subscript’ \
PRODUCT.FILESET @ /var/spool/sw
Create a new fileset definition where the description is contained in the PSF file
new_fileset_definition
:
swmodify -s new_fileset_definition
Delete an obsolete fileset definition:
swmodify -u PRODUCT.FILESET
Commit a patch (remove files saved for patch rollback):
swmodify -x patch_commit=true PATCH
Create some new bundle definitions for products in an existing depot:
swmodify -d -s new_bundle_definitions \* @ /mfg/master_depot
Modify the values of some fileset’s attributes:
swmodify -a state=installed PRODUCT.FILESET
Modify the attributes of a depot:
swmodify -a title=’Manufacturing’s master depot’ \
-a description=</tmp/mfg.description @ /mfg/master_depot
WARNINGS
If the target_selection is a software depot and you delete file definitions from the given software_selections,
the files’ contents are not deleted from the depot.
FILES
$HOME/.swdefaults
Contains the user-specific default values for some or all SD options.
$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 logfiles.
HP-UX 11i Version 3: February 2007 − 8 − Hewlett-Packard Company 507