SAND CDBMS Administration Guide
The SAND Enterprise Service Scripting Language

 

x
Chapter Index
Next Topic:
Basic Operations

 

SAND Enterprise Scripting Clients


There are two programs that can be used to execute SAND Enterprise Service script commands: sescmd (Windows: sescmd.cmd ), which permits execution of scripts comprising one or more commands, and sesop (Windows: sesop.cmd), which is intended for interactive execution of single commands.


sescmd

The sescmd command connects to the SAND Enterprise Service and establishes an environment for execution of the SAND Enterprise script commands described below.

Syntax:

sescmd [-hostname host-name] [-port port-number] [-domain domain-name] [user-name[/password]] < script-file [> output-file]


Parameters:

host-name Network ID name of the computer on which the SAND Enterprise Service is running
port-number Port on which the SAND Enterprise Service is set to listen
user-name A valid user on host-name; this account will be used to administer the service
domain-name Windows network domain to which user-name belongs; if the network does not support domains, this can be omitted
script-file Name of a file containing SAND Enterprise Service script commands
output-file Name of an optional file to which SAND Enterprise Service output will be written

If the command is issued with no connection parameters, sescmd will attempt to connect using previously specified connection information in the following way:

Once a connection to the SAND Enterprise Service has been successfully established, sescmd will execute the commands contained in the specified script file. Sescmd writes program output to stdout, and this output can be redirected to a file using the standard redirection operator ( > ).

Note:
In SAND Enterprise Service scripts, the number sign ( # ) indicates that the line following is a comment.

If a connection is not successfully established by means of the sescmd command, the CONNECT command can be used to connect to the SAND Enterprise Service.


sesop

The sesop command connects to the SAND Enterprise Service using the saved connection parameters previously specified with sescmd, executes a specified command, then automatically disconnects. If no connection parameters have been previously saved, an error will be returned when executing sesop.

Syntax:

sesop command

 

x
Chapter Index
Next Topic:
Basic Operations