The Architecta Mediaflux Client
As an alternative to pshell, you can directly use the vendor’s command line client. This may be desirable in cases where pshell does not support the full range of Mediaflux commands or command options.
Setup
Obtain the client aterm.jar from the Mediaflux server system path:
pshell> get /system/apps/aterm.jarCreate a config file eg aterm.cfg containing:
host=data.pawsey.org.au
transport=https
port=443
domain=ivec
user=<MyPawseyUsername>If you have a secure token (aka delegate) you can also add the following for password-less authentication:
token=abc123Run the client (which will prompt for your Pawsey username and password) using:
Requires Java >=1.7
java -Dmf.cfg=aterm.cfg -jar aterm.jar nogui
Example Mediaflux service calls
Get the full amount of metadata information for an asset:
aterm> asset.get :id 1234Download a file:
aterm> asset.get :id 1234 :out "myfile.zip"Upload a file:
aterm> asset.create :namespace "/projects/my project" :name "remote.txt" :in "file://home/folder/local.txt" Upload a whole local folder:
aterm> import -namespace "/projects/my project" /mnt/local/data_directory_1