Software Distributor Administration Guide HP-UX 11i v1, 11i v2, and 11i v3 (5900-2488, September 2012)
3. Options read from a session file affect only that session.
4. Options changed on the command line by the -X option_file or the -xoption=value
arguments override the system-wide and personal options files but affect only that invocation
of the command.
For system-wide policy setting, use the /var/adm/sw/defaults files. Keep in mind, however,
that users may override these options with their own $HOME/.swdefaults file, session files, or
command line changes.
The template file /usr/lib/sw/sys.defaults provides an easy way to change system-wide
or personal option files.
The template file lists (as comments):
• All command options
• The commands to which each option applies
• Possible values for each option
• The resulting system behavior for each value.
You can copy values from this file into the system defaults file (/var/adm/sw/defaults), your
personal defaults file ($HOME/.swdefaults), or an input file (with the -X input_file option)
and edit them to affect SD-UX behavior.
Option files use this syntax:
[command.]option=value
• The optional command is the name of a SD-UX command. Specifying a command name
changes the default behavior for that command only. A period must follow a command name.
• option is the name of the default option. An equals sign must follow the option name.
• value is one of the allowable values for that option.
NOTE: You must restart the SD-UX daemon after changing swagentd options, or the daemon will
not recognize the changes. To restart the daemon, type:
/usr/sbin/swagentd -r
1.4.3.1 Examples
To change the default value of use_alternate_source to true for all users for all future sessions
for all commands to which the option applies, place the following line in the
/var/adm/sw/defaults file:
use_alternate_source=true
To change the default value of use_alternate_source to false for your own invocations of
the command, place the following line in your $HOME/.swdefaults file:
swinstall.use_alternate_source=false
To start an interactive swinstall session using the options stored in my_install_defaults
to override any system-wide or personal defaults file values:
swinstall -i -X my_install_defaults=true
To start an interactive install session and reset the use_alternate_source default for this
session only:
swinstall -i -x use_alternate_source
See Appendix A (page 235) for a complete listing of defaults and their values and descriptions.
CAUTION: Changing the default values for command options can cause harmful results if you
specify inappropriate values.
38 Introduction to Software Distributor