ibm-information-center/dist/eclipse/plugins/i5OS.ic.rzahy_5.4.0.1/rzahydebugoption.htm

64 lines
3.9 KiB
HTML

<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US" xml:lang="en-us">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="dc.language" scheme="rfc1766" content="en-us" />
<!-- All rights reserved. Licensed Materials Property of IBM -->
<!-- US Government Users Restricted Rights -->
<!-- Use, duplication or disclosure restricted by -->
<!-- GSA ADP Schedule Contract with IBM Corp. -->
<meta name="dc.date" scheme="iso8601" content="2005-09-06" />
<meta name="copyright" content="(C) Copyright IBM Corporation 1998, 2006" />
<meta name="security" content="public" />
<meta name="Robots" content="index,follow"/>
<meta http-equiv="PICS-Label" content='(PICS-1.1 "http://www.icra.org/ratingsv02.html" l gen true r (cz 1 lz 1 nz 1 oz 1 vz 1) "http://www.rsac.org/ratingsv01.html" l gen true r (n 0 s 0 v 0 l 0) "http://www.classify.org/safesurf/" l gen true r (SS~~000 1))' />
<title>Directory Server (LDAP) - Use the LDAP_OPT_DEBUG option to trace errors</title>
<link rel="stylesheet" type="text/css" href="ibmidwb.css" />
<link rel="stylesheet" type="text/css" href="ic.css" />
</head>
<body>
<a id="Top_Of_Page" name="Top_Of_Page"></a><!-- Java sync-link -->
<script language = "Javascript" src = "../rzahg/synch.js" type="text/javascript"></script>
<a name="rzahydebugoption"></a>
<h2 id="rzahydebugoption">Use the LDAP_OPT_DEBUG option to trace errors</h2>
<p>You can use the LDAP_OPT_DEBUG option of the <span class="bold">ldap_set_option()</span> API to trace problems with clients that are using the
LDAP C APIs. The debug option has multiple debug level setting that you can
use to aid in troubleshooting problems with these applications.</p>
<p>The following is an example of enabling the client trace debug option.</p>
<div class="lines"><tt class="xph">int debugvalue= LDAP_DEBUG_TRACE | LDAP_DEBUG_PACKETS;<br />
ldap_set_option(&nbsp;&nbsp;1d, LDAP_OPT_DEBUG, &amp;debugvalue); </tt><br />
</div>
<p>An alternate way of setting the debug level is to configure the numerical
value of the<tt class="xph"> LDAP_DEBUG</tt> environment variable, for the
job in which the client application runs, to the same numerical value that
the <tt class="xph">debugvalue</tt> would be if the<span class="bold"> ldap_set_option() </span> API is used.</p>
<p>An example of enabling the client trace using the LDAP_DEBUG environment
variable is the following: </p>
<div class="lines"><tt class="xph">ADDENVVAR ENVVAR(LDAP_DEBUG) VALUE(0x0003)</tt><br />
</div>
<p>After running the client that produces the problem you are having, type
the following at the iSeries prompt:</p>
<div class="lines"><tt class="xph">DMPUSRTRC&nbsp;&nbsp;ClientJobNumber</tt><br />
</div><p class="indatacontent"> where <tt class="xph">ClientJobNumber</tt> is the number of the client
job.</p>
<p>To display this information interactively, type the following at the iSeries
prompt:</p>
<div class="lines"><tt class="xph">DSPPFM QAP0ZDMP QP0Znnnnnn</tt><br />
</div><p class="indatacontent">where <tt class="xph">QAP0ZDMP</tt> contains a zero and <tt class="xph">nnnnnn</tt> is the job number.</p>
<p>To save this information in order to send the information to service, take
the following steps:</p>
<ol type="1">
<li>Create a SAVF file using the create SAVF (CRTSAVF) command.</li>
<li>Type the following at the iSeries command prompt.
<div class="lines"><tt class="xph">SAVOBJ OBJ(QAP0ZDMP) LIB(QTEMP) DEV(*SAVF) SAVF(<span class="italic">xxx</span>)</tt><br />
</div>where <tt class="xph">QAP0ZDMP</tt> contains a
zero and <tt class="xph"><span class="italic">xxx</span></tt> is the name that you specified
for the SAVF file.</li></ol>
<a id="Bot_Of_Page" name="Bot_Of_Page"></a>
</body>
</html>