Communications Traces

From Try-AS/400
Revision as of 14:03, 9 July 2026 by PoC (talk | contribs) (Local copy)
Jump to navigation Jump to search

Communications Traces are essentially very much akin to tcpdump or Wireshark on common platforms. It's a multi-step, non-interactive process.

  • Start trace. Network traces are always taken from a line description object.
strcmntrc cfgobj(trnline) cfgtype(*lin) maxstg(16M) usrdta(*max) trcfull(*stoptrc)
  • Run your commands for generating traffic.
  • Stop trace.
endcmntrc cfgobj(trnline) cfgtype(*lin)
  • Format a report from the trace data. Goes to the standard printer queue.
prtcmntrc cfgobj(trnline) cfgtype(*lin) fmttcp(*no) fmtbcd(*no)
  • Delete now unneeded Trace Data.
dltcmntrc cfgobj(trnline) cfgtype(*lin)

Optionally, this trace can be exported to a database file, to be e. g. downloaded via FTP for further treatment.

crtpf file(mylib/qpcsmprt) rcdlen(132)
cpysplf file(qpcsmprt) tofile(mylib/qpcsmprt) splnbr(1)