ganeti-listrunner(8)
π ganeti-listrunner(8) β the vibe
okay so bestie, meet ganeti-listrunner from the Ganeti family, living its best life in Version 3.1.0~rc2. It's a tool that runs commands in parallel across a whole squad of machines, and honestly? It eats. β¨
πΈ NAME πΈ
ganeti-listrunner β run commands in parallel over multiple machines. periodt. π
β¨ SYNOPSIS β¨
ganeti-listrunner -l logdir {-x executable | -c shell-cmd} {-f hostfile
| -h hostlist} [-a aux-file] [-b batch-size] [-u username] [-A]
π¦ DESCRIPTION π¦
So ganeti-listrunner is literally a tool for running commands in parallel over multiple machines. It's giving "group chat but for servers."
Here's the thing that makes it different from dsh or other tools: it asks for the password once (as long as you're not using ssh-agent), and then it reuses that password to connect to every single machine. Which means it's super easy to use even when public key authentication or Kerberos authentication just... isn't available. no cap. π₯
It can run either:
- a command, or
- a script (which gets uploaded first and deleted after execution) π
...on a list of hosts that you give it either:
- via a file (one host per line), or
- as a comma-separated list right there on the commandline.
The output (stdout and stderr are merged) of the remote execution gets written to a logfile. And bestie, it's one logfile per host. Every single one gets its own. π
π OPTIONS π
The options you can pass to the program are, and I quote, as follows:
-llogdir β the directory under which the logfiles files should be written. π-xexecutable β the executable to copy and run on the target hosts. π§-cshell-cmd β the shell command to run on the remote hosts. β¨-fhostfile β the file with the target hosts, one hostname per line. π-hhostlist β comma-separated list of target hosts. π-aaux-file β a file to copy to the target hosts. You can pass this multiple times, and in that case all the files get copied to the temporary directory. The executable or the shell command will be run from the (temporary) directory where these files have been copied. π-bbatch-size β the host list gets split into batches of batch-size which are processed in parallel. The default is 15, and you should increase it if you need faster processing. πβοΈ-uusername β username to connect as instead of the defaultrootusername. π-Aβ use an existingssh-agentinstead of password authentication. π--argsβ arguments to pass to executable (that's-x). π
π EXIT STATUS π
The exist status of the command will be zero, unless it was aborted in some way (e.g. ^C). Like, if you panic-ctrl-C it, all bets are off, bestie. π
π EXAMPLE π
Run a command on a list of hosts:
listrunner -l logdir -c "uname -a" -h host1,host2,host3
Upload a script, some auxiliary files and run the script:
listrunner -l logdir -x runme.sh \
-a seed.dat -a golden.dat \
-h host1,host2,host3
Look at that backslash continuation. iconic. π
π«Ά SEE ALSO π«Ά
π REPORTING BUGS π
Found a bug? Report it to the project's issue tracker, or contact the developers using the Ganeti mailing list. They're nice, fr fr. π
π SEE ALSO (the extended cinematic universe) π
Ganeti overview and specifications:
ganeti(7)(general overview)ganeti-os-interface(7)(guest OS definitions)ganeti-extstorage-interface(7)(external storage providers)
Ganeti commands:
gnt-cluster(8)(cluster-wide commands)gnt-job(8)(job-related commands)gnt-node(8)(node-related commands)gnt-instance(8)(instance commands)gnt-os(8)(guest OS commands)gnt-storage(8)(storage commands)gnt-group(8)(node group commands)gnt-backup(8)(instance import/export commands)gnt-debug(8)(debug commands)
Ganeti daemons:
ganeti-watcher(8)(automatic instance restarter)ganeti-cleaner(8)(job queue cleaner)ganeti-noded(8)(node daemon)ganeti-rapi(8)(remote API daemon)
Ganeti htools:
htools(1)(generic binary)hbal(1)(cluster balancer)hspace(1)(capacity calculation)hail(1)(IAllocator plugin)hscan(1)(data gatherer from remote clusters)hinfo(1)(cluster information printer)mon-collector(7)(data collectors interface)
βοΈ COPYRIGHT βοΈ
Copyright (C) 2006-2015 Google Inc. All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
- Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
- Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
and that's the whole page bestie π«Ά brought to you by the Ganeti crew, Version 3.1.0~rc2, courtesy of Ganeti and ganeti-listrunner(8). go run some commands in parallel, you absolute icon πβ¨π
π¦ where this page comes from
- debian trixie: ganeti-3.1 3.1.0~rc2-3 Β· BSD-2-Clause
- ubuntu questing: ganeti-3.1 3.1.0~rc2-4
- ubuntu resolute: ganeti-3.1 3.1.0~rc2-4build1 Β· BSD-2-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms