Chapter 3: HSI Commands
|
An HSI request is entered in response to the question mark (?) prompt. The basic format for all HSI requests is
Detailed descriptions of all commands, parameters, and keywords are presented alphabetically in Chapter 8: HSI Commands, Keywords, and Parameters
[ PAGE TOP ]
The following general rules apply to the HSI request format.
The exclamation (!) character has special meaning when it is the first non-whitespace character of the command, as described in Request Format above. It causes the remainder of the command line to be issued as a local command.
Some of these characters have special meanings in HSI commands or on worker operating systems and care should be taken in their use. See the table in Commands in this section for the meanings of special characters in HSI requests.
Example: continuing a request line
Note that HSI will issue a continue prompt ("[CONTINUE]:" by default) at the beginning of the continued input line. You can then continue your request. If you are not using a system which has type-ahead buffers, you must wait for the prompt before entering any input on a line, even if the line is a continuation. When you have completed the continued line, HSI will execute the entire input and then respond. The following table lists special characters along with a description of their meanings in HSI requests.
| Character | Description |
| ; | The semicolon separates HSI requests on the same line. |
| ( ) | Parentheses enclose multiple values that are assigned to a single keyword. |
| - | When used as the value of a keyword (e.g. DIR= -), a minus sign indicates the system default is to be used rather than any user-defined value. |
| - | When used as a path parameter, a minus sign specifies that the path stored in DIR0 is to be used. |
| - | When used in commands which support options (e.g., ls), a minus sign is used as a prefix for option strings. |
| - | Used to designate the beginning and end range of wild card characters when the range is enclosed in square brackets. |
| <- | When used as a keyset parameter, a minus sign specifies that the default value is to be used as the keyset name. |
| < > | Less-than and greater-than symbols delimit a comment contained in a request line. |
| : | A colon associates a localfile with a HPSS path. For example, save a : b specifies that the localfile "a" is to be saved on HPSS using the name "b." get a : b copies the HPSS file "b" to the local file "a." Note: The path on the left side of the " : " separator is always local to the client, and the path on the right side of that separator is within HPSS. Note: As of HSI version 2.4, the colon character must be surrounded by whitespace; if not, then the colon will be considered to be part of the HPSS pathname. Earlier versions of HSI did not require whitespace, but this led to ambiguities in the way that pathnames containing colon characters were parsed. |
| ' | The prime notation (n') specifies the DIRn working directory to be used where n is a number from 0 to 9. |
| / | A slash is the first character of a complete path and precedes each node that is part of a path. |
| ? | A question mark is used as a wild card character in paths to replace any single character. |
| * | An asterisk is used as a wild card character in paths to replace any string of zero or more characters. |
| ^ | A caret is used as a wild card character to provide a "not" operation on a wild path. |
| [ ] | Square brackets are used to select one wildcard character in paths. A list of characters in brackets, [2468], or a range of characters in brackets, [a-f], represents one character in a wild card path. |
| { } | Curly braces are used to specify a comma-separated set of wildcard patterns in paths. |
[ PAGE TOP ]
Click here to see a list of the HSI commands, organized by function. Click here to see an alphabetically organized list of commands with detailed descriptions.
[ PAGE TOP ]
| path | a sequence of HPSS node names, which can be preceded
by a slash (/) that identifies the specific node to be operated on
by the command. It has the general form of [drive:]/directory/subdirectory/file..
The logical drive: prefix is only used with the non-DCE version of HSI,
and is used to specify the HPSS connection to be referenced. Note: At NERSC, the drive prefix can be used in multiple-connection commands referencing both NERSC HPSS systems, as well as in multiple-conection commands involving both NERSC and other HPSS sites outside of NERSC. See Section 5, Path Definition and Chapter 7 Working With Multiple HPSS Systems |
| localfile | the name of a file on your computer. Local file
names must conform to the length and character set allowed by your
operating system. If the command requires a localfile and it is not
explicitly input, HSI will use a localfile with the same name as the
last node name of the request path. Note: HSI's behavior in response to specifying or leaving blank either of the paths may be unexpected; for instance, longer file names are possible in HSI than in Unix, so name truncation can occur for local files. Be cautious in specifying file transfers, to avoid inadvertent file overwriting. See Defining Local Files to HSI in Section 5. |
| keyset | the name of a keyset that you want to KEEP, ADOPT, SHOW, or FREE. A keyset is a collection of keyword values. See Keysets later in this section. |
Multiple parameters can appear with most commands and are separated by blanks. See Section 7, Commands, Keywords, and Parameters, for a detailed description of each parameter.
[ PAGE TOP ]
Note: The copies keyword has effects only where local implementations allow it; in particular, it has no effect on NERSC HPSS systems.
Values are assigned to keywords using the following form:
| set | dir | = | /usr/local/bin/graphics/ncar |
| (command) | (keyword) | = | (value) |
This page summarizes keywords by function.
[ PAGE TOP ]
The collection of all keywords with their assigned values is called a keyset. Knowing how to work with keysets can make entering HSI requests faster and more efficient. There are two kinds of keysets: active keysets and saved keysets.
When you start HPSS, all the keyword values of the active keyset are initialized to signon defaults, most of which are null (empty). The default value for each keyword is stated in the description of the keyword in Section 7, HSI Commands, Keywords, and Parameters and in the table at the end of this section. To display the current values of the active keyset, use the SET command. To display the current value of a specific keyword, use the SET command with the standalone keyword. To save the values of an active keyset, use the KEEP command.
Request processing looks first in the request for applicable keywords and then looks in the active keyset for any remaining applicable keywords. For example, the following request will save two copies of the file, AFILE. The directory and all other values applicable to SAVE will be taken from the active keyset. If the copies= keyword had not been specified, then HSI would save one copy, unless the active keyset value had been changed by an earlier command.
save afile copies=2
Note: The copies keyword has effects only where local implementations allow it; in particular, it has no effect on NERSC HPSS systems.
Saved keysets contain keyword values that become active only when you use the ADOPT command. Adopting a keyset allows you to re-establish your own pre-set collection of default keyword values.
In the following example, the active keyset is saved under the name "mykeyseta."
keep mykeyseta
You can also store a saved keyset that uses your userid for its name by simply using the KEEP command with a "-" parameter. Access this keyset by using the ADOPT command, again with a "-" parameter.
[ PAGE TOP ]