exp:expclusterhosts
List the hosts of settings/cluster.ini and check their settings; --check also logs in on each.
Script bin/php/expclusterhosts.php, code in kernel/private/classes/commands/expclusterhosts.php. Run it from the installation root, as the user the web server runs as:
./console exp:expclusterhosts --help
./console exp:cluster:hosts --help
php bin/php/expclusterhosts.php --helpHelp text
List the hosts of settings/cluster.ini
Each host with its ssh target, port, root, PHP binary, users and engine, and what is wrong
with the settings. --check also logs in on each host and checks that its root holds
bin/php/console and that its PHP binary runs.
./console exp:cluster:hosts
./console exp:cluster:hosts --check
./console exp:cluster:hosts --json
Exit code: 0 the settings are right (and with --check every host answered); 1 a host failed
the check; 2 the settings are wrong.Options
| Option | Value | Help |
|---|---|---|
--check |
Read from the option definitions in the code (startup(), getOptions(), options() or ezcConsoleOption). Every script also takes the standard options of the script framework (--help, --siteaccess, --debug, --quiet, --allow-root-user ...).
Related
Generated by ./console exp:help:examples from bin/php/expclusterhosts.php, kernel/private/classes/commands/expclusterhosts.php. Do not edit this page: change the source and generate again (how). Free documentation: GFDL 1.3 or later.