ccp.1 (2012 03)

c
ccp(1) ccp(1)
NAME
ccp - In parallel, copy files to multiple hosts or cluster-wide in a Serviceguard cluster. ccp is part of the
Distributed Systems Administration Utilities (DSAU).
SYNOPSIS
Path: /opt/dsau/bin/ccp
ccp [command fanout options][-r | -p] source_file destination_file
ccp {-h | --help | ?}
ccp {-V | --version}
DESCRIPTION
ccp copies files from one system to multiple systems in parallel on either distributed systems or in a Ser-
viceguard cluster. In a Serviceguard cluster, ccp defaults to operating cluster-wide (copies across all
members), subject to user authorization. When not in a Serviceguard cluster, defaults to issuing com-
mands on the local host. ccp does not recognize files in the format "rname@rhost:path" so all source files
used by ccp must be on the local host machine. For more information on proper authorization, see the
cexec manpage.
REMOTE COMMAND TRANSPORT OPTIONS
The user selects how
ccp runs commands on remote hosts at runtime using the -R option. The following
protocols are supported; the default is ssh. Refer to the cexec and csshsetup manpages for the
proper security setup.
rsh
Uses an internal, thread-safe implementation of BSD
rcmd(3) to run commands using the
standard rsh(1) protocol.
ssh
Uses a variant of
popen(3) to run multiple copies of the ssh(1) command. Note that ssh to
yourself must work password-less, and .rhosts must have permissions of 600.
ccp-Specific
Options
-r | --recursive recursive_directory_name/filename recursive_directory_name
Copies directories recursively. The target directory must exist.
-p | --preserve
(Preserve permissions.) Use this option to preserve the following permissions in the copy:
modification time, access time, file mode, user ID, and group ID as allowed by permissions.
Command Fanout
Options
The target node options are:
-a
ccp reads the /etc/machines file to obtain the list of nodes. This option has no arguments.
-{f | --hostsfile} filename
Copies filename onto nodes listed in hostsfile. Hostsfile contains one hostname per line.
-{n | w | --nodes} host1[,host2,...]
Target the specified list of hosts. In a Serviceguard cluster, the target host list is not required
and the default is all cluster members. The host list may contain hostlist expressions of the
form "host[1-5,7]." For more information about the hostlist format, see the HOSTLIST
EXPRESSIONS section below. This option overrides all other host specification options.
-{x | -- exclude} host1[,host2,...]
Exclude the specified hosts.
Other
Options
-fanout number
Sets the maximum number of simultaneous remote commands to number. The default is 64.
HP-UX 11i Version 3: March 2012 1 Hewlett-Packard Company 1

Summary of content (4 pages)