IBM Support

How To Collect A CWBCOTRC Trace

Question & Answer


Question

How do I gather a CWBCOTRC for IBM support?

Answer

CWBCOTRC is the primary diagnostic and tracing tool for IBM i Access Client Solutions Windows Application Package. There are two environments in which a program can run in Windows, as a service or as a desktop application. Some examples of programs that run as a service include SQL Server and Internet Information Server. Applications used by desktop users would include Microsoft Office and IBM i Access for Windows. The tracing techniques for the two different environments are different and addressed in two sections that follow.

Application runs as a desktop application

If the program is already running, exit the program so that everything of interest is captured in the trace.

Start a Windows command prompt as Administrator (elevated authority is required for parts of the data collection to work).  From this Windows command prompt, run the following commands:

CWBCOTRC OFF

CWBCOTRC DEL

CWBCOTRC ON /WRAP:OFF

Start the program and re-create the problem being traced.

Upon re-creating the problem, return to the Administrator Windows command prompt and run the commands:

CWBCOTRC OFF

CWBSVGET

CWBCOTRC DEL

The CWBSVGET program creates a compressed file with configuration and setup information and the traces that were gathered. Send the resulting file to IBM support.

Application runs as a Windows service

If the program is already running, stop the service so that everything of interest is captured in the trace.

From a Windows command prompt (DOS prompt), run the following commands:

CWBCOTRC OFF /ALLUSERS

CWBCOTRC DEL /ALLUSERS

CWBCOTRC ON /ALLUSERS /WRAP:OFF

Start the service again and re-create the problem being traced.

Upon re-creating the problem, return to the Windows command prompt and run the commands:

CWBCOTRC OFF /ALLUSERS

CWBSVGET

CWBCOTRC DEL /ALLUSERS

The CWBSVGET program creates a compressed file with configuration and setup information and the traces that were gathered. Send the resulting compressed file to IBM support.

[{"Type":"MASTER","Line of Business":{"code":"LOB68","label":"Power HW"},"Business Unit":{"code":"BU070","label":"IBM Infrastructure"},"Product":{"code":"SWG60","label":"IBM i"},"ARM Category":[{"code":"a8m0z0000000CTVAA2","label":"IBM i Access"}],"ARM Case Number":"","Platform":[{"code":"PF012","label":"IBM i"}],"Version":"All Versions"}]

Document Information

Modified date:
14 December 2024

UID

nas8N1022168