Skip to content

Instantly share code, notes, and snippets.

@velotiotech
Created June 11, 2020 04:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save velotiotech/d3c6b316789d2f30c68e6a525599431b to your computer and use it in GitHub Desktop.
Save velotiotech/d3c6b316789d2f30c68e6a525599431b to your computer and use it in GitHub Desktop.
#!/bin/bash
for id in $(dcos node --json | jq --raw-output '.[] | select(.attributes.public_ip == "true") | .id');
do
dcos node ssh --option StrictHostKeyChecking=no --option LogLevel=quiet --master-proxy --mesos-id=$id "curl -s ifconfig.co"
done 2>/dev/null
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment