4 require "/m1/homes/swgsrv/nodes.pl";
6 # verify cmd line arguments and abort if incorrect
7 $Getopt::Std
::opt_v
= "";
8 Getopt
::Std
::getopts
("v");
12 print "usage: startcluster.pl <CLUSTER>\n";
13 print " e.g: startcluster.pl dev\n";
19 if ( ! $node{"$cluster"}{"01"} )
21 print "cluster: $cluster not defined\n";
26 foreach $n ( sort { $a <=> $b } keys % {$node{"$cluster"}} )
28 $hostname = "$node{\"$cluster\"}{\"$n\"}.$domain";
29 system("/usr/local/bin/ssh -f $user\@$hostname \"$cmd \"");