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:

To disable tracing for wsadmin, specify this value in the wsadmin.properties file:

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:

  1. Start wsadmin.
  2. At the wsadmin prompt, run this command:
    $AdminControl trace com.ibm.*=all=enabled

To disable tracing for a wsadmin session, follow these steps:

  1. Start wsadmin.
  2. At the wsadmin prompt, run this command:
    $AdminControl trace com.ibm.*=all=disabled