IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 8, 2024, 11:37:56 AM (2 years ago)
Author:
eugene
Message:

merge changes from trunk : updates to rebalance

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20230313/tools/eam/rebalance/launch.rsync.check.logs.sh

    r42562 r42620  
    11#!/bin/csh
    22
     3set mode = rsync.check.logs
    34set program = `basename $0`
    4 
    5 set run = v0
    6 set version = 20230802
    7 set stage = rsync.check.logs
    8 
    9 set srchost = (ipp100 ipp108 ipp112 ipp114)
    10 set srcvol  = (     0      0      1      0)
    11 set tgthost = (ipp161 ipp161 ipp162 ipp162)
    12 set tgtvol  = (     0      1      0      1)
    13 
    14 set mydir = /data/ipphome1.0/home/eugene/rebalance.20230802
     5source $HOME/.rebalance.sh
    156
    167if ($#argv == 0) then
    17   echo "USAGE: $program launch (mode)"
    18   echo "USAGE: $program run (mode) (Nentry)"
     8  echo "USAGE: $program launch (command)"
     9  echo "USAGE: $program run (command) (Nentry)"
     10  echo "   (command) = show or count"
    1911  echo "   eg: $program run show 1"
     12  echo "   eg: $program run count 1"
    2013  exit 2
    2114endif
     
    3427if ("$1" == "run") then
    3528  if ($#argv != 3) then
    36     echo "USAGE: $program run (mode) (Nentry)"
     29    echo "USAGE: $program run (command) (Nentry)"
    3730    echo "   eg: $program run show 1"
    3831    exit 2
    3932  endif
    4033
    41   set mode = $2
     34  set command = $2
    4235  set N = $3
    4336
     
    4942  set myhost = `hostname`
    5043  if ($hn != $myhost) then
    51     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)"
    5245    exit 3
    5346  endif
    5447
    55   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"
    5649  mkdir -p $hn.$hv
    57   echo "./rsync.check.logs.sh $mode $hn $hv $version $run > & $hn.$hv/log.$stage.$version.$run &"
    58         ./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 &
    5952  exit 0
    6053endif
     54
     55echo "USAGE: $program launch (command)"
     56echo "USAGE: $program run (command) (Nentry)"
     57echo "   (command) = show or count"
     58echo "   eg: $program run show 1"
     59echo "   eg: $program run count 1"
     60exit 2
Note: See TracChangeset for help on using the changeset viewer.