ecijlst - List Systems and Check Status
This program lists all systems available, then for each server issue:
- eci state async call
- eci sync call with commarea to server application
- eci state sync call
The program completes with a status summary for all servers.
The status summary shown is for the eci state sync call.
This application will work for up to 100 systems.
The source file creates two classes:
- ecijlst.class ...... issues the state and eci_sync calls.
- lstCBst.class ...... handles all callbacks received.
This program contains no data conversion for the commarea.
Data conversion should be carried out on the server, if required.
RECOMMENDATION:
If using a (common) CICS Client, issue "CICSCLI /N" before
running this program to suppress unwanted client pop-ups.
Any CICS Client errors will continue to be written to the
"CICSCLI.LOG" error file.
The program includes the eci_timeout method to return
control back to the application if a response from an
eci_sync call is not received (defaults to 10 seconds)
Parameters can be overridden via command line.
Issue "ecijlst -?" for help and default settings.
Sample Input
java jgtest.gateway.ecijlst -j local:
Sample Output
ecijlst - List Systems and Check Status
-j JGate -> local:
-r JGate port -> 2006
-list list systems only -> false
-a application -> SRVTIME
-i # iterations -> 1
-u userid -> SYSAD
-p password -> SYSAD
(fixed) eci_timeout value -> 10
-! debug -> false
-? Display settings only
--- ecijlst started 18/06/98 14:11
--- Successfully created JavaGateway connection ---
---------------------------------------------------
ecijlst --- Iteration: 1 of 1
---------------------------------------------------
---------------------------------------------------
Server (1 of 3) NETBTCLR
---------------------------------------------------
---> Asynchronous getStatus call for server: NETBTCLR
<--- Results of asynchronous getStatus request
Server: NETBTCLR
Connection status ... ECI connected to client
Server status ....... ECI server state up
Client status ....... ECI client state up
---> Flow eci_sync call to server: NETBTCLR
<--- Results of eci_sync call
Commarea ..... 18/06/98 14:11:01
CICS Rc ...... 0
Abend code ... null
---> Synchronous getStatus call for server: NETBTCLR
<--- Results of synchronous getStatus request
Server: NETBTCLR
Connection status ... ECI connected to client
Server status ....... ECI server state up
Client status ....... ECI client state up
---------------------------------------------------
Server (2 of 3) TCP-TCLR
---------------------------------------------------
---> Asynchronous getStatus call for server: TCP-TCLR
<--- Results of asynchronous getStatus request
Server: TCP-TCLR
Connection status ... ECI connected to client
Server status ....... ECI server state up
Client status ....... ECI client state up
---> Flow eci_sync call to server: TCP-TCLR
<--- Results of eci_sync call
Commarea ..... 18/06/98 14:11:01
CICS Rc ...... 0
Abend code ... null
---> Synchronous getStatus call for server: TCP-TCLR
<--- Results of synchronous getStatus request
Server: TCP-TCLR
Connection status ... ECI connected to client
Server status ....... ECI server state up
Client status ....... ECI client state up
---------------------------------------------------
Server (3 of 3) IYCQCTS5
---------------------------------------------------
---> Asynchronous getStatus call for server: IYCQCTS5
<--- Results of asynchronous getStatus request
Server: IYCQCTS5
Connection status ... ECI connected to client
Server status ....... ECI server state down
Client status ....... ECI client state up
---> Flow eci_sync call to server: IYCQCTS5
<--- Results of eci_sync call
Commarea .....
CICS Rc ...... -3
Abend code ... AZI4
---> Synchronous getStatus call for server: IYCQCTS5
<--- Results of synchronous getStatus request
Server: IYCQCTS5
Connection status ... ECI connected to client
Server status ....... ECI server state down
Client status ....... ECI client state up
Status Summary:
Connection Server Client ECI_SYNC CICS
Server Status Status Status Results RC
-------- ---------- -------- ------------ ----------------- ----
NETBTCLR To Client Up Up 18/06/98 14:11:01 0
TCP-TCLR To Client Up Up 18/06/98 14:11:01 0
IYCQCTS5 To Client Down Up -3
--- Successfully closed JavaGateway connection ---
--- ecijlst completed 18/06/98 14:11
--- Iterations run ..... 1 out of 1
History log:
- Written : May 97 - Alan Hollingshead
- Updated : Apr 98 - uses common classes