SRM-MV: BeStMan SRM-Client Tools User's Guide
- srm-mv submits file system management requests, moving a file or a directory from one to another.
Usage
- srm-mv <source_url> <target_url> [command line options]
- srm-mv -f <input_file> [command line options]
Options
- Command line options take priority from the options from conf file.
- Options in the following table are in alphabetical order
-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
|
-debug |
- Specifies debugging output
- Default=false
|
-delegation <true¶false> |
- Force proxy delegation.
- hen not provided, srm client makes no delegation by default, and automatically handles proxy delegation based on the source and target URLs.
- When -delegation is provided, it overrides the automatic handling and 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
|
-help |
|
-log <path> |
- Specifies path to log file
- Default=./srmclient-event-date-random.log
|
-proxyfile <path> |
|
-quiet |
- Suppress output in the console.
- This option writes the output to the log file.
- Default=false
|
-s <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
|
-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> |
|
-usercert <path> |
- Path to user grid certificate
|
-userkey <path> |
- Path to user grid certificate key
|
Notes
- srm client makes no proxy delegation by default, and automatically handles proxy delegation based on the source and target urls. A user can override the automatic handling by providing an option “-delegation” (or “-delegation true”) to force the delegation, and “-delegation false” to force no delegation. “-debug” option would show how the delegation is done on the output.
Input file format
Source_URL
Target_URL
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
Move an SURL to another SURL
- srm-mv srm://host:port/wsept?SFN=/source_path srm://host:port/wsept?SFN=/target_path
- This command requests to move an source SURL to a target SURL in SRM or in the file system that SRM can access to. Source and target SURLs can be directories. Click here for the sample output.
- srm-mv srm://bestman.lbl.gov:8443/srm/v2/server?SFN=/srmcache/guest/source.file srm://bestman.lbl.gov:8443/srm/v2/server?SFN=/srmcache/guest/target.file
- srm-mv srm://bestman.lbl.gov:8443/srm/v2/server?SFN=/srmcache/guest/source.dir srm://bestman.lbl.gov:8443/srm/v2/server?SFN=/srmcache/guest/target.dir
Troubleshooting
See Also