Difference between revisions of "HSI help"

From oldwiki.scinet.utoronto.ca
Jump to navigation Jump to search
m
Line 2: Line 2:
 
You can also type "hsi -?" to get just a command line summary
 
You can also type "hsi -?" to get just a command line summary
  
HPSS File and Directory Commands
+
== HPSS File and Directory Commands ==
 
--------------------------------
 
--------------------------------
 
get, cget, mget, recv            - Copy HPSS file to local directory
 
get, cget, mget, recv            - Copy HPSS file to local directory
Line 18: Line 18:
 
touch                            - Update last access time
 
touch                            - Update last access time
  
Local File and Directory Commands
+
== Local File and Directory Commands ==
 
---------------------------------
 
---------------------------------
 
lcd, lcdls  - Change local directory
 
lcd, lcdls  - Change local directory
Line 25: Line 25:
 
!<command>  - Issue shell command
 
!<command>  - Issue shell command
  
File Administrative Information
+
== File Administrative Information ==
 
-------------------------------
 
-------------------------------
 
chgrp  - Change group id of file or directory
 
chgrp  - Change group id of file or directory
Line 32: Line 32:
 
umask  - Set file creation permission mask
 
umask  - Set file creation permission mask
  
Storage Hiearacy Commands
+
== Storage Hierarchy Commands ==
 
-------------------------
 
-------------------------
 
lscos  - List available Classes of Service
 
lscos  - List available Classes of Service
  
Keywords
+
== Keywords ==
 
--------
 
--------
 
set, default - Change keyword value
 
set, default - Change keyword value
Line 44: Line 44:
 
BACKUP      - Keep a copy of overwritten files
 
BACKUP      - Keep a copy of overwritten files
  
Saved Keysets
+
== Saved Keysets ==
 
-------------
 
-------------
 
adopt  - Load a keyset
 
adopt  - Load a keyset
Line 51: Line 51:
 
show  - Display a keyset
 
show  - Display a keyset
  
HSI commands
+
== HSI commands ==
 
-----------
 
-----------
 
help            - Display help file
 
help            - Display help file

Revision as of 20:19, 30 April 2011

HSI HELP

You can also type "hsi -?" to get just a command line summary

HPSS File and Directory Commands


get, cget, mget, recv - Copy HPSS file to local directory put, cput, mput, replace, save, store, send - Copy a local file to HPSS cp, copy - Copy a file within HPSS delete, mdelete, erase, rm - Remove a file from HPSS ls, list - List directory pwd - Print current directory find - Traverse a directory tree looking for a file ln - Create symbolic link in HPSS mv, move, rename - Rename an HPSS file mkdir, md, add - Create an HPSS directory rmdir, rd, remove - Delete an HPSS directory cd, cdls - Change current directory touch - Update last access time

Local File and Directory Commands


lcd, lcdls - Change local directory lls - List local directory lpwd - Print current local directory !<command> - Issue shell command

File Administrative Information


chgrp - Change group id of file or directory chmod - Change permissions of file or directory chown - Change owner of file or directory umask - Set file creation permission mask

Storage Hierarchy Commands


lscos - List available Classes of Service

Keywords


set, default - Change keyword value COSLIST - COS list name to use for subsequently created files DIRn - Set working directory TALK - Turns on/off verbose mode BACKUP - Keep a copy of overwritten files

Saved Keysets


adopt - Load a keyset free - Delete a keyset keep - Save a keyset show - Display a keyset

HSI commands


help - Display help file quit, exit, end - Terminate HSI glob - Toggle wildcard expansion hash - Toggle file transfer hashmarks in - Read commands from a local file out - Write HSI output to a local file log - Write all HSI commands and responses to a local log file bell - Toggles terminal bell prompt - Toggles HSI prompting for mget, mput, and mdelete


HSI is a command driven interface to the HPSS Mass Storage System.

HSI can accept input several different ways:

 From a command line.     Example: hsi
 Single line execution.   Example: hsi "mkdir foo; cd foo; put data_file"
 From a command file.     Example: hsi "in command_file"

HSI can read from standard input and write to standard output. Command line example:

 tar cvf - . | hsi put - : data.tar
 hsi get - : data.tar | tar xvf -

Interactive example:

 put "|tar cvf - *.c"  : data.tar
 get "|tar xvf -" : data.tar

WARNING: For 'get' and 'put' operations, HSI uses a different syntax

than FTP to identify the local file name.  The syntax uses a ':' to
identify the local file name.  See section 5.8 of the online documentation
for details.  Example:  put local_file : hpss_file

Recursive operations are allowed for the following commands:

cget, chgrp, chmod, chown, cput, delete, get, ls, mdelete, mget,
migrate, mput, purge, put, rm, stage, touch

Wildcards are supported. See section 5.9 of the online documentation.

The complete HSI manual is online at http://www.mgleicher.us