Before starting this task, the wsadmin tool must be running. See the Starting the wsadmin scripting client article for more information.
Perform the following steps to trace operations:
Step for this task Enable wsadmin client tracing with the following command:
$AdminControl trace com.ibm.*=all=enabled
AdminControl.trace('com.ibm.*=all=enabled')
where:
$ | is a Jacl operator for substituting a variable name with its value |
AdminControl | is an object that enables the manipulation of MBeans running in a WebSphere server process |
trace | is an AdminControl command |
com.ibm.*=all=enabled | indicates to turn on tracing |
$AdminControl trace com.ibm.*=all=disabled
AdminControl.trace('com.ibm.*=all=disabled')
where:
$ | is a Jacl operator for substituting a variable name with its value |
AdminControl | is an object that enables the manipulation of MBeans running in a WebSphere server process |
trace | is an AdminControl command |
com.ibm.*=all=disabled | indicates to turn off tracing |
A related property, com.ibm.ws.scripting.traceFile,
designates a file to receive all trace and logging information. The wsadmin.properties file contains a value for this property. Run the wsadmin tool with a value set for this property. It is possible to run without this property set, where all logging and tracing goes to the administrative console.
Related concepts
AdminControl object for scripted administration
Related tasks
Setting up profile scripts to make tracing easier using scripting
Dumping threads in server processes using scripting
Related reference
Commands for the AdminControl object