To use wsadmin to configure a trace for 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/WebASE51/ASE/bin
At the wsadmin prompt, run this command to identify the server and assign it to the server variable:
set server [$AdminConfig getid /Cell:myCell/Node:myNode/Server:myAppSvr/]
where myCell is the name of the cell that contains your application server, myNode is the name of the node that contains your application server, and myAppSvr is the name of your application server.
Run this command to identify the trace service for the application server and assign it to the ts variable:
set ts [$AdminConfig list TraceService $server]
Set the trace string:
This example sets the trace string for a single component:
$AdminConfig modify $ts {{startupTraceSpecification com.ibm.websphere.management.*=all=enabled}}
The example sets the trace string for multiple components:
$AdminConfig modify $ts {{startupTraceSpecification com.ibm.websphere.management.*=all=enabled: com.ibm.ws.management.*=all=enabled:com.ibm.ws.runtime.*=all=enabled}}
Note: These commands have been wrapped for display purposes.
Run this command to save your changes:
$AdminConfig save