Advertisement
Guest User

Untitled

a guest
May 28th, 2015
227
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.84 KB | None | 0 0
  1. success=`ssh tug@10.1.20.129 "sed -n '/2015-05-19 02:13:58/,/2016-05-08 19:13/p' /var/log/tug/pipeline/pipeline_manager_info.log | grep success | wc -l"`
  2. fail=`ssh tug@10.1.20.129 "sed -n '/2015-05-19 02:13:58/,/2016-05-08 19:13/p' /var/log/tug/pipeline/pipeline_manager_info.log | grep permanent | wc -l"`
  3. total=`expr $fail + $success`
  4. eucfull=`ssh tug@10.1.20.129 "df -h /dev/mapper/vg_md3260a-lv_md3260a | grep 437T | awk '{print $4}'"`
  5. . sample-count.sh
  6. echo -e `date` "\n" | tee -a sample-count.log
  7. echo -e "Total number of successfully processed samples is $success"| tee -a sample-count.log
  8. echo -e "Total number of permanently failed samples is $fail"| tee -a sample-count.log
  9. echo -e "Total number of samples processed is $total"| tee -a sample-count.log
  10. echo -e "Eucalyptus storage server is $eucfull full""\n"| tee -a sample-count.log
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement