ibm-information-center/dist/eclipse/plugins/i5OS.ic.cl_5.4.0.1/strcmntrc.htm

1120 lines
40 KiB
HTML
Raw Permalink Normal View History

2024-04-02 14:02:31 +00:00
<!doctype html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head><META http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Start Communications Trace (STRCMNTRC)</title>
<link rel="stylesheet" type="text/css" href="../rzahg/ic.css">
</head>
<body bgcolor="white">
<script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
<a name="STRCMNTRC.Top_Of_Page"></a>
<h2>Start Communications Trace (STRCMNTRC)</h2>
<table width="100%">
<tr>
<td valign="top" align="left"><b>Where allowed to run: </b>All environments (*ALL)<br>
<b>Threadsafe: </b>No
</td>
<td valign="top" align="right">
<a href="#STRCMNTRC.PARAMETERS.TABLE">Parameters</a><br>
<a href="#STRCMNTRC.COMMAND.EXAMPLES">Examples</a><br>
<a href="#STRCMNTRC.ERROR.MESSAGES">Error messages</a></td>
</tr>
</table>
<div> <a name="STRCMNTRC"></a>
<p>The Start Communications Trace (STRCMNTRC) command initiates a communications trace for a specified line, a network interface or a network server description.
</p>
<p>A communications trace continues until:
</p>
<ul>
<li>The End Communications Trace (ENDCMNTRC) command is run.
</li>
<li>The Communications Trace function of the Start System Service Tools (STRSST) command is used to end the trace.
</li>
<li>A physical line problem causes the trace to end.
</li>
<li>TRCFULL(*STOPTRC) is specified and the buffer becomes full.
</li>
<li>Automatically by the watch for trace event functionality.
</li>
</ul>
<p><b>Restrictions:</b>
</p>
<ul>
<li>The user must have *USE authority to the line, network interface, or network server to be traced.
</li>
<li>To use this command, you must have service (*SERVICE) special authority, or be authorized to the Service Trace function of Operating System through iSeries Navigator's Application Administration support. The Change Function Usage (CHGFCNUSG) command, with a function ID of QIBM_SERVICE_TRACE, can also be used to change the list of users that are allowed to perform trace operations.
</li>
<li>The following user profiles have authority to this command:
<ul>
<li>QSECOFR
</li>
<li>QSRV
</li>
</ul>
</li>
<li>When the <b>Watched job (WCHJOB)</b> parameter is specified, the issuer of the command must be running under a user profile which is the same as the job user identity of the job being watched, or the issuer of the command must be running under a user profile which has job control (*JOBCTL) special authority. Job control (*JOBCTL) special authority is also required if a generic user name is specified for the WCHJOB parameter.
</li>
<li>If you specify a generic user name in the WCHJOB parameter, you must have all object (*ALLOBJ) special authority, or be authorized to the Watch Any Job function of Operating System through iSeries Navigator's Application Administration support. The Change Function Usage (CHGFCNUSG) command, with a function ID of QIBM_WATCH_ANY_JOB, can also be used to change the list of users that are allowed to start and end watch operations.
</li>
<li>You must have operational (*OBJOPR) and execute (*EXECUTE) authorities to the user exit program if specified in <b>Trace program (TRCPGM)</b> parameter, and execute (*EXECUTE) authority to the library where the program is located.
</li>
<li>You must have use (*USE) authority to the message queues specified in <b>Watched message queue (WCHMSGQ)</b> parameter, and use (*USE) authority to the library where the message queue is located.
</li>
</ul>
</div>
<table width="100%">
<tr><td align="right"><a href="#STRCMNTRC.Top_Of_Page">Top</a></td></tr>
</table>
<hr size="2" width="100%">
<div>
<h3><a name="STRCMNTRC.PARAMETERS.TABLE">Parameters</a></h3>
<table border="1" cellpadding="4" cellspacing="0">
<!-- col1="10" col2="15" col3="30" col4="10" -->
<tr>
<th bgcolor="aqua" valign="bottom" align="left">Keyword</th>
<th bgcolor="aqua" valign="bottom" align="left">Description</th>
<th bgcolor="aqua" valign="bottom" align="left">Choices</th>
<th bgcolor="aqua" valign="bottom" align="left">Notes</th>
</tr>
<tr>
<td valign="top"><a href="#STRCMNTRC.CFGOBJ"><b>CFGOBJ</b></a></td>
<td valign="top">Configuration object</td>
<td valign="top"><i>Name</i></td>
<td valign="top">Required, Positional 1</td>
</tr>
<tr>
<td valign="top"><a href="#STRCMNTRC.CFGTYPE"><b>CFGTYPE</b></a></td>
<td valign="top">Type</td>
<td valign="top">*LIN, *NWI, *NWS</td>
<td valign="top">Required, Positional 2</td>
</tr>
<tr>
<td valign="top"><a href="#STRCMNTRC.MAXSTG"><b>MAXSTG</b></a></td>
<td valign="top">Buffer size</td>
<td valign="top"><i>Integer</i>, *MIN, *MAX, <b><u>128K</u></b>, 256K, 2M, 4M, 6M, 8M, 16M, 32M, 64M, 128M, 256M, 512M, 1G</td>
<td valign="top">Optional</td>
</tr>
<tr>
<td valign="top"><a href="#STRCMNTRC.DTADIR"><b>DTADIR</b></a></td>
<td valign="top">Data direction</td>
<td valign="top">*SND, *RCV, <b><u>*BOTH</u></b></td>
<td valign="top">Optional</td>
</tr>
<tr>
<td valign="top"><a href="#STRCMNTRC.TRCFULL"><b>TRCFULL</b></a></td>
<td valign="top">Trace full</td>
<td valign="top"><b><u>*WRAP</u></b>, *STOPTRC</td>
<td valign="top">Optional</td>
</tr>
<tr>
<td valign="top" rowspan="3"><a href="#STRCMNTRC.USRDTA"><b>USRDTA</b></a></td>
<td valign="top">Number of user bytes to trace</td>
<td valign="top">Single values: <b><u>*CALC</u></b>, *MAX<br>Other values: <i>Element list</i></td>
<td valign="top" rowspan="3">Optional</td>
</tr>
<tr>
<td valign="top">Element 1: Beginning bytes</td>
<td valign="top">
<i>Decimal number</i></td>
</tr>
<tr>
<td valign="top">Element 2: Ending bytes</td>
<td valign="top">
<i>Decimal number</i>, *CALC</td>
</tr>
<tr>
<td valign="top"><a href="#STRCMNTRC.CMNTRCOPTS"><b>CMNTRCOPTS</b></a></td>
<td valign="top">Communications trace options</td>
<td valign="top"><b><u>*ALLDTA</u></b>, *RMTCTL, *RMTMAC, *RMTSAP, *LCLSAP, *IPPCLNUM, *RMTIPADR</td>
<td valign="top">Optional</td>
</tr>
<tr>
<td valign="top"><a href="#STRCMNTRC.DDITRCOPTS"><b>DDITRCOPTS</b></a></td>
<td valign="top">DDI trace options</td>
<td valign="top">*ALLDTA, *RMTCTL, *RMTMAC, *RMTSAP, *LCLSAP, *IPPCLNUM, *RMTIPADR</td>
<td valign="top">Optional</td>
</tr>
<tr>
<td valign="top"><a href="#STRCMNTRC.RMTCTL"><b>RMTCTL</b></a></td>
<td valign="top">Remote controller</td>
<td valign="top"><i>Name</i></td>
<td valign="top">Optional</td>
</tr>
<tr>
<td valign="top"><a href="#STRCMNTRC.RMTMAC"><b>RMTMAC</b></a></td>
<td valign="top">Remote MAC address</td>
<td valign="top"><i>Hexadecimal value</i></td>
<td valign="top">Optional</td>
</tr>
<tr>
<td valign="top"><a href="#STRCMNTRC.RMTSAP"><b>RMTSAP</b></a></td>
<td valign="top">Remote SAP</td>
<td valign="top"><i>Hexadecimal value</i></td>
<td valign="top">Optional</td>
</tr>
<tr>
<td valign="top"><a href="#STRCMNTRC.LCLSAP"><b>LCLSAP</b></a></td>
<td valign="top">Local SAP</td>
<td valign="top"><i>Hexadecimal value</i></td>
<td valign="top">Optional</td>
</tr>
<tr>
<td valign="top"><a href="#STRCMNTRC.IPPCLNUM"><b>IPPCLNUM</b></a></td>
<td valign="top">IP protocol number</td>
<td valign="top">0-255, *ICMP, *IGMP, *TCP, *EGP, *IGP, *UDP</td>
<td valign="top">Optional</td>
</tr>
<tr>
<td valign="top"><a href="#STRCMNTRC.RMTIPADR"><b>RMTIPADR</b></a></td>
<td valign="top">Remote IP address</td>
<td valign="top"><i>Character value</i></td>
<td valign="top">Optional</td>
</tr>
<tr>
<td valign="top"><a href="#STRCMNTRC.LMITRCOPTS"><b>LMITRCOPTS</b></a></td>
<td valign="top">LMI trace options</td>
<td valign="top"><b><u>*ALLDTA</u></b>, *NOLMI, *LMIONLY</td>
<td valign="top">Optional</td>
</tr>
<tr>
<td valign="top"><a href="#STRCMNTRC.NWSTRCOPTS"><b>NWSTRCOPTS</b></a></td>
<td valign="top">NWS trace options</td>
<td valign="top"><b><u>*NETBIOS</u></b>, *INTERNAL, *TCPIP</td>
<td valign="top">Optional</td>
</tr>
<tr>
<td valign="top" rowspan="4"><a href="#STRCMNTRC.WCHMSG"><b>WCHMSG</b></a></td>
<td valign="top">Watch for message</td>
<td valign="top">Single values: <b><u>*NONE</u></b><br>Other values (up to 5 repetitions): <i>Element list</i></td>
<td valign="top" rowspan="4">Optional</td>
</tr>
<tr>
<td valign="top">Element 1: Message identifier</td>
<td valign="top">
<i>Name</i></td>
</tr>
<tr>
<td valign="top">Element 2: Comparison data</td>
<td valign="top">
<i>Character value</i>, <b><u>*NONE</u></b></td>
</tr>
<tr>
<td valign="top">Element 3: Compare against</td>
<td valign="top">
<b><u>*MSGDTA</u></b>, *FROMPGM, *TOPGM</td>
</tr>
<tr>
<td valign="top" rowspan="4"><a href="#STRCMNTRC.WCHMSGQ"><b>WCHMSGQ</b></a></td>
<td valign="top">Watched message queue</td>
<td valign="top">Values (up to 3 repetitions): <i>Element list</i></td>
<td valign="top" rowspan="4">Optional</td>
</tr>
<tr>
<td valign="top">Element 1: Message queue</td>
<td valign="top">
Single values: <b><u>*SYSOPR</u></b>, *JOBLOG, *HSTLOG<br>Other values: <i>Qualified object name</i></td>
</tr>
<tr>
<td valign="top" style="padding-left:10pt">Qualifier 1: Message queue</td>
<td valign="top"><i>Name</i></td>
</tr><tr>
<td valign="top" style="padding-left:10pt">Qualifier 2: Library</td>
<td valign="top"><i>Name</i>, <b><u>*LIBL</u></b></td>
</tr><tr>
<td valign="top" rowspan="5"><a href="#STRCMNTRC.WCHJOB"><b>WCHJOB</b></a></td>
<td valign="top">Watched job</td>
<td valign="top">Single values: <b><u>*</u></b><br>Other values (up to 5 repetitions): <i>Element list</i></td>
<td valign="top" rowspan="5">Optional</td>
</tr>
<tr>
<td valign="top">Element 1: Job name</td>
<td valign="top">
<i>Qualified job name</i></td>
</tr>
<tr>
<td valign="top" style="padding-left:10pt">Qualifier 1: Job name</td>
<td valign="top"><i>Generic name, name</i></td>
</tr><tr>
<td valign="top" style="padding-left:10pt">Qualifier 2: User</td>
<td valign="top"><i>Generic name, name</i></td>
</tr><tr>
<td valign="top" style="padding-left:10pt">Qualifier 3: Number</td>
<td valign="top">000001-999999, <b><u>*ALL</u></b></td>
</tr><tr>
<td valign="top" rowspan="4"><a href="#STRCMNTRC.WCHLICLOG"><b>WCHLICLOG</b></a></td>
<td valign="top">Watch for LIC log entry</td>
<td valign="top">Single values: <b><u>*NONE</u></b><br>Other values (up to 5 repetitions): <i>Element list</i></td>
<td valign="top" rowspan="4">Optional</td>
</tr>
<tr>
<td valign="top">Element 1: Major code</td>
<td valign="top">
<i>Character value</i>, *ALL</td>
</tr>
<tr>
<td valign="top">Element 2: Minor code</td>
<td valign="top">
<i>Character value</i>, *ALL</td>
</tr>
<tr>
<td valign="top">Element 3: Comparison data</td>
<td valign="top">
<i>Character value</i>, <b><u>*NONE</u></b></td>
</tr>
<tr>
<td valign="top"><a href="#STRCMNTRC.WCHTIMO"><b>WCHTIMO</b></a></td>
<td valign="top">Length of time to watch</td>
<td valign="top">1-43200, <b><u>*NOMAX</u></b></td>
<td valign="top">Optional</td>
</tr>
<tr>
<td valign="top" rowspan="3"><a href="#STRCMNTRC.TRCPGM"><b>TRCPGM</b></a></td>
<td valign="top">Trace program</td>
<td valign="top">Single values: <b><u>*NONE</u></b><br>Other values: <i>Qualified object name</i></td>
<td valign="top" rowspan="3">Optional</td>
</tr>
<tr>
<td valign="top">Qualifier 1: Trace program</td>
<td valign="top"><i>Name</i></td>
</tr><tr>
<td valign="top">Qualifier 2: Library</td>
<td valign="top"><i>Name</i>, <b><u>*LIBL</u></b></td>
</tr><tr>
<td valign="top"><a href="#STRCMNTRC.TRCPGMITV"><b>TRCPGMITV</b></a></td>
<td valign="top">Time interval</td>
<td valign="top">1-9999, <b><u>*NONE</u></b></td>
<td valign="top">Optional</td>
</tr>
<tr>
<td valign="top"><a href="#STRCMNTRC.TEXT"><b>TEXT</b></a></td>
<td valign="top">Trace description</td>
<td valign="top"><i>Character value</i>, <b><u>*BLANK</u></b></td>
<td valign="top">Optional</td>
</tr>
</table>
<table width="100%">
<tr><td align="right"><a href="#STRCMNTRC.Top_Of_Page">Top</a></td></tr>
</table>
</div>
<div> <a name="STRCMNTRC.CFGOBJ"></a>
<h3>Configuration object (CFGOBJ)</h3>
<p>Specifies the configuration object to be traced. The object is either a line description, a network interface description, or a network server description.
</p>
<dl>
<dt><b><i>name</i></b></dt>
<dd>Specify the name of the configuration object to be traced.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#STRCMNTRC.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="STRCMNTRC.CFGTYPE"></a>
<h3>Type (CFGTYPE)</h3>
<p>Specifies the type of configuration description to trace.
</p>
<dl>
<dt><b>*LIN</b></dt>
<dd>The configuration object is a line description.
</dd>
<dt><b>*NWI</b></dt>
<dd>The configuration object is a network interface description.
</dd>
<dt><b>*NWS</b></dt>
<dd>The configuration object is a network server description.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#STRCMNTRC.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="STRCMNTRC.MAXSTG"></a>
<h3>Buffer size (MAXSTG)</h3>
<p>Specifies the trace buffer size.
</p>
<dl>
<dt><b><u>128K</u></b></dt>
<dd>A trace buffer of 128 kilobytes is used.
</dd>
<dt><b>*MIN</b></dt>
<dd>The minimum trace buffer size is used.
</dd>
<dt><b>*MAX</b></dt>
<dd>The maximum trace buffer size is used.
</dd>
<dt><b><i>buffer-size</i></b></dt>
<dd>Specify the trace buffer size. Valid buffer sizes may be specified either as number of kilobytes, or as one of the following special values which has a one-letter suffix of 'K' for kilobytes, 'M' for megabytes, or 'G' for gigabytes: 128K, 256K, 2M, 4M, 6M, 8M, 16M, 32M, 64M, 128M, 256M, 512M, 1G. The minimum trace buffer size is 128 kilobytes.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#STRCMNTRC.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="STRCMNTRC.DTADIR"></a>
<h3>Data direction (DTADIR)</h3>
<p>Specifies the communication data to trace.
</p>
<p>
<b>Note: </b>For network server description traces, this parameter is ignored and *BOTH is used.
</p>
<dl>
<dt><b><u>*BOTH</u></b></dt>
<dd>Data sent and received by the system is traced.
</dd>
<dt><b>*SND</b></dt>
<dd>Data sent by the system is traced.
</dd>
<dt><b>*RCV</b></dt>
<dd>Data received by the system is traced.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#STRCMNTRC.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="STRCMNTRC.TRCFULL"></a>
<h3>Trace full (TRCFULL)</h3>
<p>Specifies the action the system takes when the trace buffer is full of data.
</p>
<dl>
<dt><b><u>*WRAP</u></b></dt>
<dd>The trace continues and overwrites the data in the buffer.
</dd>
<dt><b>*STOPTRC</b></dt>
<dd>The trace stops.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#STRCMNTRC.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="STRCMNTRC.USRDTA"></a>
<h3>Number of user bytes to trace (USRDTA)</h3>
<p>Specifies the amount of beginning and ending user data to trace.
</p>
<p>
<b>Note: </b>For network server description traces and binary synchronous lines, this parameter is ignored and *CALC is used.
</p>
<p><b>Single values</b>
</p>
<dl>
<dt><b><u>*CALC</u></b></dt>
<dd>The system determines the number of beginning and ending bytes to be traced. For LAN lines, this is the first 100 bytes. For other line types, the whole frame is traced.
</dd>
<dt><b>*MAX</b></dt>
<dd>Trace as much of frames as possible. For non-LAN, *MAX will be the equivalent of *CALC.
</dd>
</dl>
<p><b>Element 1: Beginning bytes</b>
</p>
<dl>
<dt><b><i>decimal-number</i></b></dt>
<dd>Specify the number of bytes of beginning user data to be traced.
</dd>
</dl>
<p><b>Element 2: Ending bytes</b>
</p>
<dl>
<dt><b>*CALC</b></dt>
<dd>The system determines the number of ending bytes to be traced.
</dd>
<dt><b><i>decimal-number</i></b></dt>
<dd>Specify the number of bytes of ending user data to be traced.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#STRCMNTRC.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="STRCMNTRC.CMNTRCOPTS"></a>
<h3>Communications trace options (CMNTRCOPTS)</h3>
<p>Specifies the type of data to be traced.
</p>
<dl>
<dt><b><u>*ALLDTA</u></b></dt>
<dd>All data is traced. No filtering is specified.
</dd>
<dt><b>*RMTCTL</b></dt>
<dd>The data traveling to and from a remote controller is traced.
</dd>
<dt><b>*RMTMAC</b></dt>
<dd>The data traveling to and from a remote medium access control (MAC) address is traced.
</dd>
<dt><b>*RMTSAP</b></dt>
<dd>The data traveling to and from a remote service access point (SAP) is traced.
</dd>
<dt><b>*LCLSAP</b></dt>
<dd>The data traveling to and from a local service access point (SAP) is traced.
</dd>
<dt><b>*IPPCLNUM</b></dt>
<dd>The data within an Internet Protocol (IP) number is traced.
</dd>
<dt><b>*RMTIPADR</b></dt>
<dd>The data traveling to and from a remote IP address is traced.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#STRCMNTRC.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="STRCMNTRC.DDITRCOPTS"></a>
<h3>DDI trace options (DDITRCOPTS)</h3>
<p>The DDITRCOPTS parameter is supported for upward compatibility of CL programs which contain the STRCMNTRC command. The CMNTRCOPTS parameter provides all of the same function as DDITRCOPTS and should be used instead of DDITRCOPTS.
</p>
<dl>
<dt><b><u>*ALLDTA</u></b></dt>
<dd>All data is traced. No filtering is specified.
</dd>
<dt><b>*RMTCTL</b></dt>
<dd>The data traveling to and from a remote controller is traced.
</dd>
<dt><b>*RMTMAC</b></dt>
<dd>The data traveling to and from a remote medium access control (MAC) address is traced.
</dd>
<dt><b>*RMTSAP</b></dt>
<dd>The data traveling to and from a remote service access point (SAP) is traced.
</dd>
<dt><b>*LCLSAP</b></dt>
<dd>The data traveling to and from a local service access point (SAP) is traced.
</dd>
<dt><b>*IPPCLNUM</b></dt>
<dd>The data within an Internet Protocol (IP) number is traced.
</dd>
<dt><b>*RMTIPADR</b></dt>
<dd>The data traveling to and from a remote IP address is traced.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#STRCMNTRC.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="STRCMNTRC.RMTCTL"></a>
<h3>Remote controller (RMTCTL)</h3>
<p>Specifies the remote controller receiving and sending the data to be traced.
</p>
<dl>
<dt><b><i>name</i></b></dt>
<dd>Specify the name of the remote controller.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#STRCMNTRC.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="STRCMNTRC.RMTMAC"></a>
<h3>Remote MAC address (RMTMAC)</h3>
<p>Specifies the remote medium access control address receiving and sending the data to be traced.
</p>
<dl>
<dt><b><i>hexadecimal-value</i></b></dt>
<dd>Specify the remote medium access control address.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#STRCMNTRC.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="STRCMNTRC.RMTSAP"></a>
<h3>Remote SAP (RMTSAP)</h3>
<p>Specifies the remote service access point receiving and sending the data to be traced.
</p>
<dl>
<dt><b><i>hexadecimal-value</i></b></dt>
<dd>Specify the remote service access point.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#STRCMNTRC.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="STRCMNTRC.LCLSAP"></a>
<h3>Local SAP (LCLSAP)</h3>
<p>Specifies the local service access point receiving and sending the data to be traced.
</p>
<dl>
<dt><b><i>hexadecimal-value</i></b></dt>
<dd>Specify the local service access point.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#STRCMNTRC.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="STRCMNTRC.IPPCLNUM"></a>
<h3>IP protocol number (IPPCLNUM)</h3>
<p>Specifies the Internet Protocol (IP) number to be traced.
</p>
<dl>
<dt><b>*ICMP6</b></dt>
<dd>The Internet control message group is traced.
</dd>
<dt><b>*IGMP</b></dt>
<dd>The Internet group management group is traced.
</dd>
<dt><b>*TCP</b></dt>
<dd>The transmission control group is traced.
</dd>
<dt><b>*EGP</b></dt>
<dd>The exterior gateway protocol group is traced.
</dd>
<dt><b>*IGP</b></dt>
<dd>A private interior gateway group is traced.
</dd>
<dt><b>*UDP</b></dt>
<dd>The user datagram group is traced.
</dd>
<dt><b><i>0-255</i></b></dt>
<dd>Specify the Internet Protocol (IP) number to trace.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#STRCMNTRC.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="STRCMNTRC.RMTIPADR"></a>
<h3>Remote IP address (RMTIPADR)</h3>
<p>Specifies the remote Internet Protocol (IP) address to be traced.
</p>
<dl>
<dt><b><i>character-value</i></b></dt>
<dd>Specify the remote IP address to be traced.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#STRCMNTRC.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="STRCMNTRC.LMITRCOPTS"></a>
<h3>LMI trace options (LMITRCOPTS)</h3>
<p>Specifies the type of data to be placed in the trace buffer.
</p>
<dl>
<dt><b><u>*ALLDTA</u></b></dt>
<dd>All data, including the local management interface (LMI), is placed in the trace buffer.
</dd>
<dt><b>*NOLMI</b></dt>
<dd>All data, except LMI data, is placed in the trace buffer.
</dd>
<dt><b>*LMIONLY</b></dt>
<dd>Only LMI data is placed in the trace buffer.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#STRCMNTRC.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="STRCMNTRC.NWSTRCOPTS"></a>
<h3>NWS trace options (NWSTRCOPTS)</h3>
<p>Specifies the type of data to be placed in the trace buffer.
</p>
<dl>
<dt><b><u>*NETBIOS</u></b></dt>
<dd>All NetBIOS data is placed in the trace buffer.
</dd>
<dt><b>*INTERNAL</b></dt>
<dd>The communications processor operating system data is placed in the trace buffer.
</dd>
<dt><b>*TCPIP</b></dt>
<dd>All TCP/IP data for network server description applications is placed in the trace buffer.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#STRCMNTRC.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="STRCMNTRC.WCHMSG"></a>
<h3>Watch for message (WCHMSG)</h3>
<p>Specifies up to five message identifiers which are to be watched for. If a value other than *NONE is specified, you must specify where to watch for the message on the WCHMSGQ parameter. When the watched for message is added to the specified message queue or log, the trace exit program is called; if no trace exit program is defined, the trace stops.
</p>
<p><b>Single values</b>
</p>
<dl>
<dt><b><u>*NONE</u></b></dt>
<dd>No messages will be watched for.
</dd>
</dl>
<p><b>Element 1: Message identifier</b>
</p>
<dl>
<dt><b><i>name</i></b></dt>
<dd>Specify the 7-character message identifier to be watched for.
</dd>
</dl>
<p><b>Element 2: Comparison data</b>
</p>
<p>Specify comparison data to be used if a message matching the specified message ID is added to the specified message queue or log. If the message data, the "From program" or the "To program" includes the specified text, the watched for condition is true. If the message data, the "From program" or the "To program" does not contain the specified text, the trace function continues.
</p>
<dl>
<dt><b><u>*NONE</u></b></dt>
<dd>No comparison data is specified. If a message matching the specified message ID is added to the specified message queue or log, the watched for condition is true.
</dd>
<dt><b><i>character-value</i></b></dt>
<dd>Specify the text string used to compare against the message data, the "From program" or the "To program" of the watched for message. This text is case sensitive and can be quoted in order to specify imbedded or trailing blanks.
</dd>
</dl>
<p><b>Element 3: Compare against</b>
</p>
<p>Specify which part of the message the comparison data specified for element 2 is to be compared against.
</p>
<dl>
<dt><b><u>*MSGDATA</u></b></dt>
<dd>The comparison data will be compared against the message replacement data.
</dd>
<dt><b>*FROMPGM</b></dt>
<dd>The comparison data will be compared against the name of the program sending the message, or the name of the ILE program that contains the procedure sending the message.
</dd>
<dt><b>*TOPGM</b></dt>
<dd>The comparison data will be compared against the name of the program the message was sent to, or the name of the ILE program that contains the procedure the message was sent to.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#STRCMNTRC.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="STRCMNTRC.WCHMSGQ"></a>
<h3>Watched message queue (WCHMSGQ)</h3>
<p>Specifies where to watch for the message identifiers specified on the WCHMSG parameter. You can specify to watch the message being added to the system operator message queue, the history log, other message queues, and job logs. Up to three message queues or special values can be specified.
</p>
<p><b>Element 1: Message queue</b>
</p>
<p><b>Single values</b>
</p>
<dl>
<dt><b><u>*SYSOPR</u></b></dt>
<dd>Watch messages added to the system operator message queue (QSYSOPR message queue in library QSYS).
</dd>
<dt><b>*JOBLOG</b></dt>
<dd>Watch messages added to the job logs of the jobs specified for the <b>Watched job (WCHJOB)</b> parameter.
</dd>
<dt><b>*HSTLOG</b></dt>
<dd>Watch messages added to the history log (QHST message queue in library QSYS).
</dd>
</dl>
<dl>
<dt><b></b></dt>
<dd>
<p><b>Qualifier 1: Message queue</b>
</p>
<dl>
<dt><b><i>name</i></b></dt>
<dd>Specify the name of the message queue to watch.
</dd>
</dl>
</dd>
<dt><b></b></dt>
<dd>
<p><b>Qualifier 2: Library</b>
</p>
<dl>
<dt><b><u>*LIBL</u></b></dt>
<dd>All libraries in the library list for the current thread are searched until the first match is found.
</dd>
</dl>
<dl>
<dt><b><i>name</i></b></dt>
<dd>Specify the name of the library where the message queue is located.
</dd>
</dl>
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#STRCMNTRC.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="STRCMNTRC.WCHJOB"></a>
<h3>Watched job (WCHJOB)</h3>
<p>Specifies the job whose job log is watched for the messages specified on the WCHMSG parameter. The specified job will only be watched if *JOBLOG is specified on the WCHMSGQ parameter. Up to five job names may be specified.
</p>
<p><b>Single values</b>
</p>
<dl>
<dt><b><u>*</u></b></dt>
<dd>Only the job log of the job that issued this trace command is watched.
</dd>
</dl>
<p><b>Element 1: Job name</b>
</p>
<dl>
<dt><b></b></dt>
<dd>
<p><b>Qualifier 1: Job name</b>
</p>
<dl>
<dt><b><i>generic-name</i></b></dt>
<dd>Specify the generic name of the job to be watched. A generic name is a character string of one or more characters followed by an asterisk (*); for example, ABC*. The asterisk substitutes for any valid characters. A generic job name specifies all jobs with job names that begin with the generic prefix.
</dd>
<dt><b><i>name</i></b></dt>
<dd>Specify the name of the job to be watched.
</dd>
</dl>
</dd>
<dt><b></b></dt>
<dd>
<p><b>Qualifier 2: User</b>
</p>
<dl>
<dt><b><i>generic-name</i></b></dt>
<dd>Specify the generic name of the user name of the job to be watched. A generic name is a character string of one or more characters followed by an asterisk (*); for example, ABC*. The asterisk substitutes for any valid characters. A generic user name specifies all jobs with the specified job name and with user names that begin with the generic prefix.
</dd>
<dt><b><i>name</i></b></dt>
<dd>Specify the user name of the job to be watched.
</dd>
</dl>
</dd>
<dt><b></b></dt>
<dd>
<p><b>Qualifier 3: Number</b>
</p>
<dl>
<dt><b><u>*ALL</u></b></dt>
<dd>All jobs with the specified job name and user name are watched.
</dd>
<dt><b><i>000001-999999</i></b></dt>
<dd>Specify the job number to further qualify the job name and user name. You cannot specify a job number if a generic job name or a generic user name qualifier is specified.
</dd>
</dl>
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#STRCMNTRC.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="STRCMNTRC.WCHLICLOG"></a>
<h3>Watch for LIC log entry (WCHLICLOG)</h3>
<p>Specifies up to five licensed internal code (LIC) log entry identifiers which are to be watched for. Each LIC log entry contains a major and a minor code. The watched for condition will be met if a LIC log entry is added that matches the specified major and minor codes and any comparison data specified. When the watched for log entry is added to the LIC log, the trace exit program is called, even when the comparison data specified does not match; if no trace exit program is defined, the trace stops.
</p>
<p><b>Single values </b>
</p>
<dl>
<dt><b><u>*NONE</u></b></dt>
<dd>No LIC log entries will be watched for.
</dd>
</dl>
<p><b>Element 1: Major code</b>
</p>
<dl>
<dt><b>*ALL</b></dt>
<dd>Any LIC log entry major code will be considered to be a match. If *ALL is specified for the major code, you cannot specify *ALL for the LIC log entry minor code.
</dd>
<dt><b><i>character-value</i></b></dt>
<dd>Specify the LIC log major code to be watched for. You can specify either a hexadecimal digit or a question mark for each character in the four-digit code. A question mark is a wildcard character that will match any digit in that position. Up to three wildcard characters can be specified.
</dd>
</dl>
<p><b>Element 2: Minor code</b>
</p>
<dl>
<dt><b>*ALL</b></dt>
<dd>Any LIC log entry minor code will be considered to be a match. If *ALL is specified for the minor code, you cannot specify *ALL for the LIC log entry major code.
</dd>
<dt><b><i>character-value</i></b></dt>
<dd>Specify the LIC log minor code to be watched for. You can specify either a hexadecimal digit or a question mark for each character in the four-digit code. A question mark is a wildcard character that will match any digit in that position. Up to three wildcard characters can be specified.
</dd>
</dl>
<p><b>Element 3: Comparison data</b>
</p>
<p>Specify comparison data to be used if a log entry matching the specified major and minor codes is added to the licensed internal code (LIC) log. If this text is found in the LIC log entry data fields of the watched for log entry, the watched for condition is true. If this text is not found in the LIC log entry data fields of the watched for log entry and no exit program is specified on the TRCPGM parameter, the trace function continues. If the log entry matches the specified major and minor codes and an exit program is specified on the TRCPGM parameter, but the entry data does not contain the specified text, the exit program is called to determine if the trace should continue or stop.
</p>
<dl>
<dt><b><u>*NONE</u></b></dt>
<dd>No comparison data is specified. If a LIC log entry matching the specified major and minor codes is added to the LIC log, the watched for condition is true.
</dd>
<dt><b><i>character-value</i></b></dt>
<dd>Specify the text string used to compare against the entry data of the watched for log entry. If this text is found in the LIC log entry data fields compared of a watched for log entry, the watch condition is considered to be true. This text is case sensitive. The LIC log fields which can be compared are TDE number, task name, server type, job name, user ID, job number, thread ID, exception ID, LIC module compile timestamp, LIC module offset, LIC module RU name, LIC module name, LIC module entry point name. The comparison data cannot be used to match across two fields, and can match an entire field or a substring of any field.
<p>When watching for an exception ID, all four hexadecimal digits of the exception ID must be specified. Also, the prefix MCH may be specified if you want to compare only against the exception ID field and avoid possible substring matches with the other fields.
</p>
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#STRCMNTRC.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="STRCMNTRC.WCHTIMO"></a>
<h3>Length of time to watch (WCHTIMO)</h3>
<p>Specifies the time limit, in minutes, for watching for a message or a licensed internal code (LIC) log entry. When the specified amount of time has elapsed, the trace exit program is called (if one was specified on the TRCPGM parameter), the trace is ended, and message CPI3999 is sent to the system operator message queue.
</p>
<dl>
<dt><b><u>*NOMAX</u></b></dt>
<dd>There is no time limit for watching for a particular message or LIC log entry.
</dd>
<dt><b><i>1-43200</i></b></dt>
<dd>Specify the number of minutes that the trace will remain active while none of the watched for conditions have been met.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#STRCMNTRC.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="STRCMNTRC.TRCPGM"></a>
<h3>Trace program (TRCPGM)</h3>
<p>Specifies the program to be called for user-defined trace commands and procedures.
</p>
<p>The trace program will be called:
</p>
<ul>
<li>Before the application trace starts.
</li>
<li>After a match of a message identifier specified for the WCHMSG parameter, or a match of a Licensed Internal Code (LIC) log entry specified for the WCHLICLOG parameter occurs.
</li>
<li>When the time interval specified on the TRCPGMITV parameter is reached.
</li>
<li>When the length of time to watch specified on WCHTIMO parameter is reached.
</li>
</ul>
<p>There are three input parameters and one output parameter associated with the trace program. The four parameters are required:
</p>
<p>
<pre>
1 Trace option setting Input Char(10)
2 Reserved Input Char(10)
3 Error detected Output Char(10)
4 Comparison data Input Char(*)
</pre>
</p>
<p>Allowed values for the "Trace option setting" parameter are:
</p>
<dl>
<dt><b>*ON</b></dt>
<dd>The watch for trace facility is starting when the collection of trace information is started.
</dd>
<dt><b>*MSGID</b></dt>
<dd>A match on a message id specified on WCHMSG parameter occurred.
</dd>
<dt><b>*LICLOG</b></dt>
<dd>A match on a LIC log specified on the WCHLICLOG parameter occurred.
</dd>
<dt><b>*CMPDATA</b></dt>
<dd>The major and minor code of a LIC log matched, but the comparison data did not.
</dd>
<dt><b>*INTVAL</b></dt>
<dd>The time interval specified on TRCPGMITV parameter is elapsed.
</dd>
<dt><b>*WCHTIMO</b></dt>
<dd>The length of time to watch specified on WCHTIMO parameter is elapsed.
</dd>
</dl>
<p>The "Reserved" parameter must be set to blanks.
</p>
<p>Allowed values for the "Error detected" parameter are:
</p>
<dl>
<dt><b>*CONTINUE</b></dt>
<dd>The trace and the watch for trace event facility will continue running.
</dd>
<dt><b>*STOP</b></dt>
<dd>The trace and the watch for trace event facility will be ended.
</dd>
<dt><b>*ERROR</b></dt>
<dd>Error detected by customer trace program.
</dd>
</dl>
<p>Allowed values for the "Comparison data" parameter when *MSGID is specified for the "Trace option setting" parameter will be the following structure:
</p>
<p>
<pre>
OFFSET TYPE FIELD
Dec Hex
0 0 BINARY(4) Length of trace information
4 4 CHAR(7) Message ID
11 B CHAR(9) Reserved
20 14 BINARY(4) Offset to comparison data
24 18 BINARY(4) Length of comparison data
* * CHAR(*) Message comparison data
</pre>
</p>
<p>Allowed values for the "Comparison data" parameter when *LICLOG or *CMPDATA is specified for the "Trace option setting" parameter will be the following structure:
</p>
<p>
<pre>
OFFSET TYPE FIELD
Dec Hex
0 0 BINARY(4) Length of trace information
4 4 CHAR(4) LIC Log major code
8 8 CHAR(4) LIC Log minor code
12 C CHAR(8) LIC Log identifier
20 14 BINARY(4) Offset to comparison data
24 18 BINARY(4) Length of comparison data
* * CHAR(*) LIC log comparison data
</pre>
</p>
<p>Allowed values for the "Comparison data" parameter when *ON, *INTVAL or *WCHTIMO is specified for the "Trace option setting" parameter will be the following structure:
</p>
<p>
<pre>
OFFSET TYPE FIELD
Dec Hex
0 0 BINARY(4) Length of trace information (always 4).
</pre>
</p>
<p>For more information on the trace exit program interface, refer to the System API Reference information in the iSeries Information Center at http://www.iseries.ibm.com/infocenter .
</p>
<p><b>Single values</b>
</p>
<dl>
<dt><b><u>*NONE</u></b></dt>
<dd>No trace exit program is defined. If a watched for message or licensed internal code (LIC) log entry is added, or if the specified watch time limit is exceeded, the trace function ends.
</dd>
</dl>
<p><b>Qualifier 1: Trace program</b>
</p>
<dl>
<dt><b><i>name</i></b></dt>
<dd>Specify the name of the trace exit program.
</dd>
</dl>
<p><b>Qualifier 2: Library</b>
</p>
<dl>
<dt><b><u>*LIBL</u></b></dt>
<dd>All libraries in the job's library list are searched until the first match is found.
</dd>
<dt><b><i>name</i></b></dt>
<dd>Specify the name of the library where the user exit program is located.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#STRCMNTRC.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="STRCMNTRC.TRCPGMITV"></a>
<h3>Time interval (TRCPGMITV)</h3>
<p>Specifies how often the trace exit program will be called.
</p>
<dl>
<dt><b><u>*NONE</u></b></dt>
<dd>No time interval is specified. The trace exit program will not be called because a time interval has elapsed.
</dd>
<dt><b><i>1-9999</i></b></dt>
<dd>Specify the interval of time, in seconds, of how often the trace exit program will be called. This must be less than the amount of time specified for the <b>Length of time to watch (WCHTIMO)</b> parameter.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#STRCMNTRC.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="STRCMNTRC.TEXT"></a>
<h3>Trace description (TEXT)</h3>
<p>Specifies the text that briefly describes the object.
</p>
<dl>
<dt><b><u>*BLANK</u></b></dt>
<dd>Text is not specified.
</dd>
<dt><b><i>character-value</i></b></dt>
<dd>Specify up to 20 characters of text.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#STRCMNTRC.Top_Of_Page">Top</a></td></tr>
</table>
<hr size="2" width="100%">
<div><h3><a name="STRCMNTRC.COMMAND.EXAMPLES">Examples</a> </h3>
<p><b>Example 1: Start a Communications Trace for a Line Description</b>
</p>
<p>
<pre>
STRCMNTRC CFGOBJ(*QESLINE) CFGTYPE(*LIN)
</pre>
</p>
<p>This command starts a communications trace of line description QESLINE.
</p>
<p><b>Example 2: Start a Trace and Watch for a Message to End the Trace</b>
</p>
<p>
<pre>
STRCMNTRC CFGOBJ(LINE001) CFGTYPE(*LIN) WCHMSG((MCH2804))
WCHMSGQ((*SYSOPR) (*JOBLOG))
WCHJOB((*ALL/MYUSER/MYJOBNAME))
TRCPGM(MYLIB/TRCEXTPGM)
</pre>
</p>
<p>This command starts a communications trace of line description LINE001. The trace will be ended when MCH2804 message is found on the System Operator message queue or within the *ALL/MYUSER/MYJOBNAME job log. Also, MYLIB/TRCEXTPGM is specified as a trace exit program.
</p>
<p><b>Example 3: Start a Trace and Watch for a LIC Log Entry to End the Trace</b>
</p>
<p>
<pre>
STRCMNTRC CFGOBJ(LINE001) CFGTYPE(*LIN)
WCHLICLOG(('99??' 9932 MYJOBNAME))
WCHTIMO(*NOMAX)
</pre>
</p>
<p>This command starts a communications trace of line description LINE001. The trace will be ended when a Licensed Internal Code (LIC) log entry that has a major code starting with 99 and a minor code of 9932 is generated on the system. Also, the LIC log information should contain the text "MYJOBNAME". *NOMAX on WCHTIMO parameter indicates that the trace will be active until the event occurs or ENDCMNTRC command is issued manually.
</p>
</div>
<table width="100%">
<tr><td align="right"><a href="#STRCMNTRC.Top_Of_Page">Top</a></td></tr>
</table>
<hr size="2" width="100%">
<div><h3><a name="STRCMNTRC.ERROR.MESSAGES">Error messages</a> </h3>
<p><b><u>*ESCAPE Messages</u></b>
</p>
<dl>
<dt><b>CPF2601</b></dt>
<dd>Line description &amp;1 not found.
</dd>
<dt><b>CPF2634</b></dt>
<dd>Not authorized to object &amp;1.
</dd>
<dt><b>CPF39AA</b></dt>
<dd>Trace &amp;1 type &amp;2 already exists
</dd>
<dt><b>CPF39AB</b></dt>
<dd>Beginning or ending bytes exceeds maximum value
</dd>
<dt><b>CPF39AC</b></dt>
<dd>Total of beginning and ending bytes exceeds maximum value
</dd>
<dt><b>CPF39AD</b></dt>
<dd>&amp;1 type &amp;2 cannot be traced
</dd>
<dt><b>CPF39A6</b></dt>
<dd>Storage could not be allocated
</dd>
<dt><b>CPF39A7</b></dt>
<dd>Trace storage not available in communications processor
</dd>
<dt><b>CPF39A8</b></dt>
<dd>Not authorized to communications trace service tool
</dd>
<dt><b>CPF39A9</b></dt>
<dd>Error occurred during communications trace function
</dd>
<dt><b>CPF39BD</b></dt>
<dd>Network interface description &amp;1 not found
</dd>
<dt><b>CPF39BF</b></dt>
<dd>Remote IP address not valid.
</dd>
<dt><b>CPF39B6</b></dt>
<dd>Communications trace function cannot be performed
</dd>
<dt><b>CPF39C0</b></dt>
<dd>Controller description &amp;1 not found.
</dd>
<dt><b>CPF39C1</b></dt>
<dd>Controller description &amp;1 not valid.
</dd>
<dt><b>CPF39C2</b></dt>
<dd>Number of user bytes to trace must be *CALC.
</dd>
<dt><b>CPF39F1</b></dt>
<dd>Trace buffer size too large.
</dd>
<dt><b>CPF39F2</b></dt>
<dd>Cannot allocate library &amp;1
</dd>
<dt><b>CPF98A2</b></dt>
<dd>Not authorized to &amp;1 command.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#STRCMNTRC.Top_Of_Page">Top</a></td></tr>
</table>
</body>
</html>