58 lines
2.3 KiB
HTML
58 lines
2.3 KiB
HTML
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
|
<html>
|
|
<head>
|
|
<META http-equiv="Content-Type" content="text/html; charset=utf-8">
|
|
<LINK rel="stylesheet" type="text/css" href="../../../rzahg/ic.css">
|
|
|
|
<title>Use wsadmin to configure a trace for your application server</title>
|
|
</head>
|
|
<BODY>
|
|
<!-- Java sync-link -->
|
|
<SCRIPT LANGUAGE="Javascript" SRC="../../../rzahg/synch.js" TYPE="text/javascript"></SCRIPT>
|
|
<h3>Use wsadmin to configure a trace for your application server</h3>
|
|
<p>To use wsadmin to configure a trace for your application server, follow these
|
|
steps:</p>
|
|
<ol>
|
|
<li>
|
|
<p>On the CL command line, run the STRQSH (Start Qshell) command.</p>
|
|
</li>
|
|
<li>
|
|
<p>Run the cd command to change to the directory that contains the wsadmin
|
|
tool:</p>
|
|
<pre>cd /QIBM/ProdData/WebASE/ASE5/bin</pre>
|
|
</li>
|
|
<li>
|
|
<p><a href="../admin/wsarun.htm#start">Start wsadmin</a>. </p>
|
|
</li>
|
|
<li>
|
|
<p>At the wsadmin prompt, run this command to identify the server and assign
|
|
it to the server variable:</p>
|
|
<pre>set server [$AdminConfig getid /Cell:<em>myCell</em>/Node:<em>myNode</em>/Server:<em>myAppSvr</em>/]</pre>
|
|
<p>where <em>myCell</em> is the name of the cell that contains your application
|
|
server, <em>myNode</em> is the name of the node that contains your application
|
|
server, and <em>myAppSvr</em> is the name of your application server.</p>
|
|
</li>
|
|
<li>
|
|
<p>Run this command to identify the trace service for the application server
|
|
and assign it to the ts variable:</p>
|
|
<pre>set ts [$AdminConfig list TraceService $server]</pre>
|
|
</li>
|
|
<li>
|
|
<p>Set the trace string:</p>
|
|
<p>This example sets the trace string for a single component:</p>
|
|
<pre>$AdminConfig modify $ts {{startupTraceSpecification
|
|
com.ibm.websphere.management.*=all=enabled}}</pre>
|
|
<p>The example sets the trace string for multiple components:</p>
|
|
<pre>$AdminConfig modify $ts {{startupTraceSpecification
|
|
com.ibm.websphere.management.*=all=enabled:
|
|
com.ibm.ws.management.*=all=enabled:com.ibm.ws.runtime.*=all=enabled}}</pre>
|
|
<p><strong>Note:</strong> These commands have been wrapped for display purposes.</p>
|
|
</li>
|
|
<li>
|
|
<p>Run this command to save your changes:</p>
|
|
<pre>$AdminConfig save</pre>
|
|
</li>
|
|
</ol>
|
|
</body>
|
|
</html>
|