Trace settings for wsadmin
You can specify trace settings for wsadmin to help you troubleshoot the commands that you run. You can edit the wsadmin.properties file to specify default trace settings for the wsadmin tool, or run the trace command at the wsadmin prompt to specify trace settings for your current wsadmin session.
Configure trace settings in the wsadmin.properties file
To configure default settings for the wsadmin tool, edit the com.ibm.ws.scripting.traceString and com.ibm.ws.scripting.traceFile properties in the wsadmin.properties file. For more information on the wsadmin.properties file, see Java properties of wsadmin.
To enable tracing for wsadmin, specify these values in the wsadmin.properties file:
- com.ibm.ws.scripting.traceString=com.ibm.*=all=enabled
- com.ibm.ws.scripting.traceFile=trace_file, where trace_file is the fully-qualified name of the file that contains the tracing and logging information. If you enable tracing and do not specify this property, tracing and logging information is displayed in the administrative console.
To disable tracing for wsadmin, specify this value in the wsadmin.properties file:
- com.ibm.ws.scripting.traceString=com.ibm.*=all=disabled
Configure tracing for the current wsadmin session
To enable or disable tracing for the current wsadmin session, run the trace command at the wsadmin prompt.
To enable tracing for a wsadmin session, follow these steps:
- Start wsadmin.
- At the wsadmin prompt, run this command:
$AdminControl trace com.ibm.*=all=enabled
To disable tracing for a wsadmin session, follow these steps:
- Start wsadmin.
- At the wsadmin prompt, run this command:
$AdminControl trace com.ibm.*=all=disabled