6. SIETS Console

This section describes the SIETS console and related principles that must be understood before working with it, and contains step-by-step instructions for running the SIETS console.

This section contains the following topics:

6.1. Overview

SIETS console is a simple text application for accessing the SIETS server directly using SIETS API.

The following steps provide a general description of how the SIETS server is accessed using the SIETS console:

  1. Users enter command prompt commands for the SIETS server directly through the SIETS console, which is run from the.

  2. The SIETS console submits each API command to the SIETS server.

  3. The SIETS server responds by returning XML replies to the SIETS console, which are dumped on the command prompt screen.

Generally, in the SIETS console, the API command is entered as the command name followed by it’s parameters in predefined order, and the reply is returned as XML replies described in SIETS API Specification.

Command’s parameters correspond to tag names in API XML requests and names of HTTP GET/POST parameters.

6.2. Parameters

Each SIETS API command parameter has a name. Some command parameters have default values, and some do not. When executing a command, if the parameter value is not set, the SIETS console takes the default value, or, if the parameter does not have the default value, it asks for the value interactively by displaying the parameter name and the equal sign =.

6.3. SIETS Console Parameters

In the SIETS console you do not need to run the session initiation function. The session is initiated already when you run the SIETS console. However, you have to set the SIETS console parameters, which are the same as for the session initiation function plus the encoding parameter:

Title

Description

host

SIETS server IP address or a host name.

storage

SIETS storage name.

user

User name.

password

User password.

timeout

Function timeout period. If the function is not executed during this predefined timeout period, the command returns the error.

encoding

Character encoding of input data and reply.

Note: The textual data must comply with the encoding defined in a function parameter, or else the system returns a parsing error.

Note: The terminal that you are using to access the SIETS console must be configured for the encoding you have set, and it must be capable to display all characters of the encoding, or else, some characters may not be displayed correctly.

If these parameters are not set when starting the SIETS console, the SIETS console asks for them interactively by displaying the parameter name and the equal sign = when executing the first function.

When calling the SIETS console, these parameters are set as options, for example, -u. When already working in the SIETS console, these parameters are set as parameter names, for example, user.

The SIETS console parameters can be changed in any time when running the SIETS console.

6.4. Templates

For each function there is a template that can be viewed before executing the function to ensure that all parameters are set. A function template contains the syntax of the SIETS API command and its parameters, and the corresponding XML request syntax of the corresponding command.

6.5. Built-in Commands

There are the following built-in commands in the SIETS console:

Title

Parameter

Description

help

Displays the list of built-in commands and their descriptions and the list of templates.

echo

<SIETS console parameter name>

Prints the SIETS console parameter value.

show

<function name>

Prints the template of the function.

exit

Exits the SIETS console.

6.6. Running SIETS Console

To run the SIETS console, proceed as follows:

  1. Login to the computer directly, using Telnet, or secure shell, where the SIETS server is installed.

  2. To start the SIETS application, enter the following command with the options, which each corresponds to the SIETS console parameter:

  3. sietsco -h <SIETS server IP address or a host name >, -p <SIETS server port number>, -s <SIETS storage name>, -u <user name>, -w <user password>

    Note: You can skip the options, however, if the SIETS console parameters are not set when starting the SIETS console, the SIETS console asks for them interactively by displaying the parameter name and the equal sign = when executing the first function.

  4. Start executing SIETS API commands. To view the function syntax, run the built-in command show described in Built-in Commands.

  5. There are the following two syntaxes for executing the SIETS API commands from the SIETS console:


PreviousTopNext