|
Packit |
857059 |
.\" .\" *********************************************************************
|
|
Packit |
857059 |
.\" .\" * *
|
|
Packit |
857059 |
.\" .\" * Copyright 2015-2019, Intel Corporation *
|
|
Packit |
857059 |
.\" .\" * *
|
|
Packit |
857059 |
.\" .\" * All Rights Reserved. *
|
|
Packit |
857059 |
.\" .\" * *
|
|
Packit |
857059 |
.\" .\" *********************************************************************
|
|
Packit |
857059 |
|
|
Packit |
857059 |
.TH opauploadall 8 "Intel Corporation" "Copyright(C) 2015\-2019" "IFSFFCLIRG (Man Page)"
|
|
Packit |
857059 |
.SH NAME
|
|
Packit |
857059 |
opauploadall
|
|
Packit |
857059 |
|
|
Packit |
857059 |
|
|
Packit |
857059 |
.PP
|
|
Packit |
857059 |
|
|
Packit |
857059 |
\fB(Linux)\fR
|
|
Packit |
857059 |
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.
|
|
Packit |
857059 |
.PP
|
|
Packit |
857059 |
|
|
Packit |
857059 |
.B NOTE:
|
|
Packit |
857059 |
To copy files from this host to hosts in the cluster, use opascpall or opadownloadall. user@ style syntax cannot be used when specifying filenames.
|
|
Packit |
857059 |
|
|
Packit |
857059 |
.SH Syntax
|
|
Packit |
857059 |
opauploadall [-rp] [-f \fIhostfile\fR] [-d \fIupload\(uldir\fR] [-h \[aq]\fIhosts\fR\[aq]] [-u \fIuser\fR]
|
|
Packit |
857059 |
\fIsource\(ulfile\fR ... \fIdest\(ulfile\fR
|
|
Packit |
857059 |
.SH Options
|
|
Packit |
857059 |
|
|
Packit |
857059 |
.TP 10
|
|
Packit |
857059 |
--help
|
|
Packit |
857059 |
|
|
Packit |
857059 |
Produces full help text.
|
|
Packit |
857059 |
.TP 10
|
|
Packit |
857059 |
-p
|
|
Packit |
857059 |
|
|
Packit |
857059 |
Performs copy in parallel on all hosts.
|
|
Packit |
857059 |
.TP 10
|
|
Packit |
857059 |
-r
|
|
Packit |
857059 |
|
|
Packit |
857059 |
Performs recursive upload of directories.
|
|
Packit |
857059 |
.TP 10
|
|
Packit |
857059 |
-f \fIhostfile\fR
|
|
Packit |
857059 |
|
|
Packit |
857059 |
Specifies the file with hosts in cluster.
|
|
Packit |
857059 |
.br
|
|
Packit |
857059 |
Default is /etc/opa/hosts file.
|
|
Packit |
857059 |
.TP 10
|
|
Packit |
857059 |
-h \fIhosts\fR
|
|
Packit |
857059 |
|
|
Packit |
857059 |
Specifies the list of hosts to upload from.
|
|
Packit |
857059 |
.TP 10
|
|
Packit |
857059 |
-u \fIuser\fR
|
|
Packit |
857059 |
|
|
Packit |
857059 |
Specifies the user to perform copy to. Default is current user code.
|
|
Packit |
857059 |
.TP 10
|
|
Packit |
857059 |
-d \fIupload\(uldir\fR
|
|
Packit |
857059 |
|
|
Packit |
857059 |
Specifies the directory to upload to. Default is uploads. If not specified, the environment variable \fBUPLOADS\(ulDIR\fR is used. If that is not exported, the default, /uploads, is used.
|
|
Packit |
857059 |
.TP 10
|
|
Packit |
857059 |
\fIsource\(ulfile\fR
|
|
Packit |
857059 |
|
|
Packit |
857059 |
Specifies the name of files to copy to this system, relative to the current directory. Multiple files may be listed.
|
|
Packit |
857059 |
.TP 10
|
|
Packit |
857059 |
\fIdest\(ulfile\fR
|
|
Packit |
857059 |
|
|
Packit |
857059 |
Specifies the name of the file or directory on this system to copy to. It is relative to \fIupload\(uldir\fR/\fIHOSTNAME\fR .A local directory within \fIupload\(uldir\fR/ is created for each hostname.
|
|
Packit |
857059 |
|
|
Packit |
857059 |
.IP
|
|
Packit |
857059 |
Each uploaded file is copied to upload\(uldir/\fIHOSTNAME\fR/\fIdest\(ulfile\fR within the local system.
|
|
Packit |
857059 |
.IP
|
|
Packit |
857059 |
If more than one source file is specified or dest\(ulfile has a trailing / , a dest\(ulfile directory will be created.
|
|
Packit |
857059 |
.SH Example
|
|
Packit |
857059 |
# upload two files from 2 hosts
|
|
Packit |
857059 |
.br
|
|
Packit |
857059 |
|
|
Packit |
857059 |
opauploadall -h \[aq]arwen elrond\[aq] capture.tgz /etc/init.d/ipoib.cfg.
|
|
Packit |
857059 |
.br
|
|
Packit |
857059 |
|
|
Packit |
857059 |
|
|
Packit |
857059 |
.br
|
|
Packit |
857059 |
|
|
Packit |
857059 |
# upload two files from all hosts
|
|
Packit |
857059 |
.br
|
|
Packit |
857059 |
|
|
Packit |
857059 |
opauploadall -p capture.tgz /etc/init.d/ipoib.cfg.
|
|
Packit |
857059 |
.br
|
|
Packit |
857059 |
|
|
Packit |
857059 |
|
|
Packit |
857059 |
.br
|
|
Packit |
857059 |
|
|
Packit |
857059 |
# upload network config files from all hosts
|
|
Packit |
857059 |
.br
|
|
Packit |
857059 |
|
|
Packit |
857059 |
opauploadall capture.tgz /etc/init.d/ipoib.cfg pre-install
|
|
Packit |
857059 |
.SH Environment Variables
|
|
Packit |
857059 |
|
|
Packit |
857059 |
.PP
|
|
Packit |
857059 |
The following environment variables are also used by this command:
|
|
Packit |
857059 |
.TP 10
|
|
Packit |
857059 |
\fBHOSTS\fR
|
|
Packit |
857059 |
|
|
Packit |
857059 |
List of hosts; used if -h option not supplied.
|
|
Packit |
857059 |
|
|
Packit |
857059 |
.TP 10
|
|
Packit |
857059 |
\fBHOSTS\(ulFILE\fR
|
|
Packit |
857059 |
|
|
Packit |
857059 |
File containing list of hosts; used in absence of -f and -h.
|
|
Packit |
857059 |
|
|
Packit |
857059 |
.TP 10
|
|
Packit |
857059 |
\fBUPLOADS\(ulDIR\fR
|
|
Packit |
857059 |
|
|
Packit |
857059 |
Directory to upload to, used in absence of -d.
|
|
Packit |
857059 |
|
|
Packit |
857059 |
.TP 10
|
|
Packit |
857059 |
\fBFF\(ulMAX\(ulPARALLEL\fR
|
|
Packit |
857059 |
|
|
Packit |
857059 |
When the -p option is used, maximum concurrent operations are performed.
|