Created
July 1, 2020 16:12
-
-
Save velotiotech/8aa35b273bf816542e626f75a5a876c6 to your computer and use it in GitHub Desktop.
This file contains 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
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