Example 1: listing files on HPSS:
- hsi -P 'cd /CCSM/csm/b40.lgm21ka.1deg.002/rest/1499-01-01-00000; ls'
- hsi -q 'cd /CCSM/csm/b40.1850.lgmco2.1deg.001/atm/hist ; ls -l' |& less
- hsi -q 'cd /CCSM/csm/b40.1850.lgmco2.1deg.001/ocn/; ls -Rl' >& doh
Example 2: retrieving files from HPSS:
- hsi -q 'cd /CCSM/csm/b40.lgm21ka.1deg.002/rest/1499-01-01-00000; get *'
hsi -q 'cd /f2/ccsm/csm/b40.1850.lgmco2.1deg.001/ocn/logs ; get *'
- hsi -q 'get /CCSM/csm/b40.6k.track1.1deg.001/atm/hist/*.tar'
- hsi -q 'cd /CCSM/csm/b40.1850.lgmco2.1deg.001/atm/hist/; get b40.1850.lgmco2.1deg.001.cam2.h0.0453.tar'
- hsi -q 'prompt; mget /CCSM/csm/b40.plio.FV1.002/atm/hist/cam2.h0' (get multiple files; prompting turned off)
Example 3: removing files from HPSS:
- hsi -q 'cd /CCSM/csm ; rm -R b40.lgm21ka.1deg.003'
Example 4: writing file to HPSS
- hsi -q 'cd /CCSM/csm/b40.lgm21ka.1deg.003/ocn/hist/; put $file'
Example 5: Check return status - hsi -q 'cd /CCSM/csm/b40.lgm21ka.1deg.002/rest/1499-01-01-00000; ls $file'
- echo $status (0 = found file)
CGD access: run kinit before hsi (UCAS password)
Checking project assignment: hsi -q 'ls -U /CCSM/csm/b30.18_0kaDVTb/atm/hist'
Notes: -P and -q are similar; -P limits the information that comes out on the screen so you can pipe to
'less'. -q allows command line editing.