ccp.1 (2012 03)
c
ccp(1) ccp(1)
-{h | --help | ?}
Displays commands and use information from ccp
and quits.
-{l | --user} user
Copies files on remote nodes as another user, subject to authorization.
-{R | --rcmd} {ssh | rsh}
Set remote command transport options module to ssh or rsh.
-{t | --timeout} seconds
Sets the connect timeout in seconds. Default is 10 seconds.
-{u | --ctime} seconds
Sets a limit on the amount of time a remote command is allowed to execute. Default is no
limit.
-{V | --version}
Shows the version of
ccp.
ENVIRONMENT VARIABLES
When not in a Serviceguard cluster, if no other node selection option is used, the CFANOUT_HOSTS
environment variable may be set to a filename from which a list of target hosts is read. The file should
contain a list of hosts, one per line.
LIMITATIONS
When using the ssh transport, password-less ssh must have already been configured between the source
and destination hosts.
ccp will not interactively prompt for passwords. Use the
csshsetup tool to
help you configure password-less ssh. Similarly, when using rsh, the .rhosts files on the nodes must be
properly configured. The connect timeout is not adjustable when using ssh.
The number of nodes on which
ccp can simultaneously execute remote jobs is limited by the maximum
number of threads that can be created concurrently and the availability of reserved ports in rsh rcmd
modules. The target directory must exist when using the -r option. For additional limitations, see the
cexec(1) manpage.
HOSTLIST EXPRESSIONS
ccp accepts lists of hosts in the general form: prefix[n-m,l-k,... ], where n < m and l < k, and so on, as an
alternative to explicit lists of hosts. This form is not the same as regular expression character classes
(also denoted by "[]"). For example, host[19] does not represent an expression matching host1 or host9,
but rather the degenerate hostlist: host19.
The hostlist syntax is provided only as a convenience on systems using a "prefixNNN" naming convention
and specification of ranges should not be considered necessary -- thus host1,host9 could be listed
specifically or as hostlist host[1,9]. Note that you can use
ccp outside a cluster so long as you specify
your hostlist.
EXAMPLES
Copy a source file cluster-wide in a Serviceguard cluster.
# ccp /tmp/a /etc/b
On HP-UX, copy directories recursively to all members of the Serviceguard cluster.
# ccp -r /etc/cmcluster/pkg1 /etc/cmcluster
On Linux, copy directories recursively to all members of the Serviceguard cluster.
# . /etc/cmcluster.conf
# ccp -r $SGCONF/pkg1 $SGCONF
Copy a source file to a set of hosts using a hostlist specification, using ssh (default).
# ccp -w host[01-05] source_file destination_file
Copy a file to a set of hosts using rsh.
# ccp -w host[7,9-10] -R rsh source_file destination_file
Copy a file to host0, host4, and host5 using ssh
2 Hewlett-Packard Company − 2 − HP-UX 11i Version 3: March 2012