SDM
People Publications Projects

SRM-DIR: BeStMan SRM-Client Tools User's Guide

Usage

Options

-authid <string>
  • Authorization ID to be used in SRM for the request
-conf <path>
  • Path to the configuration file.
  • Command line options will override the options from conf file
-connectiontimeout <int>
  • enforces http connection timeout in the given seconds.
  • Default=1800
-count <int>
  • Specifies count for LS in case there are too many listing
  • Default=0
-debug
  • Specifies debugging output
  • Default=false
-delegation <true¶false>
  • Force proxy delegation.
  • When not provided, srm-dir makes no delegation by default, and automatically handles proxy delegation based on the source URLs.
  • When –delegation is provided, it forces the user choice.
-f <path>
  • Path to the xml input file containing the source url, target url information for requests with more than one file
  • Refer to the format and examples below
-filestoragetype <p ¶ d ¶ v>
  • Indicates filestorage type
  • p - Permanent, d - Durable, v - Volatile
  • No default
-fulldetailed
  • Specify to request detailed information on the source url
  • Only works with -ls
  • Default=false
-help
  • Show the help message
-log <path>
  • Specifies path to log file
  • Default=./srmclient-event-date-random.log
-ls
  • Request to browse the source url
-mkdir
  • Request to create a directory on the source url
-mv
  • Request to move a directory or a file from source url to target url
-numlevels <int>
  • Specifies the number of levels of recursiveness in LS
  • Default=1
-offset <int>
  • Specifies offset for LS in case there are too many listing
  • Default=0
-proxyfile <path>
  • Path to user grid proxy
-quiet
  • Suppress output in the console.
  • This option writes the output to the log file.
  • Default=false
-recursive
  • Specifies recursive listing with -ls option
  • Specifies recursive removal of an empty directory with -rmdir option. To specify a selective removal of empty directories, the list needs to be specified in the input file, not in the command line option.
  • Default=false
-renewproxy
  • Enables automatic proxy renewal upon expiration
  • Works only when -usercert and -userkey are provided
  • Prompts for the pass phrase
  • Default=false
-report <path>
  • Specifies path to full report output.
-rm
  • Request to remove a file on the source url
-rmdir
  • Request to remove the directory on the source url
-s <source_url>
  • Source URL
-serviceurl <endpoint>
  • Full web service endpoint
  • Required when source url or target url does not contain web service endpoint information
-sethttptimeout <int>
  • set client-side http connection timeout in the given seconds.
  • Default=600
-status <request_token>
  • Specifies request token for checking the status of LS when SRM returned a request token
-statusmaxtime <int>
  • Max time before status checks get timed out, in seconds
  • Default=600
-statuswaittime <int>
  • Wait time delay between status check, in seconds
  • Default=30
-storageinfo <string>
  • extra storage access information
  • For BeStMan supporting MSS, a formatted input separated by comma is used with following keywords when necessary: for:<source¶target¶sourcetarget>,login:<string>,passwd:<string>,projectid:<string>,readpasswd:<string>,writepasswd<string>
-t <target_url>
  • Target URL
-td <target_url>
  • Target URL as directory path
  • Required for multiple “get” file requests if input file does not contain the target information.
  • When both target information in the input file and –td option are provided, command line option –td will take priority and information in the input file will be ignored.
-usercert <path>
  • Path to user grid certificate
-userkey <path>
  • Path to user grid certificate key
-xmlreport <path>
  • Specifies path to short output report in XML format.

Notes

Input file format



  
    Source_URL
    Target_URL




  
    srm://bestman.lbl.gov:8443/srm/v2/server?SFN=/mydir/mypath/myfile
  



  
    srm://bestman.lbl.gov:8443/srm/v2/server?SFN=/mydir/my.source.file
    srm://bestman.lbl.gov:8443/srm/v2/server?SFN=/mydir/my.target.file
  

Examples

Browse anSURL

Make a directory

Remove an empty directory

Remove a file

Move an SURL to another SURL

Troubleshooting

See Also