Software Distributor Administration Guide HP-UX 11i v1, 11i v2, and 11i v3 (5900-2561, March 2013)

registered before software may be installed or copied from it. This check is always performed
before granting access, except when swinstall is run by the local superuser.
NOTE: Registration of a depot does not enforce any access restrictions. Access enforcement is
left to SD security (see Chapter 9: “SD-UX Security (page 145)). Registration with swreg requires
insert permission in the host’s ACL.
4.3.3 Authorization
To register a new depot or to unregister an existing depot, swreg requires read permission on
the depot in question and insert permission on the host. To unregister a registered depot, the swreg
command requires write permission on the host. See Chapter 9: “SD-UX Security ” (page 145) for
more information on permissions.
4.3.4 Using swreg
swreg Syntax
swreg -l level [-u] [-v] [-C session_file] [-f object_file]
[-S session_file] [-t target_file] [-x option=value]
[-X option_file] [objects_to_register] [@ target_selections]
Options and Operands
-l level Specifies the level of the object to register or unregister, where level
can be depot or root.
-u Causes swreg to unregister the specified objects instead of
registering them.
-v Turns on verbose output to stdout and displays all activity to the
screen.
-C session_file Run the command and save the current option and operand values
to a session_file for re-use in another session. See “Session Files
(page 39).
-f object_file Reads a list of depots or root objects to register or unregister from
a object_file instead of (or in addition to) the command line.
-S session_file Run the command based on values saved from a previous session,
as defined in session_file. See “Session Files” (page 39).
-t target_file Read a list of target selections from a separate file instead of (or in
addition to) the command line. See “Target Files” (page 37).
-x option=value Sets a command option to value and overrides default values
or a values in options files. See “Using Command Options
(page 37).
-X option_file Read session options and behaviors from option_file. See
“Using Command Options” (page 37).
objects_to_register The software objects to be registered or unregistered.
@target_selections The target on which the objects will be registered or unregistered.
See Target Selections” (page 37).
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 swreg:
96 Managing Software Depots