User Tools

Site Tools


grid:findongrid

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
grid:findongrid [2009/07/29 16:41] abuechlegrid:findongrid [2010/01/27 16:17] (current) abuechle
Line 1: Line 1:
 +
 ===== Where are the output files (on which SE)? ===== ===== Where are the output files (on which SE)? =====
 in Ganga when the job has completed do: in Ganga when the job has completed do:
 <code> <code>
-jobs(jobnumber).subjobs(subjobnumber).backend.getOutputDataLFNs()+jobs(jobnumber).subjobs(subjobnumber).backend.getOutputDataLFNs().getReplicas()
 </code> </code>
-that gives you a logical filename (LFN):+that gives you a logical filename (LFN) in the first part:
 <code> <code>
-['/lhcb/user/myInitial/myUsername/diracSlice/DiracJobID/filename.root']+{'/lhcb/user/a/abuechle/7164/7164556/minbiasMC09_35TeV_25Jan10.root': {'CERN-USER': 'srm://srm-lhcb.cern.ch/castor/cern.ch/grid/lhcb/user/a/abuechle/7164/7164556/minbiasMC09_35TeV_25Jan10.root'}}
 </code> </code>
 +The LFN is then '/lhcb/user/a/abuechle/7164/7164556/minbiasMC09_35TeV_25Jan10.root'.\\
 The data will end up in the SE closest to the location where your job did run.\\  The data will end up in the SE closest to the location where your job did run.\\ 
-To find out on which SE your file actually is, execute the following commands on lxplus:+The command also tells you on which SE your file is in the second part. So the file is on CASTOR at at the srm address: srm:%%//%%srm-lhcb.cern.ch/castor/cern.ch/grid/lhcb/user/a/abuechle/7164/7164556/minbiasMC09_35TeV_25Jan10.root.  
 + 
 +===== How to get the status of a storage element (SE)? ===== 
 +If you want to know the status of the SE on PIC for example do the following on lxplus:
 <code> <code>
 SetupProject Dirac SetupProject Dirac
-dirac-dms-lfn-replicas /lhcb/user/myInitial/myUsername/diracSlice/DiracJobID/filename.root+dirac-dms-show-se-status | grep PIC
 </code> </code>
-there you get back for instance the following: 
-<code> 
-2009-07-29 12:10:41 UTC dirac-dms-lfn-replicas.py/DiracAPI  INFO: Replica Lookup Time: 96.89 seconds 
-{'Failed': {}, 
- 'Successful': {'/lhcb/user/a/abuechle/4125/4125675/bsKK_23July09.root': {'RAL-USER': 'srm://srm-lhcb.gridpp.rl.ac.uk/castor/ads.rl.ac.uk/prod/lhcb/user/a/abuechle/4125/4125675/bsKK_23July09.root'}}} 
-</code> 
-so the file is on RAL at at the srm address: 'srm://srm-lhcb.gridpp.rl.ac.uk/castor/ads.rl.ac.uk/prod/lhcb/user/a/abuechle/4125/4125675/bsKK_23July09.root'. 
- 
grid/findongrid.1248878460.txt.gz · Last modified: 2009/07/29 16:41 by abuechle