Product specifications

5 – Detailed Descriptions of Command LineTools
File Management Tools
5-22 D000006-000 Rev A
Q
Example:
# upload two files from 2 hosts
uploadall -h 'arwen elrond' capture.tgz /etc/init.d/ipoib.cfg .
# upload two files from all hosts
uploadall capture.tgz /etc/init.d/ipoib.cfg .
# upload network config files from all hosts
uploadall -r -p /etc/sysconfig/network-scripts network-scripts
# upload two files to a specific subdirectory of upload_dir
uploadall capture.tgz /etc/init.d/ipoib.cfg pre-install
The above example copies capture.tgz and /etc/init.d/ipoip.cfg to
./uploads/<HOSTNAME>/preinstall/ where there a <HOSTNAME>
directory is created for each host in /etc/sysconfig/iba/hosts.
NOTE: The uploadall tool can only copy from a group of systems in a cluster
to this system. The user@ style syntax cannot be used in the arguments
to uploadall.
To copy files from this host to hosts in the cluster use scpall or downloadall.
Environment Variables
The following environment variables are also used by this command:
HOSTS, HOSTS_FILE - see discussion on selection of hosts above.
FF_MAX_PARALLEL - when -p option is used maximum number of parallel
operations to perform at once.
UPLOADS_DIR - the directory to upload to, used in absence of -d.
5.3.3
downloadall
(Linux): Copies one of more files to a group of hosts from a system. Since the
file contents to copy may be different for each host, a separate directory on this
system is used for the source files for each host. This can also be used in
conjunction with uploadall to upload a host-specific configuration file, edit it
for each host and download the new version to all the hosts.
Usage:
downloadall [-rp] [-f hostfile] [-d download_dir] [-h 'hosts']
[-u user] source_file ... dest_file
-p - perform copy in parallel on all hosts
-r - recursive download of directories