Use wsadmin to configure a trace for your application server

To use wsadmin to configure a trace for your application server, follow these steps:

  1. On the CL command line, run the STRQSH (Start Qshell) command.

  2. Run the cd command to change to the directory that contains the wsadmin tool:

    cd /QIBM/ProdData/WebASE51/ASE/bin
  3. Start wsadmin.

  4. At the wsadmin prompt, run this command to identify the server and assign it to the server variable:

    set server [$AdminConfig getid /Cell:myCell/Node:myNode/Server:myAppSvr/]

    where myCell is the name of the cell that contains your application server, myNode is the name of the node that contains your application server, and myAppSvr is the name of your application server.

  5. Run this command to identify the trace service for the application server and assign it to the ts variable:

    set ts [$AdminConfig list TraceService $server]
  6. Set the trace string:

    This example sets the trace string for a single component:

    $AdminConfig modify $ts {{startupTraceSpecification
     com.ibm.websphere.management.*=all=enabled}}

    The example sets the trace string for multiple components:

    $AdminConfig modify $ts {{startupTraceSpecification
     com.ibm.websphere.management.*=all=enabled:
     com.ibm.ws.management.*=all=enabled:com.ibm.ws.runtime.*=all=enabled}}

    Note: These commands have been wrapped for display purposes.

  7. Run this command to save your changes:

    $AdminConfig save