(Linux) Copies one or more files from a group of hosts to this system. Since the file name is the same on each host, a separate directory on this system is created for each host and the file is copied to it. This is a convenient way to upload log files or configuration files for review. This tool can also be used in conjunction with opadownloadall to upload a host specific configuration file, edit it for each host, and download the new version to all the hosts.
opauploadall [-rp] [-f hostfile] [-d upload_dir] [-h 'hosts'] [-u user] source_file ... dest_file
A local directory within upload_dir/ is created for each hostname.
Each uploaded file is copied to upload_dir/HOSTNAME/dest_file within the local system.
If more than one source file is specified or dest_file has a trailing /, a dest_file directory will be created.
# upload two files from 2 hosts opauploadall -h 'arwen elrond' capture.tgz /etc/init.d/ipoib.cfg . # upload two files from all hosts opauploadall -p capture.tgz /etc/init.d/ipoib.cfg . # upload network config files from all hosts opauploadall capture.tgz /etc/init.d/ipoib.cfg pre-install
The following environment variables are also used by this command:
List of hosts; used if -h option not supplied.
File containing list of hosts; used in absence of -f and -h.
Directory to upload to, used in absence of -d.
When the -p option is used, maximum concurrent operations are performed.