Skip to content

Instantly share code, notes, and snippets.

@JohnPreston
Created February 2, 2015 09:31
Show Gist options
  • Select an option

  • Save JohnPreston/c4ba5f546e605a42d0ce to your computer and use it in GitHub Desktop.

Select an option

Save JohnPreston/c4ba5f546e605a42d0ce to your computer and use it in GitHub Desktop.
Check instances private only routing works
#!/usr/bin/env bash
# Eucalyptus account credentials need to be sourced in the environment first.
# If not, add -I -S and -U options accordingly
# Using a specific NC IP, we list all instances on this NC then get their IP address to get ssh-ed to it and ping outside network.
#
euca-describe-instances | grep $NODE_IP | awk '{print $3}' | xargs -i -P10 euca-describe-instances {} | grep INST |awk '{print $12}' | xargs -i -P10 ssh -i ~/admin.pem {} ping -c1 google.co.uk
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment