next up previous contents
Next: Writing and Registering Files Up: Managing Data with edg-rm Previous: Replica Manager Configuration   Contents

Listing Directory and Files

The first test a user can perform is listing the home directory of the default SE for the user VO. Using the printInfo command, the user finds out the default SE, for example adc0021.cern.ch. Then the SE home directory is listed by:

$ edg-rm -i --vo=alice list srm://adc0021.cern.ch/
tmp
root
etc
lib
flatfiles
home
opt
usr
...........
lost+found
In the above command, the edg-rm tool options are -i for insecure and --vo for the virtual organization, the command is list and the command option is the SURL. A SURL is a URL of SRM (Storage Resource Manager) type. The SURL syntax is:

srm://DNS-node-name/optional-dir1/dir2/optional-file

As you see in the above example, the listed directory is the SE root directory.

By inspecting the printInfo output, we find out that the accesspoint for the default SE is /flatfiles/SE00 and that the VO of interest is supported by the default SE, thus in our case the default directory for SE access is /flatfiles/SE00/alice.

Now we can list the VO files as follows:

$ edg-rm -i --vo=alice list srm://adc0021.cern.ch/flatfiles/SE00/alice/
run_3.09.06_70538.log
AliITStracksV2_3.09.06_70538.root
AliITSclustersV2_3.09.06_70538.root
..............
galice_3.09.06_09005.root
galice_4.01.00_09306.root
galice_4.01.00_09305.root


next up previous contents
Next: Writing and Registering Files Up: Managing Data with edg-rm Previous: Replica Manager Configuration   Contents
luvisetto 2003-12-17