Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
# Run any shell command on all slave nodes (private and public)
# Usage : <CMD= any shell command to run, Ex: ulimit -a >
for i in `dcos node | egrep -v "TYPE|master" | awk '{print $1}'`; do
echo -e "\n###> Running command [ $CMD ] on $i"
dcos node ssh --option StrictHostKeyChecking=no --option LogLevel=quiet --master-proxy --private-ip=$i "$CMD"
echo -e "======================================\n"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.