Using the command line

You can use the command line to send predefined commands to the application server. Use of the command line is intended as an alternate method of performing some of the functions using the Infor SAT application.

You can complete these tasks using the command line:

  • Start the specified server.
  • Stop a specified server.
  • Start the client server.
  • Start or stop a background process.

The table lists the variables for the command line interface arguments:

Argument Description
host port

The name or IP address of the host system where the application server is located and the TCP/IP port on which the application server is listening.

The value is a concatenation of the host name and the port number with a colon (:) as the delimiter.

For example, the value for an Application Server running on a host machine named terra and listening on port 7001 is terra:7001.

command

An indicator of the command sent to the Application Server.

These commands are sent to the application server:

  • -s: Shut down the server specified in the host-name parameter.
  • -t: Reload the user and corporate data cache of all the servers connected to the same database as the application server.
  • -u: Reload the user cache of all the servers connected to the same database as the application server.
  • -c: Reload the corporate cache of all the servers connected to the same database as the application server.
  • -p: Run the background process command indicated in the parameters.
parameters

The parameters for the background process command. Only the background process command uses these parameters.

The parameters include the command implemented by the background process handler and the parameters required by the command.

These background process handler commands are available:

  • start: The background process starts.
  • parameter: The name of the background process.
  • stop: The background process stops.
  • parameter: The name of the background process.

The application server reads the parameters as data and the parameters are moved to the background process handler.

This is an example of the command in the batch file that reloads the user and corporate data cache of all the servers.

Note: The directory for the jre and the classpath are not displayed in this example because the directory is based on the installation.

jre -classpath classpath largesoft.db.CmdInterface t3://terra:7001 -s

The classpath must be similar to the classpath of the client and the Infor SAT startup batch files or shell scripts.

Note: You must specify the command in a continuous line without breaks.