Before you begin
Before starting this task, the wsadmin tool must be running. See the Starting the wsadmin scripting client article for more information.Why and when to perform this task
Perform the following steps to turning traces on and off in server processes:
Steps for this task
$AdminControl completeObjectName type=TraceService,node=mynode,process=server1,*
AdminControl.completeObjectName('type=TraceService,node=mynode,process=server1,*')
set ts [$AdminControl completeObjectName type=TraceService,process=server1,*]
ts = AdminControl.completeObjectName('type=TraceService,process=server1,*')
$AdminControl setAttribute $ts traceSpecification com.ibm.*=all=enabled
AdminControl.setAttribute(ts, 'traceSpecification', 'com.ibm.*=all=enabled')
$AdminControl setAttribute $ts traceSpecification com.ibm.*=all=disabled
AdminControl.setAttribute(ts, 'traceSpecification', 'com.ibm.*=all=disabled')
Related concepts
AdminControl object for scripted administration
Enabling tracing and logging
Related reference
Commands for the AdminControl object