Troubleshooting
Problem
Resolving The Problem


Starts up a TRCCNN for ports 23 and 992
Option to trace the telnet server by using TRCTCPAPP command
Option to dump connection status, interface status, and routes from NETSTAT
1) Parameters are as follows:
Function - *START (start the trace), *STOP (stop the traces), *DELETE (delete the trace in the buffer), *DUMP (dump the trace)
Trace size - size for the trace connection
Trace telnet server - option to do TRCTCPAPP *TELNET
Dump NETSTAT when stopped - when the trace is stopped, dump connection status, interface status, and routes
Local IP to trace - specify a specific IP address or *ALL
Remote IP to trace - specify a specific IP address or *ALL
Message ID to trigger - start a watch for up to 3 message IDs to end the trace
Trigger on VLOG - start a watch for up to 3 VLOGS to end the trace

2) To dump the data, choose the*DUMPfunction. There are 2 options to store the data, in physical files or in the IFS.
For physical files, specify the library to dump the data. Default is QTILIB (library is created if it does not exist)

For IFS, specify the directory to store the data.

3) A job is submitted.

4) a) To store data in physical files, a save file is created in the data library. The save file is IBMDATAxxx where xxx is number. There is also a text description of when the file was created. The data that was collected is available in the library and with text descriptions.

b) To store data in the IFS, a .zip file is created starting with IBMDATAxxx. The data output is the COMDATA directory under/tmp(if/tmpwas used)


Trace iNav and Host Servers
Starts up a trace connection
TRCTCPAPP *SIGNON
TRCTCPAPP *RMTCMD
TRCTCPAPP *CENTRAL
1) Parameters are as follows.
Function - *START (start the trace), *STOP (stop the traces), *DELETE (delete the trace in the buffer), *DUMP (dump the trace)
Trace size - size for the trace connection
Dump NETSTAT when stopped - when the trace is stopped, dump connection status, interface status, and routes
Local IP to trace - specify a specific IP address or *ALL
Remote IP to trace - specify a specific IP address or *ALL
Message ID to trigger - start a watch for up to 3 message IDs to end the trace
Trigger on VLOG - start a watch for up to 3 VLOGS to end the trace

2) Refer to Steps 2 - 4 under the Trace 5250 Sessions section
Get IP Address From Job
Get an IP address from a qualified job name.
Additional information: http://www-01.ibm.com/support/docview.wss?uid=nas8N1010518
TRCCNN_
The intention was to create a user-friendly interface to the TRCCNN program and add some more enhancements.
1) Parameters are as follows.
Function - *START (start the trace), *STOP (stop the traces), *DELETE (delete the trace in the buffer), *DUMP (dump the trace)
Local port - specific ports to trace or *ALL
Remote port - specific ports to trace or *ALL
Trace size - size for the trace connection
Local IP to trace - specify a specific IP address or *ALL
Remote IP to trace - specify a specific IP address or *ALL
Size in megabytes - size for the trace connection
Number of TRCCNN to keep - how many trace connections to keep
Trace servers - choosing yes to run TRCTCPAPP on the specific servers
Dump NETSTAT when stopped - when the trace is stopped, dump connection status, interface status, and routes
Message ID to trigger - start a watch for up to 3 message IDs to end the trace
Trigger on VLOG - start a watch for up to 3 VLOGS to end the trace


2) To dump the data choose*DUMPafter the trace is stopped (*STOP command or if trigger by a message ID or VLOG ID.
To dump to physical files, the options are listed:
Library to store data - where to store the data
File to store the TRCCNN - either give it a name or let the program generate one
Replace file - replace it with the current TRCCNN
Save data - save the data into a save file
Save file name - specify a name or let the program generate one
The save file is called IBMDATAxxx (*GEN) in the data library.

The data files have text descriptions describing what they are and when it was taken.
Note: To keep more than 1 trace connection, each one is a member in a file called TRCCNNxxxx for xxxx is a number.

To store in the IFS, the parameters are as follows.
IFS directory to store data - default is/tmp
Zip file - yes or no to compress the collected data, if zipped, the file is IBMDATAxxx.zip where xxx is a number.

The collected data is in the COMDATA subdirectory.

Continuous LIC Trace
Allows for a looping LIC trace that collects a specific number of trace tables. The option gives the ability to have multiple trace tables expanding a time frame.
1) Parameters are as follows.
Function - *START (start the trace), *STOP (stop the trace), *DELETE (delete the trace), *DUMP (dump the trace)
Library to store data - data library
LIC trace table prefix - the name of the LIC trace table name when deleting
LIC trace size - size of LIC trace
Number of trace to keep - how many LIC traces to rotate
Trace type - *XSM (TRCINT w/ trace type *CSTALL, *TCP, *SCK), *TCP (TRCINT w/ trace type *TCP), *LICSSL (TRCINT w/ trace type *LICSSL)
Trigger on message - choose up to 3 messages to trigger on
Trap on LICLOG - choose up to 3 VLOGS to trigger on
Exit program - a program to call when triggered

