HSGxSamplesRun1

Projects inside Run II preparation NEW 2014

This page contains information about the *Disk Spaces in All the GRID Computing Facilities for the HSGx [1-8] Groups*

Please refer to this two links for the status of the different HIGGS Disks in ATLAS:

Group Space Overview Tool
DQ2 Accounting: Storage Usage

NEW Samples to be saved for the HSGx Groups (October 2014)




NEW BASH Script to obtain the metadata from AMI + DQ2 (October 2014)


- To use this script please remember that you will need to have a valid proxy because you will use "GRID services"!
- The input file is any text file where you have as the first object of the line, the name of the dataset. Not mather of the next possibles fields after the name-dataset in the same line.
- To use the script just do: ./script.sh list_datasets.txt for example (using nohup for long lists): nohup ./script1.sh data_hsg1245.txt&;
- The output is another text file with the name => table_input_name. So, usign the same example, e.g. table_data_hsg1245.txt
- The idea is to obtain a table where the character to separate each of the properties in a line is " ; ". This will be particluary useful for subsequent importation to Google Docs.
- To use this script please create/take before a serie of files per group (HSGx) with this structure hsg*.list So, we can get all the groups that are using each particular dataset.


#!/bin/bash
list=$1
current=tmp_$list
table=table_$list

rm $current
rm $table

sed "s|_tid|\\n|g" $list | grep [a-z] >$current

while read line
do
   ami -v -f csv dataset info $line |
      grep \;                       |
      grep -v logicalDatasetName     >>tmp_$line

   grep $line hsg*.list |
      sed "s|_|\,\\n|g" |
      grep hsg          |
      tr ',\n' ','      |
      sed "s|,,|,|g"     >>tmp_$line

   echo ""               >>tmp_$line

   dq2-ls -f $line/             |
      grep :\                   |
      grep -v local             |
      sed "s|total size:\ ||g"  |
      sed "s|total files:\ ||g" |
      sed "s|date:\ ||g"         >>tmp_$line

   echo "<CENTER><a href=\"http://panda.cern.ch/server/pandamon/query?dataset=$line/\" target=\"_blank\">Panda Browser link</a></CENTER>" >>tmp_$line

   grep . tmp_$line |
      tr '\n' ';'    >tp_$line

   mv tp_$line tmp_$line

   sed "s|Flags;|Flags,|g" tmp_$line |
      sed "s|True;|True,|g"           > tp_$line

   mv tp_$line tmp_$line

   cat tmp_$line >>$table
   echo "      " >>$table

   rm tmp_$line
done < $current

Edit | Attach | Watch | Print version | History: r3 < r2 < r1 | Backlinks | Raw View | WYSIWYG | More topic actions
Topic revision: r3 - 2014-10-19 - ArturoS
 
    • Cern Search Icon Cern Search
    • TWiki Search Icon TWiki Search
    • Google Search Icon Google Search

    Main All webs login

This site is powered by the TWiki collaboration platform Powered by PerlCopyright &© 2008-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
or Ideas, requests, problems regarding TWiki? use Discourse or Send feedback