Skip to content

Instantly share code, notes, and snippets.

@velotiotech
Created July 1, 2020 16:12
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/8aa35b273bf816542e626f75a5a876c6 to your computer and use it in GitHub Desktop.
Save velotiotech/8aa35b273bf816542e626f75a5a876c6 to your computer and use it in GitHub Desktop.
dcos node --json | jq '.[] | select(.type | contains("agent")) | if (.attributes.public_ip != null) then "Public Agent : " else "Private Agent : " end + " - " + .hostname ' -r | sort
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment