Skip to content

Instantly share code, notes, and snippets.

@perplexes
Created January 14, 2016 20:16
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 perplexes/e994b788d61b92124921 to your computer and use it in GitHub Desktop.
Save perplexes/e994b788d61b92124921 to your computer and use it in GitHub Desktop.
Get current elasticache servers from elasticache config server
$ echo "config get cluster" | nc -i1 name.sha.cfg.use1.cache.amazonaws.com 11211 | sed '3q;d' | tr ' ' '\n' | awk -F'|' '{print $1":"$3}'
verba.pysff9.0001.use1.cache.amazonaws.com:11211
verba.pysff9.0002.use1.cache.amazonaws.com:11211
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment