opauploadall(8)

πŸ’– opauploadall πŸ’–

okay bestie, so this is the opauploadall(8) page β€” it lives in the IFSFFCLIRG manual, and it's a Linux girlie. She copies one or more files from a whole group of hosts back to this system 🫢.

Here's the tea: since the file name is the same on every host, she makes a separate directory on this system for each host and drops the file in there. So cute, so organized. This is literally the easiest way to scoop up log files or config files for review 🌸. You can also pair her with opadownloadall to upload a host-specific config file, edit it per host, then download the new version to all the hosts. Main character collab ✨.

⚠️ NOTE bestie: to copy files from this host to hosts in the cluster, use opascpall or opadownloadall instead. Also, user@ style syntax cannot be used when specifying filenames. Not negotiable πŸ’….

✨ Syntax ✨

opauploadall [-rp] [-f  hostfile] [-d  upload_dir] [-h 'hosts'] [-u
user] source_file ...  dest_file

πŸŽ€ Options πŸŽ€

  • --help β€” prints out the full help text for you. Slay.
  • -p β€” does the copy in parallel on all the hosts. multitasking queen πŸ‘‘
  • -r β€” recursive upload of directories. she goes deep πŸ¦‹
  • -f hostfile β€” points at the file with hosts in the cluster. default is the /etc/opa/hosts file.
  • -h hosts β€” the list of hosts to upload from.
  • -u user β€” the user to perform the copy to. default is the current user code.
  • -d upload_dir β€” the directory to upload to. default is uploads. if you don't specify it, the environment variable UPLOADS_DIR is used. and if that isn't exported, the default, /uploads, is used.
  • source_file β€” the name of the files to copy to this system, relative to the current directory. you can list multiple files, no cap.
  • dest_file β€” the name of the file or directory on this system to copy to. it's relative to upload_dir/HOSTNAME. a local directory within upload_dir/ gets 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 /, then a dest_file directory will be created.


🌈 Example 🌈

# 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

🌸 Environment Variables 🌸

these env vars are also used by this command, bestie:

  • HOSTS β€” list of hosts; used if the -h option isn't supplied.
  • HOSTS_FILE β€” file containing the list of hosts; used in the absence of -f and -h.
  • UPLOADS_DIR β€” directory to upload to, used in the absence of -d.
  • FF_MAX_PARALLEL β€” when the -p option is used, the maximum concurrent operations are performed.

and that's the whole vibe check, babe πŸ§šπŸ’œ. this page is brought to you by Copyright(C) 2015-2019 Intel Corporation β€” thanks for the lore, Intel, we're obsessed πŸ˜­πŸ‘‘. go forth and upload, periodt πŸ’…βœ¨