Skip to content

Instantly share code, notes, and snippets.

@e0ne
Created March 5, 2013 20:00
Show Gist options
  • Save e0ne/5093727 to your computer and use it in GitHub Desktop.
Save e0ne/5093727 to your computer and use it in GitHub Desktop.
Shows hostnames for patter matched VM's in OpenStack
#!/usr/bin/env bash
nova list | grep $1 | awk '{system("nova show " $2)}' | grep ':host'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment