Created
August 7, 2013 02:49
-
-
Save mnadel/6170771 to your computer and use it in GitHub Desktop.
List of offline uDeploy agents
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
curl -s -u "PasswordIsAuthToken:{\"token\":\"$UD_AUTH_TOKEN\"}" $UD_SERVER/rest/agent/all \ | |
| jq '.[] | {name} | select(.status != "ONLINE")' \ | |
| grep name \ | |
| awk 'BEGIN { FS = "\"" } { print $4 }' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment