Server Command Execution

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 NTRPC/RPC keyword subparameter RPCSDIR (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 upper right corner of the Server Command Execution screen shown in the following section.

This section covers the following topics:


Using Server Command Execution

Beginn der Anweisungsliste To use Server Command Execution

  1. In the Code field of the Client Maintenance menu, enter the following command:

    XC
  2. Choose ENTER.

    The standard view of the Server Command Execution screen appears similar to the following example:

     15:16:30            ***** NATURAL SYSRPC UTILITY *****              2016-07-18
                              - Server Command Execution -         Library SAGTRPC2
    
        Cmd Node                         Server                           Message
     1      ETB045
     2   __                              NRPC001                          Natural
     3   __                              NRPC002
    
    
    
    
    Command ===>
    
    
    Enter-PF1---PF2---PF3---PF4---PF5---PF6---PF7---PF8---PF9---PF10--PF11--PF12---
          Help  ERR   Exit        -H    +H    -P    +P    TOP   BOT   <     Canc

    The standard view displays the columns Node, Server and Message. The fields under the column Message are truncated and display a maximum of 8 characters.

  3. If you choose PF11 or enter the less than (<) sign in the Command line at the bottom of the screen, the extended message view of the Server Command Execution screen is displayed similar to the following example:

     16:36:39            ***** NATURAL SYSRPC UTILITY *****              2016-07-18
                              - Server Command Execution -         Library SAGTRPC2
    
        Cmd  Server            Message
     1
     2   __  NRPC001           Natural RPC Server 8.3.7 on WNT-x86
     3   __  NRPC002           
    
    
    
    
    
    Command ===>
    
    
    Enter-PF1---PF2---PF3---PF4---PF5---PF6---PF7---PF8---PF9---PF10--PF11--PF12---
          Help  ERR   Exit        -H    +H    -P    +P    TOP   BOT    >    Canc

    The extended view allows you to display a maximum of 50 characters of message text in the Message column. This view does not display the Node column and the fields under the Server column are truncated and display a maximum of 16 characters (the standard view shows 30 characters).

    If you choose PF11 once more or enter the greater than (>) sign in the Command line, the standard view of the Server Command Execution screen is displayed again as shown in Example of a Standard View.

This section covers the following topics:

Line Commands: Server Command Execution

The line commands available on the Server Command Execution screen depend on whether they are executed on an EntireX Broker node or an RPC server. In the following table, an X indicates whether a command is available for a node.

Line Command Description Broker Server
PI Broker node: Pings all servers defined for the selected EntireX Broker.

Server: Pings the selected RPC server.

See also the SYSRPC PING direct command.

X X
TE Terminates the RPC server.

See also Terminating an RPC Server..

  X
LN Lists sequence number(s) for a selected RPC server.

You can select and terminate a server from this list. See also Terminating an RPC Server..

  X
TS Terminates the selected EntireX Broker service.   X
LS List servers registered on the selected EntireX Broker.

See also the SRVLIST direct command.

X X
IV Lists the versions of the selected EntireX Broker and its Command and Information Services (CIS) and the version of the EntireX Broker stub. X X

Pinging an RPC Server

You can ping an RPC server from the standard or extended message view of the Server Command Execution screen or by using the SYSRPC PING direct command.

For information on pinging an RPC server by using the Application Programming Interface USR2073N, see the appropriate Natural RPC (Remote Procedure Call) documentation.

The following section provides instructions for pinging an RPC server from the standard view of the Server Command Execution screen.

Beginn der Anweisungsliste To ping an RPC server from the Server Command Execution screen

  1. In the Cmd column next to the server(s) to be pinged, enter the following line command:

    PI

    as shown in the example of a Server Command Execution screen below:

     16:41:32            ***** NATURAL SYSRPC UTILITY *****              2016-07-18
                              - Server Command Execution -         Library SAGTRPC2
                                                                                   
        Cmd Node                         Server                           Message  
     1   __ ETB045
     2   PI                                NRPC001
     3   PI                                NRPC002
                                                                                
    
    
    
    Command ===>
    
    
    Enter-PF1---PF2---PF3---PF4---PF5---PF6---PF7---PF8---PF9---PF10--PF11--PF12---
          Help  ERR   Exit        -H    +H    -P    +P    TOP   BOT    >    Canc
  2. Choose ENTER. The server(s) return the message:

    Server version on operating system

    where

    Server denotes the type of server; version denotes the version operating system denotes on which operating system the server runs.

    Example message:

    Natural RPC Server 8.3.7.0 on WNT-x86

    If pinging the server fails and an error occurs instead, you can choose PF2 (ERR) to display RPC-related Natural and EntireX Broker messages as described in Using the RPCERR Program (Monitoring the Status of an RPC Session, Natural RPC (Remote Procedure Call) documentation).

  3. To display more of the message text which appears truncated in the standard view of the Server Command Execution screen (see also Example of a Standard View) proceed as follows:

    Choose PF11.

    Oder:
    In the Command line, enter the less than (<) sign.

This section covers the following topic:

Using the SYSRPC PING Direct Command

You can ping an RPC server by using the SYSRPC PING direct command in online or batch mode.

The following command syntax applies:

SYSRPC PING

../graphics/cbo3.gif

server-name ON broker-name [[PORT] port-number][TRANSPORT {TCP|SSL|NET}]
ALL

../graphics/cbc3.gif

The symbols used in the syntax diagram are explained in the section Syntax Symbols in the Statements documentation.

The syntax elements are explained in the following table:

Syntax Element Format/Length Description
server-name A32 Name of an RPC server or a range of names

An asterisk (*) selects all names, asterisk notation selects all names that start with the specified value.

broker-name A32 Name of the EntireX Broker or a range of names

An asterisk (*) selects all names, asterisk notation selects all names that start with the specified value.

port-number N5 Port number of the network address used for the server connection

Valid values: 0 to 65535

TRANSPORT A3 Transport method used by EntireX Broker:
TCP TCP/IP protocol
SSL SSL or TLS (not supported on z/VSE)
NET Entire Net-Work (not supported on UNIX or Windows)
ALL n/a Pings all RPC servers defined in the service directory of the current library.

Terminating an RPC Server

The following commands are available to terminate an RPC server or EntireX Broker service from the standard or extended message view of the Server Command Execution screen:

TE: Terminates a single RPC server task by sending an internal message to the RPC server. If an RPC server is associated with multiple RPC server tasks (including replica on mainframe platforms), you can either terminate each RPC server task separately by using TE, or terminate all RPC server tasks in one go by using the TS command.
LN: Lists the sequence number(s) for an RPC server registered on an EntireX Broker. Each server task is identified by start date/time, host name, application name and IP address, and can be selected and terminated from this list with the TE command.
TS: 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 RPC server task or an EntireX Broker service from the standard view.

For alternative methods of terminating servers, see Terminating a Natural RPC Server described in the Natural RPC (Remote Procedure Call) documentation.

Beginn der Anweisungsliste To terminate a single RPC server task

  1. In the Code field of the Client Maintenance menu, enter the following command:

    XC

    Choose ENTER.

    The standard view of the Server Command Execution screen is displayed.

  2. In the Cmd column, next to the server(s) to be terminated, enter the following line command:

    TE

    Choose ENTER.

    (This is similar to entering the command PI as shown in the example of pinging a server.)

    The server returns the message:

    Terminating Server version on operating system

    where

    Server denotes the type of server; version denotes the four or five-digit product number; operating system denotes the operating system the server runs.

    Example message:

    Terminating Natural RPC Server 6.3.1.0 on WNT-x86

    If terminating the server fails and an error occurs instead, you can choose PF2 (ERR) to display RPC-related Natural and EntireX Broker messages as described in Using the RPCERR Program (Monitoring the Status of an RPC Session, Natural RPC (Remote Procedure Call) documentation).

    To display more of the message text which appears truncated in the standard view of the Server Command Execution screen:

    Choose PF11.

    Or:
    In the Command line, enter the less than (<) sign.

  3. 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 TE command, as is usual for remote CALLNAT execution. The Security Token Data window pops up and requests input of 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. See also USR1071N described in Using Security, Using Natural RPC with Natural Security, in the Natural RPC (Remote Procedure Call) documentation.

    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 TE command.

    If Natural Security is installed on the server, the logon data transferred must enable a logon to the Natural system library SYSRPC.

Beginn der Anweisungsliste To terminate a single server task with sequence number

  1. In the Code field of the Client Maintenance menu, enter the following command:

    XC

    Choose ENTER.

    The standard view of the Server Command Execution screen is displayed.

  2. In the Cmd column next to the server(s) to be terminated, enter the following line command:

    LN

    Choose ENTER.

    A list of server tasks appears with the following information:

    Column Description
    SequenceNo The number assigned to the server task in the sequence in which the task was registered on EntireX Broker.
    Date The date and time (UTC) when the server task was started.
    Time
    Host Name The node where the server is hosted.
    Status The status of the server.

    Possible status values are: idle, busy or term (for terminated).

    The application name and IP address (if available) are indicated in the line below each numbered row.

    The application name depends on the environment where the server runs. It can be the name of a Natural image (on UNIX), an LPAR (on mainframes) or a CICS started task, for example.

    The IP address shows the IPv4 or IPv6 address of the node.

    You can use PF keys to navigate in the screen and return to the list of all servers (PF4) or the Client Maintenance menu (PF3).

  3. In the Cmd column, next to the sequence number of the server task to be terminated, enter the following line command:

    TE

    Choose ENTER.

    The server returns the message Successful response and the status changes to term (terminated).

Beginn der Anweisungsliste To terminate an EntireX Broker service

  1. In the Code field of the Client Maintenance menu, enter the following command:

    XC

    The standard view of the Server Command Execution screen is displayed.

  2. In the empty column between the sequence number and the Node column, in the line which belongs to the server to be terminated, enter the following command:

    TS

    (This is similar to entering the command PI as shown in the example of pinging a server.)

  3. Choose ENTER.

    The SYSRPC - Terminating EntireX Broker Service window appears.

  4. 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, in the Terminate immediately field, enter a Y to request immediate termination. If you enter an N (this is the default setting), all server tasks involved in a conversation remain operational.

    If you do not want this window to appear repeatedly during the current SYSRPC session, choose Do not show this window again.

  5. Choose ENTER to terminate the EntireX Broker service.