Installing and Configuring Remote Subroutine Server

The Remote Subroutine Server (also known as LRSS) enables Debugger to call subroutines from host Runtime platforms.

There are two methods of installing Remote Subroutine Server:

Independent Installation

To install the Remote Subroutine Server, enter the following command:

 START NGEN28/SAMPLE/LRSS/INSTALL ("usercode","packname")

The location of the files is based on the current directory. A Usercode and Pack name might be provided as optional parameters to the install job.

The install job performs the following:

Alternatively, the installation can be performed manually. Use the following commands from the system console or a suitably privileged station:

  1. To register Remote Subroutine Server as a DSS provider enter the following command:

     NA LOAD COMMANDS LRSS/DSS/REGISTER
  2. To map Support Library (SL) function names for Remote Subroutine Server enter the following command:

     SL LRSSSUPPORT= SYSTEM/LRSS/SUPPORT: TRUSTED, LINKCLASS= 1
     SL LRSSPDUSUPPORT= SYSTEM/LRSS/PDUSUPPORT: TRUSTED, LINKCLASS= 3

Note: Usercode and Pack names might need to be inserted into the above commands as applicable.

Configuration

To configure Remote Subroutine Server you need to set the options in the configuration file that is read at startup. The file is at LRSS/CONFIG and all options have default settings, so users only need to change them if the need arises.

The options are:

 PORT =
<Integer, 0 to 65535, default 6004>
 CONNECTIONS =
<Integer, 1 to 4000, default 12>
 MAXOFFER =
<Integer, 1 to 99, default 1>
 INACTIVITY =
<Integer, 1 to 1440, default 10 minutes>
 TIMEOUT =
<Integer, 1 to 1440, default 60 minutes>
 ERRORS =
<File name, default LRSS/ERRORS>
 TRACE =
{ON | OFF (default) [[TO] <File name, default LRSS/TRACE/#>]}

These options are:

Operations

Remote Subroutine Server can be controlled through the Network Application (NA) interface. You can start, stop, show status or change trace options. These commands are:

Action

Command

Start

NA LRSS +

Stop

NA LRSS -

Show Status

NA LRSS STATUS

Trace

NA LRSS TRACE [ON | OFF | Release]

When the Release option is used on the trace command, the existing trace file is closed and a new trace file is opened with an increment to the numerator portion of the trace file title.

If Remote Subroutine Server is not running, it starts automatically when an incoming connection is attempted on the port service number registered through DSS for Remote Subroutine Server.

Monitoring

A facility exists in Remote Subroutine Server to monitor remote method calls made from its clients. The monitor facility is programmatically interfaced and provision is given to veto any remote procedure calls at hand.

Monitoring depends on the entry point within a user written application. For the monitor to work a Support Library (SL) named LRSSMONITOR must exist. This SL is checked for at startup.

The entry point is described, and an example given, in the sample source file LRSS/MONITOR.