Using the command line download manager

Generate a key file

You need to generate a key file to authenticate yourself to the server. To do this simply click on this link:

Generate Key File

You will need to login with your SLAC username/password if you have not already done so. Save the downloaded key file as ~/.downloadManager/glastKeyFile. Remember to set the permissions on the file/directory so it can only be read by the user who will run the command line download manager.

Download the launcher jar file.

Store it anywhere you like.

Make sure you have a suitable version of Java installed

java -version

You need version 1.5 or greater.

Run the download manager

From the directory where you save launcher.jar issue the following command.

java -jar launcher.jar --folder=/Data/Flight/Level1/LPA --group=FT1 --destination data/FT1

The full list of arguments supported is:

 -destination,--d <arg>   Destination folder
 -folder,--f <arg>        Folder to download
 -group,--g <arg>         Group to download
 -help,--h                Display usage information
 -keyFile,--k <arg>       File containing download key
 -nDownloads,--n <arg>    Number of simultaneous downloads
 -q,--quiet               Turn off informational messages
 -runMax <arg>            Maximum run number
 -runMin <arg>            Minimum run number
 -x,--debug               Turn on debug output

Notes:

  • We should add more options, to support MET ranges and full data catalog meta-data search
  • The download manager checks if the files to be downloaded already exist. If so they will not be downloaded again. If a newer version exists it will replace the existing version (and the existing version will be renamed *-old-n)
  • No labels