To test connectivity from your UNIX workstation to the z/OS mainframe, use one of the methods in this section. (Check your worksheet for the information requested.)
For testing connectivity to the CICS region, enter the following command using the values defined previously and recorded on your worksheet as ConnectionSpec1, ConnectionSpec2, and ConnectionSpec3:
snaping -CConnectionSpec1 -RConnectionSpec2 -MConnectionSpec3 -Uhostuserid -Phostpassword
Use the values for these configuration properties found in a service on your worksheet that has ConnectionProtocol=lu62.
Note that this is an example of successful snaping output for a Sun Solaris platform:
> snaping -C LOCAL -R CICSAMD2 -M MVSMODE -U userid -P password Verify LU6.2 connectivity with a host transaction. A connection may be specified individually, or an entire configuration can be verified using the configuration file created by the DirectConnect Transaction Router Service. Usage: snaping [-C Local_LU -R Partner_LU -M Modename] [-L connection_file][-T Host_Tran_id] [-P password] [-U userid] Defaults are:Connection file - $SYBASE/ngcid.[$DSQUERY] Host Transaction - SYI1 Userid and passord - Null Allocating to SYI1 on CICSAMD2 using LOCAL with mode MVSMODE..Ok Sending data...Ok Waiting for response...Received data 187 bytes. <Open Server Module: SYGWCICS, Version: ZRL/1500GA /P /z/OS V2R9 /11/19/07 11.03. Open Client Module: SYGWCICC, Version: ** SYGWZZRL/1500GA /P /z/OS V2R9 /11/19/07 .> Normal Deallocate Done Test complete
If you receive an error or you need additional information on how to use the snaping utility, refer to Appendix B, “Validating Connectivity.”
For testing TCP/IP connectivity to a CICS region, enter the following command using the values defined previously and recorded on your worksheet as ConnectionSpec1 and ConnectionSpec2. Note that this example is for a Sun Solaris platform:
cicsping -HConnectionSpec1 -NConnectionSpec2 -Uhostuserid -Phostpassword
Use the values for these configuration properties found in a service defined on your worksheet that has ConnectionProtocol=tcpip.
An example of successful cicsping:
Torreys> cicsping -H sungard -N 3020
Sybase CICSPING (cicsping/3.0.1/P/sun_svr4/Solaris 2.5/1/OPT/Mar 25 12:00:00 2007)
Verify TCP/IP connectivity to a CICS region. A host and port may be specified individually, or an entire configuration can be verified using the region definition file created by the Sybase MSG.
Usage: cicsping [-H hostname -N portnumber ]
[-T Host_Tran_id] [-U userid [-P password]]
Defaults are: Region file - $SYBASE/ngreg.[$DSQUERY]
Host Transaction - SYPG
Userid and password - Null
Testing host sungard, port 3020
get host by name ok
connect to CICS listener ok
transaction started by listener ok
test message sent ok
Reply from host transaction:
DWMCI410 : *** MODULE SYGWTCPS LOADED SUCCESSFULLY ***
VERSION STRING = SYGWTCPS/310 EBF /P /z/OS R1.2 /05/19/07 10.55
ECHO DATA = abcdefghijklmnopqrstuvwxyz
test completed in 1228ms
If you receive an error or you need additional information on how to use the cicsping utility, refer to Appendix B, “Validating Connectivity.”