IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 42607 for trunk/tools


Ignore:
Timestamp:
Feb 5, 2024, 8:49:27 AM (2 years ago)
Author:
eugene
Message:

cleaning scripts further

Location:
trunk/tools/eam/rebalance
Files:
1 added
14 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/eam/rebalance/launch.find.sh

    r42606 r42607  
    33# set mode to 'find' or 'find.test'
    44set mode = find
    5 set mydir = /data/ipphome1.0/home/eugene/rebalance.20240129
    6 
    7 source $mydir/configure.sh
    85set program = `basename $0`
     6source $HOME/.rebalance.sh
    97
    108if ($#argv == 0) then
     
    2119    echo ssh -f $srchost[$i] "cd $mydir && ./$program run $i"
    2220         ssh -f $srchost[$i] "cd $mydir && ./$program run $i"
    23   @ i++
     21    @ i++
    2422  end
    2523  exit 0
     
    4240  set myhost = `hostname`
    4341  if ($hn != $myhost) then
    44     echo "ERROR: need to run find on the source host ($hn vs $myhost)"
     42    echo "ERROR: need to run $mode on the source host ($hn vs $myhost)"
    4543    exit 3
    4644  endif
    4745
    48   echo "running on $myhost for source $hn.$hv to target $tn.$tv in mode $mode, version $version"
     46  echo "running $program on $myhost for source $hn.$hv to target $tn.$tv in mode $mode, version $version"
    4947  mkdir -p $hn.$hv
    5048  echo "./rebalance.mana $mode $hn $hv $tn $tv $version $fraction > & $hn.$hv/log.$mode.$version.$run &"
  • trunk/tools/eam/rebalance/launch.insert.check.errors.sh

    r42606 r42607  
    22
    33set mode = insert
    4 set mydir = /data/ipphome1.0/home/eugene/rebalance.20240129
    5 
    6 source $mydir/configure.sh
    74set program = `basename $0`
     5source $HOME/.rebalance.sh
    86
    97if ($#argv == 0) then
     
    1513
    1614if ("$1" == "launch") then
    17 
    18   # NOTE: the insert jobs run on the target machines, not source machines
    1915
    2016  set i = 1
  • trunk/tools/eam/rebalance/launch.insert.errors.sh

    r42606 r42607  
    22
    33set mode = insert
    4 set mydir = /data/ipphome1.0/home/eugene/rebalance.20240129
    5 
    6 source $mydir/configure.sh
    74set program = `basename $0`
     5source $HOME/.rebalance.sh
    86
    97if ($#argv == 0) then
     
    1513
    1614if ("$1" == "launch") then
    17 
    18   # NOTE: the insert jobs run on the target machines, not source machines
    1915
    2016  set i = 1
  • trunk/tools/eam/rebalance/launch.insert.sh

    r42606 r42607  
    44set mode = insert
    55# set mode = insert.check
    6 set mydir = /data/ipphome1.0/home/eugene/rebalance.20240129
    7 
    8 source $mydir/configure.sh
    96set program = `basename $0`
     7source $HOME/.rebalance.sh
    108
    119if ($#argv == 0) then
     
    4543  set myhost = `hostname`
    4644  if ($tn != $myhost) then
    47     echo "ERROR: need to run $mode on the source host ($tn vs $myhost)"
     45    echo "ERROR: need to run $mode on the target host ($tn vs $myhost)"
    4846    exit 3
    4947  endif
    5048
    51   echo "running on $myhost for source $hn.$hv to target $tn.$tv in mode $mode, version $version"
     49  echo "running $program on $myhost for source $hn.$hv to target $tn.$tv in mode $mode, version $version"
    5250  mkdir -p $hn.$hv
    5351  echo "./rebalance.mana $mode $hn $hv $tn $tv $version > & $hn.$hv/log.$mode.$version.$run &"
  • trunk/tools/eam/rebalance/launch.location.check.sh

    r42606 r42607  
    11#!/bin/csh
     2
     3## XXX update this
     4echo "UPDATE ME"
     5exit 2
    26
    37### XXX this needs to modified in each directory
  • trunk/tools/eam/rebalance/launch.nebstat.insert.errors.sh

    r42606 r42607  
    22
    33set mode = insert
    4 set mydir = /data/ipphome1.0/home/eugene/rebalance.20240129
    5 
    6 source $mydir/configure.sh
    74set program = `basename $0`
     5source $HOME/.rebalance.sh
    86
    97if ($#argv == 0) then
  • trunk/tools/eam/rebalance/launch.nebstat.trash.check.errors.sh

    r42606 r42607  
    22
    33set mode = trash.check
    4 set mydir = /data/ipphome1.0/home/eugene/rebalance.20240129
    5 
    6 source $mydir/configure.sh
    74set program = `basename $0`
     5source $HOME/.rebalance.sh
    86
    97if ($#argv == 0) then
  • trunk/tools/eam/rebalance/launch.rsync.check.logs.sh

    r42606 r42607  
    11#!/bin/csh
    22
    3 set stage = rsync.check.logs
    4 set mydir = /data/ipphome1.0/home/eugene/rebalance.20240129
    5 
    6 source $mydir/configure.sh
     3set mode = rsync.check.logs
    74set program = `basename $0`
     5source $HOME/.rebalance.sh
    86
    97if ($#argv == 0) then
    10   echo "USAGE: $program launch (mode)"
    11   echo "USAGE: $program run (mode) (Nentry)"
    12   echo "   (mode) = show or count"
     8  echo "USAGE: $program launch (command)"
     9  echo "USAGE: $program run (command) (Nentry)"
     10  echo "   (command) = show or count"
    1311  echo "   eg: $program run show 1"
    1412  echo "   eg: $program run count 1"
     
    2927if ("$1" == "run") then
    3028  if ($#argv != 3) then
    31     echo "USAGE: $program run (mode) (Nentry)"
     29    echo "USAGE: $program run (command) (Nentry)"
    3230    echo "   eg: $program run show 1"
    3331    exit 2
    3432  endif
    3533
    36   set mode = $2
     34  set command = $2
    3735  set N = $3
    3836
     
    4442  set myhost = `hostname`
    4543  if ($hn != $myhost) then
    46     echo "ERROR: need to run $stage on the source host ($hn vs $myhost)"
     44    echo "ERROR: need to run $mode on the source host ($hn vs $myhost)"
    4745    exit 3
    4846  endif
    4947
    50   echo "running on $myhost for source $hn.$hv to target $tn.$tv for stage $stage, version $version"
     48  echo "running on $myhost for source $hn.$hv to target $tn.$tv for mode $mode, version $version"
    5149  mkdir -p $hn.$hv
    52   echo "./rsync.check.logs.sh $mode $hn $hv $version $run > & $hn.$hv/log.$stage.$version.$run &"
    53         ./rsync.check.logs.sh $mode $hn $hv $version $run > & $hn.$hv/log.$stage.$version.$run &
     50  echo "./rsync.check.logs.sh $command $hn $hv $version $run > & $hn.$hv/log.$mode.$version.$run &"
     51        ./rsync.check.logs.sh $command $hn $hv $version $run > & $hn.$hv/log.$mode.$version.$run &
    5452  exit 0
    5553endif
    5654
    57 echo "USAGE: $program launch (mode)"
    58 echo "USAGE: $program run (mode) (Nentry)"
    59 echo "   (mode) = show or count"
     55echo "USAGE: $program launch (command)"
     56echo "USAGE: $program run (command) (Nentry)"
     57echo "   (command) = show or count"
    6058echo "   eg: $program run show 1"
    6159echo "   eg: $program run count 1"
  • trunk/tools/eam/rebalance/launch.rsync.check.sh

    r42606 r42607  
    22
    33set mode = rsync.check
    4 set mydir = /data/ipphome1.0/home/eugene/rebalance.20240129
    5 
    6 source $mydir/configure.sh
    74set program = `basename $0`
     5source $HOME/.rebalance.sh
    86
    97if ($#argv == 0) then
     
    4543  endif
    4644
    47   echo "running on $myhost for source $hn.$hv to target $tn.$tv in mode $mode, version $version"
     45  echo "running $program on $myhost for source $hn.$hv to target $tn.$tv in mode $mode, version $version"
    4846  mkdir -p $hn.$hv
    4947  echo "./rebalance.mana $mode $hn $hv $tn $tv $version $version.$run.chk > & $hn.$hv/log.$mode.$version.$run &"
  • trunk/tools/eam/rebalance/launch.rsync.sh

    r42606 r42607  
    22
    33set mode = rsync
    4 set mydir = /data/ipphome1.0/home/eugene/rebalance.20240129
    5 
    6 source $mydir/configure.sh
    74set program = `basename $0`
     5source $HOME/.rebalance.sh
    86
    97if ($#argv == 0) then
     
    4543  endif
    4644
    47   echo "running on $myhost for source $hn.$hv to target $tn.$tv in mode $mode, version $version"
     45  echo "running $program on $myhost for source $hn.$hv to target $tn.$tv in mode $mode, version $version"
    4846  mkdir -p $hn.$hv
    4947  echo "./rebalance.mana $mode $hn $hv $tn $tv $version > & $hn.$hv/log.$mode.$version.$run &"
  • trunk/tools/eam/rebalance/launch.trash.check.sh

    r42606 r42607  
    22
    33set mode = trash.check
    4 set mydir = /data/ipphome1.0/home/eugene/rebalance.20240129
    5 
    6 source $mydir/configure.sh
    74set program = `basename $0`
     5source $HOME/.rebalance.sh
    86
    97if ($#argv == 0) then
     
    4543  endif
    4644
    47   echo "running on $myhost for source $hn.$hv to target $tn.$tv in mode $mode, version $version"
     45  echo "running $program on $myhost for source $hn.$hv to target $tn.$tv in mode $mode, version $version"
    4846  mkdir -p $hn.$hv
    4947  echo "./rebalance.mana $mode $hn $hv $tn $tv $version > & $hn.$hv/log.$mode.$version.$run &"
  • trunk/tools/eam/rebalance/launch.trash.empty.sh

    r42606 r42607  
    22
    33set mode = empty.trash
    4 set mydir = /data/ipphome1.0/home/eugene/rebalance.20240129
    5 
    6 source $mydir/configure.sh
    74set program = `basename $0`
     5source $HOME/.rebalance.sh
    86
    97if ($#argv == 0) then
     
    4543  endif
    4644
    47   echo "running on $myhost for source $hn.$hv to target $tn.$tv in mode $mode, version $version"
     45  echo "running $program on $myhost for source $hn.$hv to target $tn.$tv in mode $mode, version $version"
    4846  mkdir -p $hn.$hv
    4947  echo "./rebalance.mana $mode $hn $hv $tn $tv $version > & $hn.$hv/log.$mode.$version.$run &"
  • trunk/tools/eam/rebalance/launch.trash.errors.sh

    r42606 r42607  
    22
    33set mode = trash.errors
    4 set mydir = /data/ipphome1.0/home/eugene/rebalance.20240129
    5 
    6 source $mydir/configure.sh
    74set program = `basename $0`
     5source $HOME/.rebalance.sh
    86
    97if ($#argv == 0) then
     
    1513
    1614if ("$1" == "launch") then
    17 
    18   # NOTE: the insert jobs run on the target machines, not source machines
    1915
    2016  set i = 1
  • trunk/tools/eam/rebalance/launch.trash.sh

    r42606 r42607  
    22
    33set mode = trash
    4 set mydir = /data/ipphome1.0/home/eugene/rebalance.20240129
    5 
    6 source $mydir/configure.sh
    74set program = `basename $0`
     5source $HOME/.rebalance.sh
    86
    97if ($#argv == 0) then
     
    4543  endif
    4644
    47   echo "running on $myhost for source $hn.$hv to target $tn.$tv in mode $mode, version $version"
     45  echo "running $program on $myhost for source $hn.$hv to target $tn.$tv in mode $mode, version $version"
    4846  mkdir -p $hn.$hv
    4947  echo "./rebalance.mana $mode $hn $hv $tn $tv $version > & $hn.$hv/log.$mode.$version.$run &"
Note: See TracChangeset for help on using the changeset viewer.