Skip to content

Instantly share code, notes, and snippets.

@jdorfman
Created May 1, 2012 22:15
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 jdorfman/2571878 to your computer and use it in GitHub Desktop.
Save jdorfman/2571878 to your computer and use it in GitHub Desktop.
Find the version number of nginx on a cluster
for i in 01 02 03 04 05; do echo "${i}" && ssh web${i}.yourdomain.com '/usr/local/nginx/sbin/nginx -v'; done
# Output:
# 01
# nginx version: nginx/1.0.11
# 02
# nginx version: nginx/1.0.11
# 03
# nginx version: nginx/1.0.11
# 04
# nginx version: nginx/1.0.11
# 05
# nginx version: nginx/1.0.11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment