HP-UX Reference (11i v1 05/09) - 1M System Administration Commands N-Z (vol 4)
s
swmodify(1M) swmodify(1M)
(HP-UX Software Distributor)
• SD does not require any other ServiceControl Manager filesets.
2) (Optional) swinstall , swcopy, and swremove
have enhanced GUI interfaces for remote opera-
tions. Enable the enhanced GUIs by creating the
.sdkey file on the controller. Use this command:
touch /var/adm/sw/.sdkey
NOTES:
• This step is not required when you use SD from within the HP ServiceControl Manager.
• See sd(5), swinstall(1M), swcopy(1M), swjob(1M), swlist(1M),orswremove(1M) for more informa-
tion on interactive operations.
NOTE: You can also set up remote access by using
swacl directly on the remote machines to grant
root or non-root access to users from the controller system.
Options
swmodify supports the following options:
-d Perform modifications on a depot (not on a primary or alternate root). The given
target_selection must be a depot.
-p Preview a modify session without modifying anything within the target_selection.
-r Performs modifications on an alternate root directory, which must be specified in the
@
target_selections option. (This option is not required for alternate root operations but is
maintained for backward compatibility. See the
Alternate Root Directory and
Depot Directory
heading in sd(5) for more information.)
-u If no -a attribute=value options are specified, then delete the given software_selections from
within the given target_selection. This action deletes the definitions of the software objects
from the depot catalog or installed products database.
If -a attribute options are specified, then delete these attribute definitions from the given
software_selections (from within the given target_selection).
-v Turn on verbose output to stdout.
-V List the data model revisions that this command supports.
-a attribute[=value]
Add, modify, or delete the value of the given attribute. If the -u option is specified, then
delete the attribute from the given software_selections (or delete the value from the set of
values currently defined for the attribute). Otherwise add/modify the attribute for each
software_selection by setting it to the given value.
Multiple
-a options can be specified. Each attribute modification will be applied to every
software_selection.
The
-s and -a options are mutually exclusive; the -s option cannot be specified when
the -a option is specified.
-c catalog
Specifies the pathname of the catalog which will be added, modified, or used as input by
swmodify.
The -c and -a options are mutually exclusive, the -c option cannot be specified when
the -a option is specified.
-C session_file
Save the current options and operands to session_file. You can enter a relative or absolute
path with the file name. The default directory for session files is
$HOME/.sw/sessions/. You can recall a session file with the -S option.
-f software_file
Read the list of software_selections from software_file instead of (or in addition to) the com-
mand line.
-P pathname_file
Specify a file containing the pathnames of files being added to or deleted from the IPD
instead of having to specify them individually on the command line.
Section 1M−−958 Hewlett-Packard Company − 2 − HP-UX 11i Version 1: September 2005