Skip to content

Instantly share code, notes, and snippets.

@aemneina
Created August 24, 2017 17:01
Show Gist options
  • Save aemneina/25e7523a66220d6432b6d9ba402c5663 to your computer and use it in GitHub Desktop.
Save aemneina/25e7523a66220d6432b6d9ba402c5663 to your computer and use it in GitHub Desktop.
ping test
for i in `curl -s rancher-metadata/latest/self/service/containers/| cut -f1 -d=` ; do ping -c2 `curl -s curl rancher-metadata/latest/self/service/containers/$i/primary_ip` ; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment