Software Distributor Administration Guide (March 2009)

Table Of Contents
7.6.1 Target Selections
By definition, you must specify a remote target for a remote operation. Unlike local
operations, in which a target could be a directory on the local host system, you must
specify remote systems as targets for remote operations.
swinstall -s sw_server cc pascal @ hostA hostB hostC
(This installs the C and Pascal products onto three remote hosts.)
7.6.1.1 Syntax
Software and source depot selections are followed by target selections. These operands
are separated by the “@” (at) character. This syntax implies that the command operates
on selections at targets.
The target_selections syntax is identical for all Software Distributor commands
that require it:
@ [host][:][/directory]
Only one @ character is needed.
You can specify the host by its host name, domain name, or internet address. A
directory must be specified by an absolute path.
The : (colon) is required if you specify both a host and directory.
On some systems, the @ character is used as the kill function. Type stty on your
system to see if the @ character is mapped to any other function on your system.
If it is, remove the mapping, change the mapping, or use \@.
7.6.1.2 Target Files
You can also use an input file to specify targets. To keep the command line shorter,
target selection input files let you specify long lists of targets. With a target selection
file, you only have to specify the single file name.
The -t command-line option lets you specify a target file. For example:
swinstall -f mysoft -s /mnt/cd -t mytargs
In this example, the file mytargs (which resides in the default directory) contains a
list of target selections for the depot /mnt/cd.
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]
7.6.2 Examples
7.6.2.1 swacl
To list the global product template ACL on remote host gemini:
168 Remote Operations Overview