2) When started, a job is submitted call LICTRACE like the following screen capture.

3) If the trace is stop (*STOP) or if triggered by message ID/VLOG, the traces are held.
4) Once stopped, use*DUMPto dump the data. A job is submitted (LICTRACE is the name of the job). It dumps the traces and copies them over to physical files into the data library specified. The file is named LICTRCxxxx where xxxx is a number.
Job Status Trap For TCP Data
To start and stop data collection when a job is in a certain status. MTXW, ICFW, and MSGW are examples of job statuses.
- communications trace
- trace connection
- IOFR -COM -ALL SST advance macro
- VIOFR -HEA EACH -FR SST advance macro
- ALTSTACK -ERRORLOG SST advance macro
- ALTSTACK -DUMP SST advance macro
- HEAFR -HEA -DETAIL -FR SST advance macro
- IOFR -CRYPTO -ALL SST advance macro
- IOFR -CTL -ALL SST advance macro
- IOFR -ALL SST advance macro
- SERVICEDOCS advance macro


Parameters as follows:
Function*START - start the trap
*STOP - stop the trap
*DUMP - stop the trap and dump data
*DELETE - stop the trap and delete tracesJob name to monitorJob name to monitorJob statusStatus of job to triggerDelay between checksDelay between checking for jobs in the specified statusMinimum seconds in stateIf a job is found in the specified state, how long should it be in that state before we triggerTrace line 1, line 2, line 3Line names to start communications traceSize for each comtraceThe size in megabytes for each communications traceTrace connectionStart a trace connection (Y/N)Trace connection sizeThe size in megabytes the trace connectionDump SST infoDump SST advance macros (Y/N)
- if choosing to dump SST advance macros, the next parameters will be the OS/400 sign-on credentials and the SST sign-on credentials
When triggered or dumped, the trap will attempt to open up a virtual terminal connection and sign-on into SST to dump the macros.
During the initial start of the trap, the trap will verify if it can sign-on and get into SST with the supplied credentials.Data libraryThe library to store the data, default is QTILIB
When the trap is started, 2 jobs are submitted.
STSCHK and STSCHKWRK
When the trap dumps the traces, the data is placed in a file name IBMDATAxxxx for xxxx is a number and place in the library specified in the Data Library parameter.
Port Scanner
"NETSTAT, Option 3"."CHGTCPA (Change TCP/IP Attributes)"."CFGTCP, Option 12"."CFGTCP, Option 2".Advance Functions Menu
The advance functions menu is intended for use by support personnel. The following screen capture is an example. Not all options are discussed here.

Extract TCP Trace
Another extract TCP trace that allows to extract up to 4 pairs of ports and IP addresses. Currently, there is no summary function. To get a summary function, use this extract first to get the filtered data and use the QSPTLIB version of extract TCP trace (another menu option in this menu)
1) Parameters are as follows:
Com trace file - the file member that contains the com trace (the trace can be a formatted TRCCNN, communications trace, or FMTSST (from QSPTLIB)
IP information 1-4 - A combination of port pair, IP address to filter out
Results outfile - where to store the output, default is to store the output in the same file (if that file allows multiple members)
Submit job - run interactive or in batch


Make Connection Summary
Makes a summary of connections from a communications trace file.
1) Parameters as follows.
TCP trace file name, library, member - location of the communications trace (TRCCNN, communications trace via PRTCMNTRC, or FMTSST)
Output - spoolfile or put in physical file

2) First value is the total number of packets in the communications trace. The rest will be frame counts per port pair, starting from highest to lowest.

Extract TCP Trace (QSPTLIB version)
Get Deltas From ACKs from EXTTCPTRC port/pair Summary File
When using the QSPTLIB version of extract TCP trace to create a summary file, the output will have expected ACK number for each frame. This program gets the deltas for when an expected ACK was received to gauge the delay either from the target system or network delay.
1) Parameters are as follows.
Summary file - the location of the summary file
ACK request direction - what direction of the ACK request to get delta
Ouput - either *PRINT (spoolfile), or *OUTFILE
Output file, library, member - if *OUTFILE was specified, the location to store the data. Default is to use the same library and extract TCP summary file

Example output

Get Deltas From EXTTCPTRC summary file
Another alternative method to get deltas in an extract TCP summary file. The common use is to determine whether there are gaps in an unfiltered communications trace to help in PEX trace analysis for system issues.
1) Parameters are as follows.
TCP summary file, library, member - the location of the extract TCP summary file
Output - *PRINT (spoolfile), *OUTFILE

Example output.

Combine Comtrace Into 1 Record
Combines a non-summary communications trace file into 1 record for each send or receive packet. Allows a user to build a query to query certain packets.
1) Parameters are as follows.
Comtrace file, library, member - location of the communications trace
Output library - a new file is created and stored in a library, default is to use the same library as the input file
Submit job - either run interactive or submit to batch

Was this topic helpful?
Document Information
Modified date:
02 August 2021
UID
nas8N1020080
