United States-English |
|
|
Software Distributor Administration Guide: HP-UX 11i v1, 11i v2, and 11i v3 > Chapter 7 Remote Operations OverviewRemote Operations from the Command Line |
|
Running remote operations from the command line is almost identical to those for local operations. Key differences are:
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.) 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:
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: To run all request scripts from depot /var/spool/sw on the remote system swposix and write a response file back to the same depot: To copy the C and Pascal products to one local and two remote depots:
To install the C and Pascal products to three remote hosts:
The swjob command lets you monitors jobs from the command line. For more information about jobs, see Chapter 6: “Using Jobs and the Job Browser” and “Monitoring Jobs from the Command Line”. To list the agent log of remote system TargetA for job hostA-0001:
To unregister the default depots on three remote hosts:
|
Printable version | ||
|