JANUS TCPLOG: Difference between revisions
Jump to navigation
Jump to search
(Automatically generated page update) |
m (→Usage notes) |
||
(2 intermediate revisions by the same user not shown) | |||
Line 5: | Line 5: | ||
==Syntax== | ==Syntax== | ||
<p class="syntax"> JANUS TCPLOG ddname | <p class="syntax">JANUS TCPLOG ddname | ||
</p> | </p> | ||
Where: ''ddname'' is the DDname of the sequential dataset to contain the log. | Where: ''ddname'' is the DDname of the sequential dataset to contain the log. | ||
One suggested use for a file of captured streams is to provide "playback" for customer-written applications that simulate real workloads during testing of new system or application code. | ==Usage notes== | ||
<ul> | |||
<li>One suggested use for a file of captured streams is to provide "playback" for customer-written applications that simulate real workloads during testing of new system or application code. | |||
The format of the log file is shown below. All values are in binary format except where indicated. | <li>The format of the log file is shown below. All values are in binary format except where indicated. | ||
<table class="syntaxTable"> | <table class="syntaxTable"> | ||
<tr><th> | <tr><th>Bytes</th> | ||
< | <th>Description</th></tr> | ||
<tr><th>0-1</th> | <tr><th>0-1</th> | ||
<td>Record length</td></tr> | <td>Record length</td></tr> | ||
<tr><th>2-3</th> | <tr><th>2-3</th> | ||
<td>Unused</td></tr> | <td>Unused</td></tr> | ||
<tr><th>4-11</th> | <tr><th>4-11</th> | ||
<td>TCP unique connection number</td></tr> | <td>TCP unique connection number</td></tr> | ||
<tr><th>12-15</th> | <tr><th>12-15</th> | ||
<td>Record number</td></tr> | <td>Record number</td></tr> | ||
<tr><th>16-23</th> | <tr><th>16-23</th> | ||
<td>TOD value (in STCK units)</td></tr> | <td>TOD value (in STCK units)</td></tr> | ||
<tr><th>24-27</th> | <tr><th>24-27</th> | ||
<td>Remote IP address</td></tr> | <td>Remote IP address</td></tr> | ||
<tr><th>28-31</th> | <tr><th>28-31</th> | ||
<td>Local IP address</td></tr> | <td>Local IP address</td></tr> | ||
<tr><th>32-33</th> | <tr><th>32-33</th> | ||
<td>Remote port number</td></tr> | <td>Remote port number</td></tr> | ||
<tr><th>34-35</th> | <tr><th>34-35</th> | ||
<td>Local port number</td></tr> | <td>Local port number</td></tr> | ||
<tr><th>36-36</th> | <tr><th>36-36</th> | ||
<td>Direction (EBCDIC character): | <td>Direction (EBCDIC character): | ||
Line 43: | Line 54: | ||
</ul> | </ul> | ||
</td></tr> | </td></tr> | ||
<tr><th>37-37</th> | <tr><th>37-37</th> | ||
<td>Unused</td></tr> | <td>Unused</td></tr> | ||
<tr><th>38-39</th> | <tr><th>38-39</th> | ||
<td>Length of binary data</td></tr> | <td>Length of binary data</td></tr> | ||
<tr><th>40-n</th> | <tr><th>40-n</th> | ||
<td>Binary data (ASCII characters) | <td>Binary data (ASCII characters) | ||
</td></tr></table> | </td></tr></table> | ||
</ul> | |||
==See also== | |||
<ul> | |||
<li>[[List of Janus commands]] | |||
</ul> | |||
[[Category:Janus commands|JANUS TCPLOG]] | [[Category:Janus commands|JANUS TCPLOG]] |
Latest revision as of 20:19, 16 April 2013
Capture Janus port traffic
The JANUS TCPLOG subcommand lets you capture all input and output streams for a particular Janus port. The captured streams are written to a sequential file.
Syntax
JANUS TCPLOG ddname
Where: ddname is the DDname of the sequential dataset to contain the log.
Usage notes
- One suggested use for a file of captured streams is to provide "playback" for customer-written applications that simulate real workloads during testing of new system or application code.
- The format of the log file is shown below. All values are in binary format except where indicated.
Bytes Description 0-1 Record length 2-3 Unused 4-11 TCP unique connection number 12-15 Record number 16-23 TOD value (in STCK units) 24-27 Remote IP address 28-31 Local IP address 32-33 Remote port number 34-35 Local port number 36-36 Direction (EBCDIC character): - R (received)
- S (sent)
37-37 Unused 38-39 Length of binary data 40-n Binary data (ASCII characters)