Mar 12, 2011

Starting multiple JVMs through ssh

If you ssh auto is enabled from a central server, starting multiple jvms on several nodes is easy. Below shows for two jvms per node,


for sv in ccaita1k ccaita1l ccaita1m ccaita1n ccaita67 ccaita69 ccaita7p ccaita7q ccaita7r ccaita7x ccaita7y ccaita8k ccaita8l ccaitack; do
ssh $sv 'cd /opt/isv/WAS51/AppServer/bin; ./startServer.sh WC_THD_`hostname` -nowait; ./startServer.sh WC_THD2_`hostname` -nowait'
done

No comments:

Post a Comment