Skip to content

Instantly share code, notes, and snippets.

@fortitudepub
Created August 17, 2016 02:30
Show Gist options
  • Save fortitudepub/138e49779c99ec9f96c45e8a10a1d17b to your computer and use it in GitHub Desktop.
Save fortitudepub/138e49779c99ec9f96c45e8a10a1d17b to your computer and use it in GitHub Desktop.
onliner to transform nova hypervisors to ip address.
nova host-list | grep compute | awk '{print $2}' | sed 's/-/\./g'
@fortitudepub
Copy link
Author

nova host-list | grep compute | awk '{print $2}' | sed 's/-/./g' | xargs -I X ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no X -p 1046 dpkg -l openvswitch-switch

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment