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

s
swmodify(1M) swmodify(1M)
(HP-UX Software Distributor)
then exits. During the actual database modifications,
swmodify blocks these signals (to prevent any data
base corruption). All other signals result in their default action being performed.
RETURN VALUES
The
swmodify command returns:
0 The add, modify, or delete operation(s) were successfully performed on the given
software_selections.
1 An error occurred during the session (e.g. bad syntax in the PSF, invalid software_selection, etc.)
Review stderr or the logfile for details.
DIAGNOSTICS
The
swmodify command writes to stdout, stderr, and to specific logfiles.
Standard Output
In verbose mode, the swmodify command writes messages for significant events. These include:
a begin and end session message,
selection, analysis, and execution task messages.
Standard Error
The swmodify command also writes messages for all WARNING and ERROR conditions to stderr.
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:
Section 1M964 Hewlett-Packard Company 8 HP-UX 11i Version 1: September 2005