Skip to content

Instantly share code, notes, and snippets.

@thikade
Created September 27, 2016 08:10
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 thikade/e0f1d0241a626a1b5ca94b0f264dbfd2 to your computer and use it in GitHub Desktop.
Save thikade/e0f1d0241a626a1b5ca94b0f264dbfd2 to your computer and use it in GitHub Desktop.
# set WLP Home dir
WLP_HOME=C:\wlp
# path to server cmd
WLP_CMD=%WLP_HOME%\bin\server
# loop over "server list" output to get all defined Liberty servers,
# then execute "server status" for each server
# The first line reads `The following servers are defined..` and will be ignored.
for /f "tokens=1" %G in ('%WLP_CMD% list ^|findstr /v "^The"') DO %WLP_CMD% status %G
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment