Versions Compared

Key

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

Table of Contents

Note: There is no way to get a login shell on the ScoutAM servers, but you can execute certain commands. Either via a RestAPI or using ssh.

RestAPI

  • These examples use  bashcurl, and jq, feel free to use the language of your choice slightly smiling face 
  • To use the RestAPI you will need a TOKEN:
Code Block
languagebash
TOKEN=$(curl -s -k -H 'Accept: application/json' -H 'Content-Type: application/json'  -X POST --data '{"acct":"'filestat'","pass":"'filestat'"}' https://hssrv2.dmawi.de:8080/v1/security/login |  jq -r '.response')
  • The token lifespan is 24 h and not client/server dependent

ssh hssrv2 

  • You can execute (some) commands on the ScoutAM servers using ssh hssrv2 <command>

Specific taks

filestat (e.g. online/offline)

TaskRestAPIssh hssrv
filestat
Code Block
languagebash
  • stat $FILE