Table of Contents
The command /opt/d-cache/srm/bin/srm is used to access the SRM functionality as a client tool, the following sections are all wrappers around this application.
export SRM_PATH=/opt/d-cache/srm $/opt/d-cache/srm/bin/srm \ -copy \ -webservice_protocol=httpg \ -x509_user_proxy=/tmp/x509up_u27529 \ file:////usr/lib/X11/rgb.txt \ srm://dev07.gridpp.rl.ac.uk:8443/pnfs/gridpp.rl.ac.uk/data/dteam/test002 $echo $? 0
srmcp is basically a copy command. The user is able to specify the protocol to be used (http/https/httpg) where the file is and where it is being copied to. In this example we also specify where our grid proxy certificate is located, however most systems will not need this as the X509_PROXY_CERTIFICATE variable will be set by the system.
srmcp -x509_user_proxy=/tmp/x509up_u15155 -webservice_protocol=http\ file:////tmp/test2 \ srm://se.epcc.ed.ac.uk:8443/pnfs/epcc.ed.ac.uk/data/aearl/test11
This command is used to find out metadata such as ...
srm-get-metadata -x509_user_proxy=/tmp/x509up_u15155 \ srm://se.epcc.ed.ac.uk:8443/pnfs/epcc.ed.ac.uk/data/aearl/test11
FileMetaData(srm://se.epcc.ed.ac.uk:8443/pnfs/epcc.ed.ac.uk/data/aearl/test11)= FileMetaData SURL :srm://se.epcc.ed.ac.uk:8443/pnfs/epcc.ed.ac.uk/data/aearl/test11 size :0 owner :503 group :503 permMode :420 checksumType :adler32 checksumValue :1 isPinned :false isPermanent :true isCached :true
Users are not able to directly delete files in Dcache for a variety of reasons. The Advisory Delete command indicates to the system that the user has finished with the file and that it can be reclaimed if no other user requires it.
/opt/d-cache/srm/bin/srm-advisory-delete \ -webservice_protocol=httpg \ -x509_user_proxy=/tmp/x509up_u27529 \ srm://dev07.gridpp.rl.ac.uk:8443/pnfs/gridpp.rl.ac.uk/data/dteam/filler_test20050819140149610649000