Skip to content

Instantly share code, notes, and snippets.

@colin-nolan
Created August 16, 2018 09:39
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 colin-nolan/0aebb4f247731e014be9a9cb17bb8eb9 to your computer and use it in GitHub Desktop.
Save colin-nolan/0aebb4f247731e014be9a9cb17bb8eb9 to your computer and use it in GitHub Desktop.
Gets the host IDs running OpenStack instances
openstack server list -f json | jq -r '.[].ID' | xargs -I {} -P 8 openstack server show -f json {} | jq '{hostId,name}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment