Showing results for 
Search instead for 
Do you mean 

search for software

Occasional Contributor

search for software

Hi admins,
I serch for software which abel to open master window from which I can send the same command to the two cluster nodes.
thanks.
1 REPLY
Honored Contributor

Re: search for software

TruCluster have rsh enabled by default, you can create a script that call rsh to exectute on all nodes.

#!/bin/ksh

NODES="node1 node2 node3 node4"

for NODE in `echo $NODES`; do
rsh $NODE $1
done

If this file is called runall.sh, execute like this:

runall.sh "ls -la"
runall.sh "/sbin/ifconfig -a"
runall.sh "date"

Ensure to double quote the commands to be executed.
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
//Add this to "OnDomLoad" event