Skip to content

Instantly share code, notes, and snippets.

@jreypo
Last active September 30, 2016 17:51
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 jreypo/916374cc48b6bfe1e20d5d583a3c48a9 to your computer and use it in GitHub Desktop.
Save jreypo/916374cc48b6bfe1e20d5d583a3c48a9 to your computer and use it in GitHub Desktop.
for node in $(ironic node-list | egrep "power on" | awk '{print $2}'); do
echo "Powering off $node"
ironic node-set-power-state $node off
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment