Skip to content

Instantly share code, notes, and snippets.

@jrha
Created May 16, 2014 10:22
Show Gist options
  • Save jrha/75064b58c1e8cb9214e9 to your computer and use it in GitHub Desktop.
Save jrha/75064b58c1e8cb9214e9 to your computer and use it in GitHub Desktop.
ClusterSSH into all nodes with a particular personality in Aquilon
#!/bin/bash
if [[ $# -eq 1 ]]; then
hosts=$(curl -s http://aquilon.example.com:6901/find/host?personality=$1)
if [[ $hosts ]]; then
cssh -l root $hosts
else
echo "ERROR: No hosts found with personality $1"
fi
else
echo "USAGE: aqssh PERSONALITY"
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment