Skip to content

Instantly share code, notes, and snippets.

@petrblaho
Created October 31, 2016 17:06
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save petrblaho/f836085d17d230fdd61c707998c38695 to your computer and use it in GitHub Desktop.
Save petrblaho/f836085d17d230fdd61c707998c38695 to your computer and use it in GitHub Desktop.
virsh list | grep running | awk '{print $2}' | xargs -n1 -I{} sh -c "echo {}; virsh domifaddr {} --full | grep ip; echo '---'"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment