Created
February 2, 2015 09:31
-
-
Save JohnPreston/c4ba5f546e605a42d0ce to your computer and use it in GitHub Desktop.
Check instances private only routing works
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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