Index: /trunk/tools/eam/rebalance/configure.sh
===================================================================
--- /trunk/tools/eam/rebalance/configure.sh	(revision 42607)
+++ /trunk/tools/eam/rebalance/configure.sh	(revision 42607)
@@ -0,0 +1,10 @@
+set run = v0
+set version = 20240129
+set srchost = (ipp144 ipp144 ipp145 ipp145 ipp146 ipp146 ipp147 ipp147)
+set srcvol  = (     0      1      0      1      0      1      0      1)
+set tgthost = (ipp163 ipp163 ipp163 ipp163 ipp163 ipp163 ipp163 ipp163)
+set tgtvol  = (     0      1      0      1      0      1      0      1)
+
+set fraction = 0.90
+set mydir = /data/ipphome1.0/home/eugene/rebalance.20240129
+
Index: /trunk/tools/eam/rebalance/launch.find.sh
===================================================================
--- /trunk/tools/eam/rebalance/launch.find.sh	(revision 42606)
+++ /trunk/tools/eam/rebalance/launch.find.sh	(revision 42607)
@@ -3,8 +3,6 @@
 # set mode to 'find' or 'find.test'
 set mode = find
-set mydir = /data/ipphome1.0/home/eugene/rebalance.20240129
-
-source $mydir/configure.sh
 set program = `basename $0`
