Software Distributor Administration Guide (March 2009)

Table Of Contents
swinstall -f mysoft -s /mnt/cd -t mytargs
In this example, the file mytargs (which resides in the current working directory)
contains a list of target selections for the swinstall command.
In the target file, blank lines and comments (lines beginning with #) are ignored. Each
target selection must be specified on a separate line and must consist of a host name
or network address, optionally followed by a colon and a full path:
host[:/directory]
1.4.3 Using Command Options
You can control many SD-UX command policies and behaviors by setting the
appropriate command options. You can change the default values of options using
predefined files or values you specify directly on the command-line. Altering default
values with files can help when you don’t want to specify command behavior every
time you invoke the command.
These rules govern the way the defaults work:
1. Options in /var/adm/sw/defaults affect all SD-UX commands on that system.
This file can change the default behavior for all commands to which an option
applies or for specific commands only.
2. Options in your personal $HOME/.swdefaults file affect only you and not the
entire system.
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:
50 Introduction to Software Distributor