HP-UX SNAplus2 Diagnostics Guide

Using Logging and Tracing
Tracing
Chapter 3 85
Controlling Tracing on Automatically Started Invokable TPs
You can trace an automatically started invokable transaction program
(TP) by configuring the appropriate environment variables when you run
the snaptpinstall program. Refer to the HP-UX SNAplus2
Administration Guide for more information.
Controlling Trace File Contents
The following environment variables control the amount of data stored in
trace files:
SNATRUNC
Specifies the maximum length in bytes of each entry in
a trace file. Set this variable to a decimal number. If a
message has more characters than this value, the
excess characters are truncated. For example, setting
SNATRUNC to 70 limits tracing to 70 bytes of data per
entry. By default, API trace messages are not
truncated.
SNATRACESIZE
Specifies the maximum size in bytes of each trace file
when using two files. If you are tracing to one file, the
size of the trace file has no limit.
Set this environment variable to a decimal number.
When the size of file1 reaches the maximum file size,
SNAplus2 clears file2 and continues tracing to file2.
When file2 reaches the same limit, SNAplus2 clears
file1 and writes the trace information to file1 again.
This ensures that the maximum amount of disk space
taken up by a pair of API trace files is approximately
twice the value of SNATRACESIZE. Using two files
extends the trace period and limits the disk space
usage to twice the value specified in SNATRACESIZE.
If you do not set SNATRACESIZE, the default is
1,000,000 bytes. To cancel the setting of
SNATRACESIZE and return to the default, set
SNATRACESIZE to a null string.
SNATRCRESET
Controls whether a trace file is reset when an