Purdue CMS
Commands to Operate Dcache Data Print

Data at Purdue can be accessed from dcache.rcac.purdue.edu with a valid grid certificate. The
operation commands are as follows. To be able to use them, you should have a valid grid proxy.

 

Get data information:
 

srm-get-metadata srm://dcache.rcac.purdue.edu:8443
/srm/managerv1?SFN=/store/mc/2006/12/21/mc-physval-120-
SingleMuPlus-Pt100/0000/16C04DD5-B596-DB11-
802F-00096B005334.root

 

Create a user directory at dCache:
 

srmmkdir -2 srm://dcache.rcac.purdue.edu:8443
/srm/managerv2?SFN=/store/user/<username>/<directoryname>

 

Delete an empty user directory at dCache:

srmrmdir -2 srm://dcache.rcac.purdue.edu:8443/srm/managerv2?SFN=/store/user/<username>/<directoryname> 

 

Copy data from local to dCache:
 

srmcp -2 file:////tmp/test.root srm://dcache.rcac.purdue.
edu:8443/srm/managerv2?SFN=/store/user
/<username>/test.root

or 

srmcp -2 -protocols=gsiftp -debug=true
file:////tmp/test.root `curl 'http://t2.unl.edu/phedex/tfc/map
/T2_US_Purdue?lfn=/store/user/<username>
/test.root-srmv2&protocol=srmv2' 2>/dev/null`

 

Delete data from dcache (only apply to user data):
 

srmrm -2 srm://dcache.rcac.purdue.edu:
8443/srm/managerv2?SFN=/store/user/<username>
/test.root

 

List dcache data directory:
 

srmls -2 srm://dcache.rcac.purdue.edu:8443/srm/managerv2?SFN=/store
/user/<username>

 

 Copy data from castor to dCache:

lcg-cp --vo cms gsiftp://castorgrid.cern.ch/castor/cern.ch/user/(letter)/(UID)/test.root gsiftp://dcache-02.rcac.purdue.edu:2811/store/user/<username>/test.root

 

Copy data locally (no need of the grid proxy):
 

dccp dcap://dcache.rcac.purdue.edu:22125
/pnfs/rcac.purdue.edu/data/store/mc/2006/12/21
/mc-physval-120-SingleMuPlus-Pt100/0000/
16C04DD5-B596-DB11-802F-00096B005334.root /tmp/test.root

 

 

 
< Prev   Next >

 

 

Utilization
1516 jobs running
Total: 1728 job slots
Jobs running: 1516
Jobs queued: 8
dCache
40% utilization
Total: 455 TB
40% Used, 60% Free

This site, and the work it describes, is primarily funded by a grant from the National Science Foundation (NSF).