Section: C3 User Manual (1)
Return to Main Contents
cget - A utility that retrieves a specified file from each node of a cluster and places it into the specified target directory.
Usage: cget [OPTIONS] [MACHINE DEFINITIONS] source [target]
cget is a utility that retrieves the given file from each node and places them in the the specified directory. Since all files will originally have the same name, an underscore and the cluster name, another underscore, and the node's IP or hostname is appended to each filename. Note that cget ignores subdirectories and links.
- --help -h
:display help message
- --file -f <filename>
:alternate cluster configuration file if one is not supplied then /etc/c3.conf will be used
:interactive mode, ask once before executing
:execute command on head node does not execute on compute nodes if specified
:execute command on all nodes in all clusters that are accessible. When specifying --head only the head nodes will participate. This ignores the [MACHINE_DEFINITIONS] section.
There are several ways to call cget:
1. To retrieve a file from the default cluster:
when a target directory is not specified as above then the file is retrieved to the current directory
2. To retrieve a file from a subset of nodes on the default cluster
cget :2-6 /tmp/output /home/user1/data/
this retrieves /tmp/output on nodes 2, 3, 4, 5, 6 and places them in /home/user1/data on the local machine
3. To retrieve a file from a list of clusters
cget cluster1: cluster2: /tmp/output
this will retrieve the same file from each cluster and store it in the current directory.
See the C3 INSTALL file for installation instructions. Also see C3-range for help on node ranges on the command line. If using the scalable setup please see c3-scale
By default, the C3 tools will use ssh to issue the remote commands. If you would like to have them use rsh instead, you must set the C3_RSH environment variable to rsh.
For example, if you are using the bash shell you would do the following:
any program that behaves like rsh or ssh is acceptable
The default install path for C3 is /opt/c3-4. If you install C3 in an alternate location this variable must point to that installation. For remote clusters C3 must be installed in the same directory on each cluster.
For example, if you installed C3 in your home directory you might use the following:
C3's default configuration file is /etc/c3.conf. If you wish an alternate default configuration file set this to point to the file
For example, if you keep a special c3.conf file in your home directory you may use:
By default, the C3 tools will use your local username to access a remote cluster. If you wish to use a different default then set this variable to it
For example, this will change the example user from sgrundy to mmanhunter:
This file is the cluster configuration file that contains the names of the nodes to which commands will be sent. The cluster configuration file may also be specified from the command line. The format of both files is identical.
see the c3.conf man page for format
cexec(1), c3(1), cget(1), ckill(1), cpush(1
), cpushimage(4), crm(1), cshutdown(4), cname(1), cnum(1), clist(1), c3.conf(5), c3-scale(5)
- SEE ALSO
For user questions and information about releases, email/subscribe to:
For report bugs or problem, e-mail: email@example.com
Computer Science and Math Division
Oak Ridge National Laboratory