Software Distributor Administrator Guide (September 2010)

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
1.4 Working from the Command Line 51