ibm-information-center/dist/eclipse/plugins/i5OS.ic.rzatz_5.4.0.1/51/trb/trbtraceonoff.htm

57 lines
2.1 KiB
HTML
Raw Normal View History

2024-04-02 14:02:31 +00:00
<!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 turn traces on and off for your application server</title>
</head>
<BODY>
<!-- Java sync-link -->
<SCRIPT LANGUAGE="Javascript" SRC="../../../rzahg/synch.js" TYPE="text/javascript"></SCRIPT>
<h3><a name="trbtraceonoff"></a>Use wsadmin to turn traces on and off for your application server</h3>
<p>To turn traces on and off in 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/WebASE51/ASE/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 object name for
the TraceService MBean running in the process:</p>
<pre>$AdminControl completeObjectName type=<em>Server</em>,name=<em>server,*</em></pre>
</li>
<li>
<p>Run this command to obtain the name of the object and set it to a variable:</p>
<pre>set ts [$AdminControl completeObjectName type=TraceService,process=<em>myAppSvr</em>,*]</pre>
<p>where <em>myAppSvr</em> is the name of the application server for which
you want to enable or disable traces.</p>
</li>
<li>
<p>Turn traces on or off for the application server.</p>
<ul>
<li>
<p>Run this command to turn on traces for the server:</p>
<pre>$AdminControl setAttribute $ts traceSpecification com.ibm.*=all=enabled</pre>
</li>
<li>
<p>Run this command to turn off traces for the server:</p>
<pre>$AdminControl setAttribute $ts traceSpecification com.ibm.*=all=disabled</pre>
</li>
</ul>
</li>
<li>
<p>Run this command to save your changes:</p>
<pre>$AdminConfig save</pre>
</li>
</ol>
</body>
</html>