Example: Turning traces on and off in a server process with the wsadmin tool
The following example turns on tracing in a server process:
- Identify the object name for the TraceService MBean running in the process:
$AdminControl completeObjectName type=Server,name=server1,*- Obtain the name of the object and set it to a variable:
set ts [$AdminControl completeObjectName type=TraceService,process=server1,*]- Turn on traces for the server:
$AdminControl setAttribute $ts traceSpecification com.ibm.*=all=enabled