01.01.2013 Views

CICS Transaction Gateway V5 The WebSphere ... - IBM Redbooks

CICS Transaction Gateway V5 The WebSphere ... - IBM Redbooks

CICS Transaction Gateway V5 The WebSphere ... - IBM Redbooks

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

9.4 Problem determination<br />

9.4.1 Tips and utilities<br />

9.4.2 Tracing<br />

230 <strong>CICS</strong> <strong>Transaction</strong> <strong>Gateway</strong> <strong>V5</strong><br />

In this section, we document information we learned while configuring this<br />

scenario, and further information on problem determination and tracing.<br />

In this section, you will find useful commands and utilities for debugging<br />

problems with your configuration. You will also find additional information about<br />

topics discussed in this chapter.<br />

Saving the <strong>CICS</strong> TG messages<br />

If you wish to save the whole message log, issue the following commands to<br />

redirect the output to a log file:<br />

cd /opt/ctg/bin<br />

ctgstart >ctg.log 2>&1<br />

Note that you will now need to use another command prompt to view the log file,<br />

as follows:<br />

cat /opt/ctg/bin/ctg.log<br />

Alternatively you can save the message log while having it output to the screen<br />

using the tee utility as follows:<br />

cd /opt/ctg/bin<br />

ctgstart 2>&1 |tee ctg.log<br />

Error messages<br />

<strong>The</strong> Client daemon writes error messages to the file <strong>CICS</strong>CLI.LOG, located in<br />

the /var/cicscli/ directory. This file is created or written to only in error situations<br />

and can be viewed using any text editor. It is particularly useful as a first stop for<br />

determining if problems have occurred with a TCP connection to a <strong>CICS</strong> server.<br />

<strong>The</strong>re are three ways to trace the <strong>CICS</strong> <strong>Transaction</strong> <strong>Gateway</strong>:<br />

► <strong>Gateway</strong> daemon tracing, with various levels of tracing available.<br />

► <strong>Gateway</strong> daemon Java Native Interface (JNI) trace.<br />

► Java client tracing, which can be used to trace the Java method calls made<br />

using the <strong>CICS</strong> TG Java classes in the Java client.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!