HP-UX Reference (11i v1 00/12) - 1M System Administration Commands N-Z (vol 4)
__________________________________________________________________________________________________________________________________________________________________________________________________
__________________________________________________________________________________________________________________________________________________________________________________________________
STANDARD Printed by: Nora Chuang [nchuang] STANDARD
/build/1111/BRICK/man1m/naaagt.1m
________________________________________________________________
___ ___
s
swmodify(1M) swmodify(1M)
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:
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
Section 1M−−912 − 8 − HP-UX Release 11i: December 2000
___
___