...
- 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!
- single file
- Some additional tasks can be done with ssh hssrv2 saminfo.sh
Task | RestAPI | ssh hssrv | saminfo.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 | saminfo.sh -f $F |
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 | |
staging | eval $CURL -X POST $SERV/request/stage?path="$F" eval $CURL -X PUT --data \'{\"path\":[$FC]}\' $SERV/request/batchstage | stage $F | saminfo.sh -s $F |
show scheduler state | eval $CURL -X GET $SERV/queues | -- | saminfo.sh -S |
|
| ||
mkdir | -- | mkdir/hs/projects/<project>/newdir | -- |
release | release $F |
| |
|
| ||
|
|