+source $HOME/.rebalance.sh
 
 if ($#argv == 0) then
@@ -21,5 +19,5 @@
     echo ssh -f $srchost[$i] "cd $mydir && ./$program run $i"
          ssh -f $srchost[$i] "cd $mydir && ./$program run $i"
-  @ i++
+    @ i++
   end
   exit 0
@@ -42,9 +40,9 @@
   set myhost = `hostname`
   if ($hn != $myhost) then
-    echo "ERROR: need to run find on the source host ($hn vs $myhost)"
+    echo "ERROR: need to run $mode on the source host ($hn vs $myhost)"
     exit 3
   endif
 
-  echo "running on $myhost for source $hn.$hv to target $tn.$tv in mode $mode, version $version"
+  echo "running $program on $myhost for source $hn.$hv to target $tn.$tv in mode $mode, version $version"
   mkdir -p $hn.$hv
   echo "./rebalance.mana $mode $hn $hv $tn $tv $version $fraction > & $hn.$hv/log.$mode.$version.$run &"
Index: /trunk/tools/eam/rebalance/launch.insert.check.errors.sh
===================================================================
--- /trunk/tools/eam/rebalance/launch.insert.check.errors.sh	(revision 42606)
+++ /trunk/tools/eam/rebalance/launch.insert.check.errors.sh	(revision 42607)
@@ -2,8 +2,6 @@
 
 set mode = insert
-set mydir = /data/ipphome1.0/home/eugene/rebalance.20240129
-
-source $mydir/configure.sh
 set program = `basename $0`
+source $HOME/.rebalance.sh
 
 if ($#argv == 0) then
@@ -15,6 +13,4 @@
 
 if ("$1" == "launch") then
-
-  # NOTE: the insert jobs run on the target machines, not source machines
 
   set i = 1
Index: /trunk/tools/eam/rebalance/launch.insert.errors.sh
===================================================================
--- /trunk/tools/eam/rebalance/launch.insert.errors.sh	(revision 42606)
+++ /trunk/tools/eam/rebalance/launch.insert.errors.sh	(revision 42607)
@@ -2,8 +2,6 @@
 
 set mode = insert
-set mydir = /data/ipphome1.0/home/eugene/rebalance.20240129
-
-source $mydir/configure.sh
 set program = `basename $0`
+source $HOME/.rebalance.sh
 
 if ($#argv == 0) then
@@ -15,6 +13,4 @@
 
 if ("$1" == "launch") then
-
-  # NOTE: the insert jobs run on the target machines, not source machines
 
   set i = 1
Index: /trunk/tools/eam/rebalance/launch.insert.sh
===================================================================
--- /trunk/tools/eam/rebalance/launch.insert.sh	(revision 42606)
+++ /trunk/tools/eam/rebalance/launch.insert.sh	(revision 42607)
@@ -4,8 +4,6 @@
 set mode = insert
 # set mode = insert.check
-set mydir = /data/ipphome1.0/home/eugene/rebalance.20240129
-
-source $mydir/configure.sh
 set program = `basename $0`
+source $HOME/.rebalance.sh
 
 if ($#argv == 0) then
@@ -45,9 +43,9 @@
   set myhost = `hostname`
   if ($tn != $myhost) then
-    echo "ERROR: need to run $mode on the source host ($tn vs $myhost)"
+    echo "ERROR: need to run $mode on the target host ($tn vs $myhost)"
     exit 3
   endif
 
-  echo "running on $myhost for source $hn.$hv to target $tn.$tv in mode $mode, version $version"
+  echo "running $program on $myhost for source $hn.$hv to target $tn.$tv in mode $mode, version $version"
   mkdir -p $hn.$hv
   echo "./rebalance.mana $mode $hn $hv $tn $tv $version > & $hn.$hv/log.$mode.$version.$run &"
Index: /trunk/tools/eam/rebalance/launch.location.check.sh
===================================================================
--- /trunk/tools/eam/rebalance/launch.location.check.sh	(revision 42606)
+++ /trunk/tools/eam/rebalance/launch.location.check.sh	(revision 42607)
@@ -1,3 +1,7 @@
 #!/bin/csh 
+
+## XXX update this
+echo "UPDATE ME"
+exit 2
 
 ### XXX this needs to modified in each directory
Index: /trunk/tools/eam/rebalance/launch.nebstat.insert.errors.sh
===================================================================
--- /trunk/tools/eam/rebalance/launch.nebstat.insert.errors.sh	(revision 42606)
+++ /trunk/tools/eam/rebalance/launch.nebstat.insert.errors.sh	(revision 42607)
@@ -2,8 +2,6 @@
 
 set mode = insert
-set mydir = /data/ipphome1.0/home/eugene/rebalance.20240129
-
-source $mydir/configure.sh
 set program = `basename $0`
+source $HOME/.rebalance.sh
 
 if ($#argv == 0) then
Index: /trunk/tools/eam/rebalance/launch.nebstat.trash.check.errors.sh
===================================================================
--- /trunk/tools/eam/rebalance/launch.nebstat.trash.check.errors.sh	(revision 42606)
+++ /trunk/tools/eam/rebalance/launch.nebstat.trash.check.errors.sh	(revision 42607)
@@ -2,8 +2,6 @@
 
 set mode = trash.check
-set mydir = /data/ipphome1.0/home/eugene/rebalance.20240129
-
-source $mydir/configure.sh
 set program = `basename $0`
+source $HOME/.rebalance.sh
 
 if ($#argv == 0) then
Index: /trunk/tools/eam/rebalance/launch.rsync.check.logs.sh
===================================================================
--- /trunk/tools/eam/rebalance/launch.rsync.check.logs.sh	(revision 42606)
+++ /trunk/tools/eam/rebalance/launch.rsync.check.logs.sh	(revision 42607)
@@ -1,14 +1,12 @@
 #!/bin/csh 
 
-set stage = rsync.check.logs
-set mydir = /data/ipphome1.0/home/eugene/rebalance.20240129
-
-source $mydir/configure.sh
+set mode = rsync.check.logs
 set program = `basename $0`
+source $HOME/.rebalance.sh
 
 if ($#argv == 0) then
-  echo "USAGE: $program launch (mode)"
-  echo "USAGE: $program run (mode) (Nentry)"
-  echo "   (mode) = show or count"
+  echo "USAGE: $program launch (command)"
+  echo "USAGE: $program run (command) (Nentry)"
+  echo "   (command) = show or count"
   echo "   eg: $program run show 1"
   echo "   eg: $program run count 1"
@@ -29,10 +27,10 @@
 if ("$1" == "run") then
   if ($#argv != 3) then
-    echo "USAGE: $program run (mode) (Nentry)"
+    echo "USAGE: $program run (command) (Nentry)"
     echo "   eg: $program run show 1"
     exit 2
   endif
 
-  set mode = $2
+  set command = $2
   set N = $3
 
@@ -44,18 +42,18 @@
   set myhost = `hostname`
   if ($hn != $myhost) then
-    echo "ERROR: need to run $stage on the source host ($hn vs $myhost)"
+    echo "ERROR: need to run $mode on the source host ($hn vs $myhost)"
     exit 3
   endif
 
-  echo "running on $myhost for source $hn.$hv to target $tn.$tv for stage $stage, version $version"
+  echo "running on $myhost for source $hn.$hv to target $tn.$tv for mode $mode, version $version"
   mkdir -p $hn.$hv
-  echo "./rsync.check.logs.sh $mode $hn $hv $version $run > & $hn.$hv/log.$stage.$version.$run &"
-        ./rsync.check.logs.sh $mode $hn $hv $version $run > & $hn.$hv/log.$stage.$version.$run &
+  echo "./rsync.check.logs.sh $command $hn $hv $version $run > & $hn.$hv/log.$mode.$version.$run &"
+        ./rsync.check.logs.sh $command $hn $hv $version $run > & $hn.$hv/log.$mode.$version.$run &
   exit 0
 endif
 
-echo "USAGE: $program launch (mode)"
-echo "USAGE: $program run (mode) (Nentry)"
-echo "   (mode) = show or count"
+echo "USAGE: $program launch (command)"
+echo "USAGE: $program run (command) (Nentry)"
+echo "   (command) = show or count"
 echo "   eg: $program run show 1"
 echo "   eg: $program run count 1"
Index: /trunk/tools/eam/rebalance/launch.rsync.check.sh
===================================================================
--- /trunk/tools/eam/rebalance/launch.rsync.check.sh	(revision 42606)
+++ /trunk/tools/eam/rebalance/launch.rsync.check.sh	(revision 42607)
@@ -2,8 +2,6 @@
 
 set mode = rsync.check
-set mydir = /data/ipphome1.0/home/eugene/rebalance.20240129
-
-source $mydir/configure.sh
 set program = `basename $0`
+source $HOME/.rebalance.sh
 
 if ($#argv == 0) then
@@ -45,5 +43,5 @@
   endif
 
-  echo "running on $myhost for source $hn.$hv to target $tn.$tv in mode $mode, version $version"
+  echo "running $program on $myhost for source $hn.$hv to target $tn.$tv in mode $mode, version $version"
   mkdir -p $hn.$hv
   echo "./rebalance.mana $mode $hn $hv $tn $tv $version $version.$run.chk > & $hn.$hv/log.$mode.$version.$run &"
Index: /trunk/tools/eam/rebalance/launch.rsync.sh
===================================================================
--- /trunk/tools/eam/rebalance/launch.rsync.sh	(revision 42606)
+++ /trunk/tools/eam/rebalance/launch.rsync.sh	(revision 42607)
@@ -2,8 +2,6 @@
 
 set mode = rsync
-set mydir = /data/ipphome1.0/home/eugene/rebalance.20240129
-
-source $mydir/configure.sh
 set program = `basename $0`
+source $HOME/.rebalance.sh
 
 if ($#argv == 0) then
@@ -45,5 +43,5 @@
   endif
 
-  echo "running on $myhost for source $hn.$hv to target $tn.$tv in mode $mode, version $version"
+  echo "running $program on $myhost for source $hn.$hv to target $tn.$tv in mode $mode, version $version"
   mkdir -p $hn.$hv
   echo "./rebalance.mana $mode $hn $hv $tn $tv $version > & $hn.$hv/log.$mode.$version.$run &"
Index: /trunk/tools/eam/rebalance/launch.trash.check.sh
===================================================================
--- /trunk/tools/eam/rebalance/launch.trash.check.sh	(revision 42606)
+++ /trunk/tools/eam/rebalance/launch.trash.check.sh	(revision 42607)
@@ -2,8 +2,6 @@
 
 set mode = trash.check
-set mydir = /data/ipphome1.0/home/eugene/rebalance.20240129
-
-source $mydir/configure.sh
 set program = `basename $0`
+source $HOME/.rebalance.sh
 
 if ($#argv == 0) then
@@ -45,5 +43,5 @@
   endif
 
-  echo "running on $myhost for source $hn.$hv to target $tn.$tv in mode $mode, version $version"
+  echo "running $program on $myhost for source $hn.$hv to target $tn.$tv in mode $mode, version $version"
   mkdir -p $hn.$hv
   echo "./rebalance.mana $mode $hn $hv $tn $tv $version > & $hn.$hv/log.$mode.$version.$run &"
Index: /trunk/tools/eam/rebalance/launch.trash.empty.sh
===================================================================
--- /trunk/tools/eam/rebalance/launch.trash.empty.sh	(revision 42606)
+++ /trunk/tools/eam/rebalance/launch.trash.empty.sh	(revision 42607)
@@ -2,8 +2,6 @@
 
 set mode = empty.trash
-set mydir = /data/ipphome1.0/home/eugene/rebalance.20240129
-
-source $mydir/configure.sh
 set program = `basename $0`
+source $HOME/.rebalance.sh
 
 if ($#argv == 0) then
@@ -45,5 +43,5 @@
   endif
 
-  echo "running on $myhost for source $hn.$hv to target $tn.$tv in mode $mode, version $version"
+  echo "running $program on $myhost for source $hn.$hv to target $tn.$tv in mode $mode, version $version"
   mkdir -p $hn.$hv
   echo "./rebalance.mana $mode $hn $hv $tn $tv $version > & $hn.$hv/log.$mode.$version.$run &"
Index: /trunk/tools/eam/rebalance/launch.trash.errors.sh
===================================================================
--- /trunk/tools/eam/rebalance/launch.trash.errors.sh	(revision 42606)
+++ /trunk/tools/eam/rebalance/launch.trash.errors.sh	(revision 42607)
@@ -2,8 +2,6 @@
 
 set mode = trash.errors
-set mydir = /data/ipphome1.0/home/eugene/rebalance.20240129
-
-source $mydir/configure.sh
 set program = `basename $0`
+source $HOME/.rebalance.sh
 
 if ($#argv == 0) then
@@ -15,6 +13,4 @@
 
 if ("$1" == "launch") then
-
-  # NOTE: the insert jobs run on the target machines, not source machines
 
   set i = 1
Index: /trunk/tools/eam/rebalance/launch.trash.sh
===================================================================
--- /trunk/tools/eam/rebalance/launch.trash.sh	(revision 42606)
+++ /trunk/tools/eam/rebalance/launch.trash.sh	(revision 42607)
@@ -2,8 +2,6 @@
 
 set mode = trash
-set mydir = /data/ipphome1.0/home/eugene/rebalance.20240129
-
-source $mydir/configure.sh
 set program = `basename $0`
+source $HOME/.rebalance.sh
 
 if ($#argv == 0) then
@@ -45,5 +43,5 @@
   endif
 
-  echo "running on $myhost for source $hn.$hv to target $tn.$tv in mode $mode, version $version"
+  echo "running $program on $myhost for source $hn.$hv to target $tn.$tv in mode $mode, version $version"
   mkdir -p $hn.$hv
   echo "./rebalance.mana $mode $hn $hv $tn $tv $version > & $hn.$hv/log.$mode.$version.$run &"
