Software Distributor Administrator Guide (September 2010)

NOTE: In general, use caution when using the -u option with the -a option. If -u is
used and -a is also specified, the -a option deletes the attribute from the given
software_selections (or deletes the value from the set of values currently defined
for the attribute).
Changing Command Options
You can change the behavior of this command by specifying additional command-line
options when you invoke the command (using the -xoption) or by reading predefined
values from a file. The following table shows the defaults and options that apply to
swmodify.
Table 3-7 swmodify Command Options and Default Values
logfile=/var/adm/sw/swmodify.log
loglevel=1
lookupcache_timeout_minutes=10
patch_commit=false
run_as_superuser=true
software=
source_file=
target_directory=
targets=
verbose=1
admin_directory=/var/adm/sw
allow_large_files=false
compress_index=false
control_files=
distribution_target_directory=/var/spool/sw
files=
installed_software_catalog=products
layout_version=1.0
log_msgid=0
logdetail=false
Unsupported Tasks
Removing a category from the IPD listed in swlist -l category using swmodify
command is not supported.
For More Information
See Appendix A (page 303) for complete descriptions of each default.
3.2.3 swmodify Tasks and Examples
Here are some examples of how you can use swmodify to change catalog files or IPDs:
3.2.3.1 Adding Information to the IPD
To add descriptions of files /tmp/a, /tmp/b, and /tmp/c to an existing fileset:
swmodify -x files=/tmp/a /tmp/b /tmp/c PRODUCT.FILESET
If a control script adds new files to the installed file system, the script can use swmodify
to make a record of the new files.
102 Managing Installed Software