Changeset 42620 for branches/eam_branches/ipp-20230313/tools/eam/rebalance/launch.rsync.check.logs.sh
- Timestamp:
- Feb 8, 2024, 11:37:56 AM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20230313/tools/eam/rebalance/launch.rsync.check.logs.sh
r42562 r42620 1 1 #!/bin/csh 2 2 3 set mode = rsync.check.logs 3 4 set 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 5 source $HOME/.rebalance.sh 15 6 16 7 if ($#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" 19 11 echo " eg: $program run show 1" 12 echo " eg: $program run count 1" 20 13 exit 2 21 14 endif … … 34 27 if ("$1" == "run") then 35 28 if ($#argv != 3) then 36 echo "USAGE: $program run ( mode) (Nentry)"29 echo "USAGE: $program run (command) (Nentry)" 37 30 echo " eg: $program run show 1" 38 31 exit 2 39 32 endif 40 33 41 set mode= $234 set command = $2 42 35 set N = $3 43 36 … … 49 42 set myhost = `hostname` 50 43 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)" 52 45 exit 3 53 46 endif 54 47 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" 56 49 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 & 59 52 exit 0 60 53 endif 54 55 echo "USAGE: $program launch (command)" 56 echo "USAGE: $program run (command) (Nentry)" 57 echo " (command) = show or count" 58 echo " eg: $program run show 1" 59 echo " eg: $program run count 1" 60 exit 2
Note:
See TracChangeset
for help on using the changeset viewer.
