LoRS Instructions - Other LoRS Commands

From ReddNet
Jump to navigation Jump to search
  1. Setting up LoRS
  2. Uploading/Downloading Files
  3. Other LoRS Commands

LoRS List

  • An interesting LoRS command is lors_ls which gives details about files uploaded to the depot from your PWD. The basic command is:
 $ ./lors_ls <filename.xnd>
  • To list all files uploaded from your PWD, use the * wildcard:
 $ ./lors_ls *.xnd
  • A sample output:
 TOOL List
 SIZE 39
 EXNODEFILE directorychange.xnd
 TITLE Filename directorychange
 MAXLENGTH 39
  0 Hrwma  1         0        39 vpac12.phy.vanderbilt.edu:6771 Fri Oct 12 16:20:11 2007
  1 Hrwma  1         0        39 vpac12.phy.vanderbilt.edu:6771 Fri Oct 12 16:20:11 2007
  2 Hrwma  1         0        39 vpac12.phy.vanderbilt.edu:6771 Fri Oct 12 16:20:09 2007
  • The details above include the read(r), write(w), and manage(m) properties, the file size (39), the depot, and the date/time when storage ends.
  • If you see this type of error, make sure you use <filename>.xnd in the command line
 Entity: line 1: parser error : Start tag expected, '<' not found
 (file contents will appear here)
 ^
 LORS_ERROR: -15

LoRS Refresh

  • lors_refresh adds storage time to an uploaded file on the depot. You can set the storage time to:
    • the depot maximum (-m)
    • a specified extension (i.e., --add=5h OR -d 5h)
    • a specified amount of time from the present (i.e., --set=10d OR -s 10d)
    • an absolute time (i.e., --absolute=<abs time> OR -a <abs time>)
  • A sample command string could look like this:
 $ ./lors_upload --xndrc dansdepot --depot-list -n -d 5m -f refresher (to upload refresher w/ 5m storage)
     (output)
 $ ./lors_ls refresher.xnd (to list the files and see when it expires)
 TOOL List
 SIZE 41
 EXNODEFILE refresher.xnd
 TITLE Filename refresher
 MAXLENGTH 41
 0 Hrwma  1         0        41 vpac12.phy.vanderbilt.edu:6771 Tue Oct 16 15:00:21 2007 
 1 Hrwma  1         0        41 vpac12.phy.vanderbilt.edu:6771 Tue Oct 16 15:00:21 2007 
 2 Hrwma  1         0        41 vpac12.phy.vanderbilt.edu:6771 Tue Oct 16 15:00:20 2007
 $ ./lors_refresh -d 1h refresher.xnd (to add 1d of storage to refresher.xnd)
 CLEAR
 TOOL Refresh
 EXNODEFILE refresher.xnd
 TITLE Filename refresher
 MAXLENGTH 41
 $ ./lors_ls *.xnd (if you want to view the new expiration time stamp)
 TOOL List
 SIZE 41
 EXNODEFILE refresher.xnd
 TITLE Filename refresher
 MAXLENGTH 41
 0 Hrwma  1         0        41 vpac12.phy.vanderbilt.edu:6771 Wed Oct 17 15:00:21 2007 
 1 Hrwma  1         0        41 vpac12.phy.vanderbilt.edu:6771 Wed Oct 17 15:00:21 2007 
 2 Hrwma  1         0        41 vpac12.phy.vanderbilt.edu:6771 Wed Oct 17 15:00:20 2007

Downloading an exnode from Lstore

  • Using lstore's --get-exnode and --show-exnode options, copy an existing exnode to a file, and place it in the LoRS directory using output redirection ( > ). Example:
 $ lstcp --get-exnode --show-exnode lstore.server.name:/home/username/filepath/filename > ~/lors/filepath/filename
  • Use the download command to download the exnode:
 $ ./lors_download -o newfilepath/newfilename filename.xnd