Skip to content

Instantly share code, notes, and snippets.

@dustin
Created March 28, 2014 17:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dustin/9837916 to your computer and use it in GitHub Desktop.
Save dustin/9837916 to your computer and use it in GitHub Desktop.
#!/bin/sh
nodes=`cbfsclient http://cbfs:8484/ info -t '{{ range $n, $v := .Nodes }} {{ $n }}.cbfs.west.spy.net {{ end }}'`
for n in $nodes
do
echo $n
curl -i -XPOST http://$n:8484/.cbfs/exit/
sleep 2
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment