To turn traces on and off in your application server, follow these steps:
On the CL command line, run the STRQSH (Start Qshell) command.
Run the cd command to change to the directory that contains the wsadmin tool:
cd /QIBM/ProdData/WebASE/ASE5/bin
At the wsadmin prompt, run this command to identify the object name for the TraceService MBean running in the process:
$AdminControl completeObjectName type=Server,name=server,*
Run this command to obtain the name of the object and set it to a variable:
set ts [$AdminControl completeObjectName type=TraceService,process=myAppSvr,*]
where myAppSvr is the name of the application server for which you want to enable or disable traces.
Turn traces on or off for the application server.
Run this command to turn on traces for the server:
$AdminControl setAttribute $ts traceSpecification com.ibm.*=all=enabled
Run this command to turn off traces for the server:
$AdminControl setAttribute $ts traceSpecification com.ibm.*=all=disabled
Run this command to save your changes:
$AdminConfig save