Commits

Anonymous committed 08dec2b

Getting gproc up to date for kane.

Man, I forgot how fast it is!

Comments (0)

Files changed (4)

 for i in `seq $1 $2` 
 do
 echo $i
-ssh -o StrictHostKeyChecking=no -q root@kn$i  rm gproc_linux_amd64 &
+ssh -o StrictHostKeyChecking=no -q root@kn$i  rm gproc_linux_amd64 gproc_linux_386&
 done
 wait
 
 do
 echo $i
 scp /lib/ld-* root@kn$i:/lib &
-scp -o StrictHostKeyChecking=no gproc_linux_amd64  root@kn$i: &
+scp /lib32/ld-* root@kn$i:/lib32 &
+scp /lib32/libc.so.6 /lib32/libpthread.so.0 root@kn$i:/lib32&
+scp -o StrictHostKeyChecking=no gproc_linux_amd64  gproc_linux_386 root@kn$i: &
 done
 wait
 
 		go func(anode int) {
 			node := fmt.Sprintf("root@kn%d", anode)
 
-			Args := []string{"ssh", "-o", "StrictHostKeyCHecking=no", node, "./gproc_linux_amd64", "-locale=kane", fmt.Sprintf("-p=%v ", *privateMount), fmt.Sprintf("-debug=%d", *debugLevel), "s"}
+                        Args := []string{"ssh", "-o", "StrictHostKeyCHecking=no", node, "./gproc_linux_amd64", 
+				"-parent='hostname base 20 roundup kn strcat 10.1.234.234 hostname base 20 % ifelse'", 
+				"-myId='hostname base 20 % 1  + hostname base 20 / hostname base    %  ifelse'", 
+				"-myAddress=hostname", 
+				fmt.Sprintf("-p=%v ", *privateMount), fmt.Sprintf("-debug=%d", *debugLevel), "s"}
 			f := []*os.File{nil, os.Stdout, os.Stderr}
 			fmt.Printf("Spawn to %v\n", node)
 			pid, err := os.StartProcess("/usr/bin/ssh", Args, &os.ProcAttr{Files: f})
 	debugLevel   = flag.Int("d", 0, "Debug level")
 	privateMount = flag.Bool("p", true, "private mounts")
 	locale       = flag.String("locale", "kf", "Locale")
-	parent       = flag.String("parent", "10.1.254.254", "Parent")
+	parent       = flag.String("parent", "172.16.255.254", "Parent")
 	cmdPort      = flag.String("cmdport", "6666", "Command port")
+	binary      = flag.String("b", "gproc_linux_amd64", "Binary to send")
 )
 
 func runlevel(lowNode, highNode int) {
 		go func(anode int) {
 			node := fmt.Sprintf("root@kn%d", anode)
 
-			Args := []string{"ssh", "-o", "StrictHostKeyCHecking=no", node, "./gproc_linux_amd64", fmt.Sprintf("-p=%v ", *privateMount), fmt.Sprintf("--cmdport=%s", *cmdPort), fmt.Sprintf("-locale=%s ", *locale), fmt.Sprintf("-parent=%s ", *parent), fmt.Sprintf("-debug=%d ", *debugLevel), "s"}
+                        Args := []string{"ssh", "-o", "StrictHostKeyCHecking=no", node, *binary, 
+				"-parent='"+*parent+"'", 
+				"-myId='hostname base  '", 
+				"-myAddress=hostname", 
+				fmt.Sprintf("-p=%v ", *privateMount), fmt.Sprintf("-debug=%d", *debugLevel), "s"}
+		
 			fmt.Println(Args)
 			f := []*os.File{nil, os.Stdout, os.Stderr}
 			fmt.Printf("Spawn to %v\n", node)
 	// This will execute an "e" command and return the output
 	// NOTE: soon we should fix the nasty ././././././. for length
 	// of tree
+	// NO: Just add another interface to local to return "depth". 
+	// Let's start using the locale more . 
 	argv := []string{"-locale=etchosts", "-localbin=true",
 		"-merger=true", "-iopp=4445", "e", "././././././.", "/bin/echo",
 		"up"}