katilp / sandbox

My trials
0 stars 0 forks source link

Notes: checksum and size for "files" on the portal #28

Open katilp opened 5 years ago

katilp commented 5 years ago
setenv EOS_MGM_URL root://eospublic.cern.ch

eos find --xurl --size --checksum /eos/opendata/cms/validated-runs/Commissioning10/

Output:

path=root://eospublic.cern.ch//eos/opendata/cms/validated-runs/Commissioning10/Commissioning10-May19ReReco_7TeV.json size=609 checksum=8bd78053
path=root://eospublic.cern.ch//eos/opendata/cms/validated-runs/Commissioning10/Commissioning10-May19ReReco_900GeV.json size=125 checksum=8e7b1ad8
root://eospublic.cern.ch/path=/eos/opendata/cms/validated-runs/Commissioning10/

The resulting json snippet can be produced by Tibor's script (to be committed)

 "files": [
    {
      "checksum": "adler32:8bd78053", 
      "size": 609, 
      "uri": "root://eospublic.cern.ch//eos/opendata/cms/validated-runs/Commissioning10/Commissioning10-May19ReReco_7TeV.json"
    }, 
    {
      "checksum": "adler32:8e7b1ad8", 
      "size": 125, 
      "uri": "root://eospublic.cern.ch//eos/opendata/cms/validated-runs/Commissioning10/Commissioning10-May19ReReco_900GeV.json"
    }
  ]