Turn traces on and off in servers processes using scripting


 

+

Search Tips   |   Advanced Search

 

To use scripting to turn traces on or off in server processes.

Jacl...

### Identify the object name
set ts [$AdminControl completeObjectName type=TraceService,process=MyServer,*]

### Turn tracing on for the server.
$AdminControl setAttribute $ts traceSpecification com.ibm.*=all=enabled

### Turn tracing off
$AdminControl setAttribute $ts traceSpecification com.ibm.*=all=disabled

Jython...

ts = AdminControl.completeObjectName('type=TraceService,process=MyServer,*')

AdminControl.setAttribute(ts, 'traceSpecification', 'com.ibm.*=all=enabled')

AdminControl.setAttribute(ts, 'traceSpecification', 'com.ibm.*=all=disabled')

 

Related tasks

Enable trace on a running server
Set traces using scripting
Tracing operations with the wsadmin tool
Use AdminControl for scripted administration
Working with trace

 

Related

Commands for AdminControl
Tracing and logging configuration