View Source

h1. Using the command line download manager

h2. 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|http://glast-ground.slac.stanford.edu/DataCatalog/keyGen]

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.

h2. Download the [launcher jar file|^launcher.jar].

Store it anywhere you like.

h2. Make sure you have a suitable version of Java installed

java -version

You need version 1.5 or greater.

h2. Run the download manager

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

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

The full list of arguments supported is:

{noformat}
-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
{noformat}

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)