Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • We use these file variables to provide some examples. Please note that the variable for several files have to formatted differently, depending on the preferred access method. 
    • single file
      • F=/hs/store/users/2023/2023-11-30_liegmahl/home_edvs1.tgz
    • multiple files:
      • DIR="store/users/2023/2023-11-30_liegmahl"
      • FA="/hs/$DIR/*"
      • FB="/hs/$DIR/home_edvs1.tgz:/hs/$DIR/isibhv_personal.tgz:/hs/$DIR/isipd_home_pd.tgz"
      • FC='"$DIR/home_edvs1.tgz","$DIR/isibhv_personal.tgz","$DIR/isipd_home_pd.tgz"'   # Note: "/hs/" is missing here!
  • Some additional tasks can be done with ssh hssrv2 saminfo.sh 
TaskRestAPIssh hssrvsaminfo.sh
filestat
eval $CURL -X GET $SERV/file?path="$F"
eval $CURL  -X PUT  --data \'{\"path\":[$FC]}\' $SERV/batchfile

sls -D $F$F       # use -E to show
sls -D $FA$FA    # md5 checksum

saminfo.sh -f $F
saminfo.sh -f $FB

online/offline
eval $CURL -X GET $SERV/file?path="$F" | jq -r .onlineblocks
eval $CURL  -X PUT  --data \'{\"path\":[$FC]}\' $SERV/batchfile | jq -r '.infos[] | {path, onlineblocks, error}'


saminfo.sh -o -f $F
saminfo.sh -o -f $FB

staging
eval $CURL -X POST $SERV/request/stage?path="$F"
eval $CURL -X PUT  --data \'{\"path\":[$FC]}\' $SERV/request/batchstage

stage $F
stage $FF

saminfo.sh -s $F
saminfo.sh -s $FB

show scheduler state
eval $CURL -X GET $SERV/queues

 --

saminfo.sh -S



 

 

mkdir
--

mkdir/hs/projects/<project>/newdir

--

release

release $F

release -r $DIR