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
swreg(1M) swreg(1M)
(Hewlett-Packard Company)
depot
The object to be registered is a depot.
root The object to be registered is a root.
shroot The object to register is a shared root (HP-UX 10.X only).
prroot The object to register is a private root (HP-UX 10.X only).
-u Causes swreg to unregister the specified objects instead of registering them.
-v Turns on verbose output to stdout. (The swreg logfile is not affected by this option.)
Verbose output is enabled by default, see the verbose option below.
-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 object_file Read the list of depot or root objects to register or unregister from object_file instead
of (or in addition to) the command line.
-S session_file
Execute swreg based on the options and operands saved from a previous session, as
defined in session_file. You can save session information to a file with the
-C option.
-t target_file Read the list of target hosts on which to register the depot or root objects from
target_file instead of (or in addition to) the command line.
-x option=value
Set the session option to value and override the default value (or a value in an alter-
nate option_file specified with the -X option). Multiple -x options can be specified.
-X option_file Read the session options and behaviors from option_file.
Operands
The swreg command supports the following syntax for each object_to_register:
path
Each operand specifies an object to be registered or unregistered.
The swreg command supports the following syntax for each target_selection:
[host]
EXTERNAL INFLUENCES
Default Options
In addition to the standard options, several SD behaviors and policy options can be changed by editing the
default values found in:
/var/adm/sw/defaults the system-wide default values.
$HOME/.swdefaults the user-specific default values.
Values must be specified in the defaults file using this syntax:
[command_name.]option=value
The optional command_name prefix denotes one of the SD commands. Using the prefix limits the change in
the default value to that command. If you leave the prefix off, the change applies to all commands.
You can also override default values from the command line with the -x or -X
options:
command
-x option=value
command -X option_file
The following list describes keywords supported by the swreg command. If a default value exists, it is
listed after the "=".
admin_directory=/var/adm/sw (for normal mode)
admin_directory=/var/home/LOGNAME/sw
(for nonprivileged mode)
The location for SD logfiles and the default parent directory for the installed software cata-
log. The default value is
/var/adm/sw for normal SD operations. When SD operates in
nonprivileged mode (that is, when the run_as_superuser
default option is set to
true):
HP-UX Release 11i: December 2000 2 Section 1M925
___
___