maand run_command

run_command runs an arbitrary shell command on one or more workers over SSH from the maand CLI host.

CLI

maand run_command [command] [flags]
Flag Description
--workers -w
--labels -l
--concurrency -c
--health_check
--ignore-failure

Examples:

maand run_command "uptime"
maand run_command "df -h /opt/worker" --workers 10.0.0.1,10.0.0.2
maand run_command "hostname" --concurrency 4
maand run_command "uptime" --ignore-failure

Exit code

Exit 0 when every selected worker succeeds. Exit 1 when any worker fails (including with --ignore-failure, which still runs reachable workers and writes their logs before reporting failures).

Prerequisites

Notes