IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jul 30, 2021, 2:25:33 PM (5 years ago)
Author:
eugene
Message:

more generalization of the scripts

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/eam/rebalance/rsync.check.logs.sh

    r41509 r41746  
    11#!/bin/csh
     2
     3set version = 20210702
    24
    35set showlist = 0
     
    2022echo "--- volume 0 ---"
    2123if ($showlist) then
    22   cat /data/$myhost.0/nebulous/??/rebalance/movefiles.20201209.chk.log | grep -v "total size" | grep -v "building file list" | grep -v "bytes  received" | grep -v '^../$' | grep -v '^$'
    23   cat /data/$myhost.0/nebulous/??/rebalance/movefiles.20201209.chk.log | grep "No such file or directory"
     24  cat /data/$myhost.0/nebulous/??/rebalance/movefiles.$version.chk.2.log | grep -v "total size" | grep -v "building file list" | grep -v "bytes  received" | grep -v '^../$' | grep -v '^$'
     25  cat /data/$myhost.0/nebulous/??/rebalance/movefiles.$version.chk.2.log | grep "No such file or directory"
    2426else
    25   cat /data/$myhost.0/nebulous/??/rebalance/movefiles.20201209.chk.log | grep -v "total size" | grep -v "building file list" | grep -v "bytes  received" | grep -v '^../$' | grep -v '^$' | wc -l
    26   cat /data/$myhost.0/nebulous/??/rebalance/movefiles.20201209.chk.log | grep "No such file or directory" | wc -l
     27  cat /data/$myhost.0/nebulous/??/rebalance/movefiles.$version.chk.2.log | grep -v "total size" | grep -v "building file list" | grep -v "bytes  received" | grep -v '^../$' | grep -v '^$' | wc -l
     28  cat /data/$myhost.0/nebulous/??/rebalance/movefiles.$version.chk.2.log | grep "No such file or directory" | wc -l
    2729endif
    2830
    2931echo "--- volume 1 ---"
    3032if ($showlist) then
    31   cat /data/$myhost.1/nebulous/??/rebalance/movefiles.20201209.chk.log | grep -v "total size" | grep -v "building file list" | grep -v "bytes  received" | grep -v '^../$' | grep -v '^$'
    32   cat /data/$myhost.1/nebulous/??/rebalance/movefiles.20201209.chk.log | grep "No such file or directory"
     33  cat /data/$myhost.1/nebulous/??/rebalance/movefiles.$version.chk.2.log | grep -v "total size" | grep -v "building file list" | grep -v "bytes  received" | grep -v '^../$' | grep -v '^$'
     34  cat /data/$myhost.1/nebulous/??/rebalance/movefiles.$version.chk.2.log | grep "No such file or directory"
    3335else
    34   cat /data/$myhost.1/nebulous/??/rebalance/movefiles.20201209.chk.log | grep -v "total size" | grep -v "building file list" | grep -v "bytes  received" | grep -v '^../$' | grep -v '^$' | wc -l
    35   cat /data/$myhost.1/nebulous/??/rebalance/movefiles.20201209.chk.log | grep "No such file or directory" | wc -l
     36  cat /data/$myhost.1/nebulous/??/rebalance/movefiles.$version.chk.2.log | grep -v "total size" | grep -v "building file list" | grep -v "bytes  received" | grep -v '^../$' | grep -v '^$' | wc -l
     37  cat /data/$myhost.1/nebulous/??/rebalance/movefiles.$version.chk.2.log | grep "No such file or directory" | wc -l
    3638endif
    3739
Note: See TracChangeset for help on using the changeset viewer.