public:grid:troubleshooting

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
public:grid:troubleshooting [2010-11-24 08:31] Marcel Loosepublic:grid:troubleshooting [2017-03-08 15:27] (current) – external edit 127.0.0.1
Line 49: Line 49:
 </code> </code>
 This is unfortunate, because it makes testing of scripts on a local system more difficult. Simply changing the URI from ''%%srm://%%'' to ''%%file:///%%'' doesn't work. This is unfortunate, because it makes testing of scripts on a local system more difficult. Simply changing the URI from ''%%srm://%%'' to ''%%file:///%%'' doesn't work.
 +
 +
 +== srmls ==
 +The ''srmls'' command does not support wildcards. This is quite irritating, because you have to do the filtering on the client side using ''grep''. For example, to get a list of all the ''L2009_*.tar'' files in the directory ''/data/lofar/lotest/disk/'', you would have to use:
 +<code>
 +$ srmls srm://srm.grid.sara.nl:8443/pnfs/grid.sara.nl/data/lofar/lotest/disk/ | grep '/L2009_[^/]*\.tar'
 +</code>
 +This, however, will not always give you a complete list, because storage systems like dCache limit the number of listed files to 1000. So, if you have more than 1000 files in a directory, you'll have to use ''srmls'' multiple times in conjunction with the options ''-offset='' and ''-count=''. Very inconvenient!
 +
  • Last modified: 2010-11-24 08:31
  • by Marcel Loose