Software Distributor (SD-UX) Administration Guide HP-UX 11i v1, 11i v2, and 11i v3 (762797-001, March 2014)

Table Of Contents
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:
Table 24 swreg Command Options and Default Values
rpc_binding_info=ncacn_ip_tcp:[2121]
ncadg_ip_udp:[2121]
admin_directory=/var/adm/sw
distribution_target_directory=/var/spool/sw
rpc_timeout=5
level=
run_as_superuser=true
log_msgid=0
select_local=true
logfile=/var/adm/sw/swreg.log
select_local=true
logdetail=false
target_directory=
loglevel=1
targets=
lookupcache_timeout_minutes=10
verbose=1
objects_to_register=
For More Information
See Appendix A (page 227) for complete descriptions of each default.
swreg Examples
To unregister a CD-ROM depot mounted at /mnt/cd, you would type:
swreg -l depot -u /mnt/cd
94 Managing Software Depots