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.
srm-advisory-delete -x509_user_proxy=/tmp/x509up_u15155 srm://se.epcc.ed.ac.uk:8443/pnfs/epcc.ed.ac.uk/data/aearl/test11
It is out of scope to document the full functionality of Postgres to add information about Postgres. Table information is given in the following terminal dump.
#su postgres #psql dcache Welcome to psql 7.3.8-RH, the PostgreSQL interactive terminal. Type: \copyright for distribution terms \h for help with SQL commands \? for help on internal slash commands \g or terminate with semicolon to execute query \q to quit dcache=# \dt List of relations Schema | Name | Type | Owner --------+-------------------------+-------+----------- public | copyfilerequests | table | srmdcache public | copyfilerequests_b | table | srmdcache public | copyrequests | table | srmdcache public | copyrequests_b | table | srmdcache public | getfilerequests | table | srmdcache public | getfilerequests_b | table | srmdcache public | getrequests | table | srmdcache public | getrequests_b | table | srmdcache public | getrequests_protocols | table | srmdcache public | getrequests_protocols_b | table | srmdcache public | pinrequests | table | srmdcache public | pins | table | srmdcache public | putfilerequests | table | srmdcache public | putfilerequests_b | table | srmdcache public | putrequests | table | srmdcache public | putrequests_b | table | srmdcache public | putrequests_protocols | table | srmdcache public | putrequests_protocols_b | table | srmdcache public | srmnextrequestid | table | srmdcache public | srmrequestcredentials | table | srmdcache (20 rows) dcache=#