diff --git a/README.md b/README.md index 9b577b0..0a196bc 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,14 @@ # SpiderScripts -Welcome! These are a few scripts that we use at SURFsara to work with Spider. +Welcome! These are a few scripts that we use at SURF to work with Spider. -## Ada -Ada stands for "Advanced dCache API". It is a client that talks to the dCache storage system API to get all kinds of information like directory listings and file checksums, and to do things like renaming, moving, deleting, staging (restoring from tape), and subscribing to server-sent-events so that you can automate actions when new files are written or files are staged. Ada does not transfer files; we suggest you use Rclone (https://rclone.org/) for that. +## ADA +ADA stands for "Advanced dCache API". It is a client that talks to the dCache storage system API to get all kinds of information like directory listings and file checksums, and to do things like renaming, moving, deleting, staging (restoring from tape), and subscribing to server-sent-events so that you can automate actions when new files are written or files are staged. ADA does not transfer files; we suggest you use [Rclone](https://rclone.org/) for that. + +ADA is pre-installed on Spider. If you want to use ADA elsewhere, you can clone this repository. + +For an overview of the commands and options, run: +``` +ada --help +``` + +Read further how to use ADA in the [Spider Documentation](https://doc.spider.surfsara.nl/en/latest/Pages/storage/ada-interface.html). \ No newline at end of file diff --git a/ada/ada b/ada/ada index fdcdf44..f1d383c 100755 --- a/ada/ada +++ b/ada/ada @@ -61,10 +61,12 @@ usage() { If no authentication method is specified, \$BEARER_TOKEN is used if it exists. Commands: - --help Show this helptext. + --version + Show version number. + --whoami Show how dCache identifies you. @@ -281,6 +283,10 @@ while [ $# -gt 0 ] ; do --help | -help | -h ) usage ;; + --version ) + git describe --tags --abbrev=0 + exit 1 + ;; --tokenfile ) auth_method=token tokenfile="$2"