The SYSRPC utility provides the server execution commands ping and terminate. They are used to control active servers that have been defined in the service directory. The ping command sends an internal message to the server to verify a server connection. Terminate either sends an internal message to the server requesting termination of a single server task, or issues a command to EntireX Broker requesting termination of all server tasks associated with an EntireX Broker service.
The server execution commands reference the service directory in
the library that is defined with the RPCSDIR
profile
parameter (see the Parameter Reference documentation). If
RPCSDIR
is not set (this is the default), the library
where you are currently logged on is used. The name of the library is indicated
in the root node of the service directory tree view.
This section covers the following topics:
The ping and terminate commands invoke the Message Display window. This window provides the columns Message, Node and Server that display the message returned from the server and the name of the node and the server selected as indicated in the following section.
The following section provides instructions for pinging an RPC server by using menu functions.
For an alternative method of pinging an RPC server, see the Application Programming Interface USR2073N described in the Natural RPC (Remote Procedure Call) documentation.
To ping a server
In the Service Directory tree view, select a server or a node and choose Ping from the context menu.
Or:
Choose CTRL+F9.
Or:
Choose the following toolbar button:
Selecting an EntireX Broker node will ping all servers that belong to this node.
The Message Display window appears and displays the physical names of the node(s) and server(s) and the message returned from the server(s).
If the pinged server(s) are active, the server(s) return the message:
Server version on operating system
where Server denotes the type of server;
version
denotes the version of the server;
operating system denotes on which operating
system the server runs.
Example message: Natural RPC Server 8.3.7.0 on
WNT-x86.
The SYSRPC utility provides two commands to terminate a server: Terminate Server and Terminate EntireX Broker Service.
Terminate Server terminates a single server task by sending an internal message to the server. If a server is associated with multiple server tasks (including replicas on mainframe platforms), you can either terminate each server task separately by using Terminate Server, or terminate all server tasks in one go by using the Terminate EntireX Broker Service command.
Terminate EntireX Broker Service terminates all
server tasks associated with an EntireX Broker service by calling EntireX
Broker's Command and Information Services (ETBCIS; for details, see the EntireX
documentation). The term service
here summarizes all server tasks
that run with the same server name on the same or on different platforms.
The following section provides instructions for terminating a single server task or an EntireX Broker service by using menu functions.
For alternative methods of terminating servers, see Using Application Programming Interface USR2073N and Using Application Programming Interface USR2075N in Terminating a Natural RPC Server in the Natural RPC (Remote Procedure Call) documentation.
To terminate a single server task
In the Service Directory tree view, select a server node and choose Terminate Server from the context menu.
The Message Display window appears with the name of the node and the server, and the message returned from the server.
If a server is terminated, the server returns the following message:
Terminating Server version on operating system
where Server denotes the type of server;
version
denotes the version of the server;
operating system denotes on which operating
system the server runs.
Example message: Terminating Natural RPC Server 8.3.7.0 on
WNT-x86.
If the Logon
Option is set in the service directory, logon data (user
ID, password and library name) is sent to the server with the terminate
command, as is usual for the CALLNAT
. The Security Token
Data window pops up and requests user ID and password if no Natural
Security is installed on the client side and no logon data is set with the
Application Programming Interface USR1071N for the current Natural session.
If LOGONRQ=ON
(see also
Using Security
in the Natural RPC (Remote Procedure Call) documentation)
has been set on the server side, logon data must be sent from the client with
the terminate command.
If Natural Security is installed on the server, the logon data transferred must enable a logon to the Natural system library SYSRPC.
To terminate an EntireX Broker service
In the Service Directory tree view, select a server node and choose Terminate EntireX Broker Service from the context menu.
Or:
Choose the following toolbar button:
The SYSRPC - Terminating EntireX Broker Service dialog box appears.
If required for the logon, enter the appropriate user ID and password for EntireX Broker.
If you want to terminate server tasks that are involved in a conversation, select the Terminate immediately check box to request immediate termination. If this check box is not selected (this is the default setting), all server tasks involved in a conversation remain operational.
If you do not want this dialog box to appear repeatedly during the current SYSRPC session, choose Do not show this dialog again.
Choose OK to terminate the EntireX Broker service.
The Message Display window appears, which displays the name of the node and the server and the number of server tasks terminated.