Skip to the content
Documentation
Help Start
Reading in:
  • German: 9,155 of 9,155 pages
About the help in other languages
All help pages

exp:expclusterrun

Run a console command (or, with --shell, a command line) in this installation on every host of settings/cluster.ini, over ssh.

Download as PDF

Address: https://doc.exponential.earth/learninminutes/exphelp/viewer/examples/commands/expclusterrun.md

On this page

exp:expclusterrun

Run a console command (or, with --shell, a command line) in this installation on every host of settings/cluster.ini, over ssh.

Script bin/php/expclusterrun.php, code in kernel/private/classes/commands/expclusterrun.php. Run it from the installation root, as the user the web server runs as:

./console exp:expclusterrun --help
./console exp:cluster:run --help
php bin/php/expclusterrun.php --help

Help text

Run a command in this installation on every host, over ssh
The hosts are settings/cluster.ini [ClusterSettings] HostList[] (or --hosts). The words
after -- are a console command each host runs as bin/php/console <words> in its root, with
its PHP binary, as its User= (else the ssh login); --shell runs them as a command line for
sh. One host after the other by default, --parallel all at once. PASS/FAIL per host.

./console exp:cluster:run -- exp:cache status
./console exp:cluster:run --hosts=web,cluster -- exp:maintenance status
./console exp:cluster:run --parallel --shell -- uptime
./console exp:cluster:run --dry-run -- exp:ezcache --clear-tag=ini

Exit code: 0 every host passed; 1 a host failed; 2 wrong options or settings.

Generated by ./console exp:help:examples from bin/php/expclusterrun.php, kernel/private/classes/commands/expclusterrun.php. Do not edit this page: change the source and generate again (how). Free documentation: GFDL 1.3 or later.

Something wrong on this page? Report an error

Documentation license

This documentation is free documentation, licensed under the GNU Free Documentation License 1.3 or later.

Exponential Copyright © 1998-2026 Exponential Foundation and 7x