<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Transitional//EN">
<HTML>
<HEAD>
  <!--
    *************************************************************************************
    * Copyright (c) 2005 VERITAS Software Corporation. All rights reserved. *

      For third-party license citations, please see the bottom of this file.
    *************************************************************************************
  -->
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="TEMPLATEBASE" content="vx_vxhelp_2005c">
<meta name="LASTUPDATED" content="06/17/05 10:11:26">
<meta name="PRODUCTNAME" content="VERITAS Software Documentation">
<meta name="FILENAME" content="07_set_params.fm">
     
<title>LogDbg</title>

</HEAD>

<BODY bgcolor="#FFFFFF" link="#000066" vlink="#0000ff" marginheight="0" topmargin="0">
<basefont=1>

<a name="1000260"></a>

<div align="left">
<table border="0" cellspacing="0" cellpadding="0" width="100%">
 <tr>
   <td height="2" border="0" cellspacing="0" cellpadding="0" colspan="2" bgcolor="#000000">
   </td>
 </tr>
 <tr>
   <td height="15" width="50%" border="0" cellspacing="0" cellpadding="0" bgcolor="#cccccc">
    <img src="images/vxsymbol.gif" height="20" width="31" border="0" cellspacing="0" cellpadding="0" align="left">
     
     
   </td>
   <td align="right" width="50%" bgcolor="#cccccc">

<!-- Header Breadcrumbs -->
<font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="-2">&lt;&nbsp;<a href="07_set_params_vcs161_1071741.html" title="Previous - FaultOnMonitorTimeouts">Previous</a>&nbsp;&nbsp;|&nbsp;&nbsp;<a href="07_set_params_vcs163_999062.html" title="Next - MonitorInterval">Next</a>
&nbsp;&gt;&nbsp;&nbsp;</font>
   </td>
 </tr>

 <tr>
  <td bgcolor="#CCCCCC" colspan="2" height="15" align="right">
  <font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="1">Product:  
<a href="vcs_splashpage_docCD_vcs1_103036.vxhd" title="Cluster Server Guides title page ">Cluster Server Guides</a>
  &nbsp;&nbsp;
  </font>
  </td>
 </tr>
 <tr>
  <td bgcolor="#CCCCCC" colspan="2" height="15" align="right">
  <font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="1">Manual:  
<a href="adg_hpux41_titlepage_docCD_vcs95_73700.vxhd" title="Cluster Server 4.1 Agent Developer's Guide title page ">Cluster Server 4.1 Agent Developer's Guide</a>
  &nbsp;&nbsp;
  </font>
  </td>
 </tr>


</table>
</div>

<div align="left">
 <table border="0" width="100%" bgcolor="#FFFFFF">
  <tr>
   <td width="100%" valign="top" bgcolor="#FFFFFF">

<!-- Start Main Topic Content -->
        <a name="startcontent"></a>
	
<h2><font face="Arial, Helvetica, Geneva, sansserif, sans serif, Verdana" size="3" color="#000000"><a name="1000260"></a> LogDbg</font>
</h2>

        
<p>
<font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><a name="1000261"></a><font face="Courier New, Courier, sansserif, sans serif" size="2">LogDbg</font> is a resource type-level attribute that specifies which debug messages are to be logged to the agent log. The <font face="Courier New, Courier, sansserif, sans serif" size="2">LogDbg</font> attribute applies only for those agent entry points written in C++. </font>
</p>

<p>
<font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><a name="1000262"></a>By default, <font face="Courier New, Courier, sansserif, sans serif" size="2">LogDbg&nbsp;</font>is an empty list, meaning that no debug messages are logged for a resource type. Users can modify this attribute for a given resource type, specifying that debug messages of specific severities be printed to the agent log. </font>
</p>

<p>
<font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><a name="1000263"></a>For example, if you want to log debug messages for the FileOnOff resource type with severity levels DBG_3 and DBG_4, use the <font face="Courier New, Courier, sansserif, sans serif" size="2">hatype</font> command:</font>
</p>

<br>
<font face="Courier New, Courier, sansserif, sans serif" size="2"><a name="1000264"></a>#&nbsp;<font face="Courier New, Courier, sansserif, sans serif" size="2"><b>hatype&nbsp;-modify&nbsp;FileOnOff&nbsp;LogDbg&nbsp;-add&nbsp;DBG_3&nbsp;DBG_4</b></font>
</font>
<br>
<font face="Courier New, Courier, sansserif, sans serif" size="2"><a name="1000265"></a>#&nbsp;<font face="Courier New, Courier, sansserif, sans serif" size="2"><b>hatype&nbsp;-display&nbsp;FileOnOff&nbsp;-attribute&nbsp;LogDbg</b></font>
</font>
<br>
<font face="Courier New, Courier, sansserif, sans serif" size="2"><a name="1000266"></a>TYPE&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ATTRIBUTE&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;VALUE
</font>
<br>
<font face="Courier New, Courier, sansserif, sans serif" size="2"><a name="1000267"></a>FileOnOff&nbsp;&nbsp;&nbsp;LogDbg&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;DBG_3&nbsp;DBG_4
</font>
<p>
<font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><a name="1000268"></a>The FileOnOff agent entry points can now log debug messages with severity DBG_3 and DBG_4. They are printed to the agent log file. An example line in the agent log would now resemble:</font>
</p>

<br>
<font face="Courier New, Courier, sansserif, sans serif" size="2"><a name="1000269"></a>.
</font>
<br>
<font face="Courier New, Courier, sansserif, sans serif" size="2"><a name="1000270"></a>.
</font>
<a name="1000271"></a><br><font face="Courier New, Courier, sansserif, sans serif" size="2">2003/06/06 11:02:35 VCS DBG_3 V-16-50-0 FileOnOff:f1:monitor:This is a debug message</font>
<br>
<font face="Courier New, Courier, sansserif, sans serif" size="2"><a name="1000272"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;FileOnOff.C:file_monitor[28]
</font>
<p>
<font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><a name="1000273"></a><font face="Courier New, Courier, sansserif, sans serif" size="2">LogDbg</font> is an overrideable attribute. For example, for a specific critical resource, the attribute value can be set to obtain debug messages of particular severity level in addition to those severity levels already set for the resource type. From the command line, this can be done using the <font face="Courier New, Courier, sansserif, sans serif" size="2">hares</font> command. For example:</font>
</p>

<br>
<font face="Courier New, Courier, sansserif, sans serif" size="2"><a name="1000274"></a>#&nbsp;<font face="Courier New, Courier, sansserif, sans serif" size="2"><b>hares&nbsp;-override&nbsp;f1&nbsp;LogDbg</b></font>
</font>
<br>
<font face="Courier New, Courier, sansserif, sans serif" size="2"><a name="1000275"></a>#&nbsp;<font face="Courier New, Courier, sansserif, sans serif" size="2"><b>hares&nbsp;-modify&nbsp;f1&nbsp;LogDbg&nbsp;DBG_5</b></font>
</font>
<br>
<font face="Courier New, Courier, sansserif, sans serif" size="2"><a name="1000276"></a>#&nbsp;<font face="Courier New, Courier, sansserif, sans serif" size="2"><b>hares&nbsp;-display&nbsp;f1&nbsp;-attribute&nbsp;LogDbg</b></font>
</font>
<br>
<font face="Courier New, Courier, sansserif, sans serif" size="2"><a name="1000277"></a>Resource&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Attribute&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;System&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Value
</font>
<br>
<font face="Courier New, Courier, sansserif, sans serif" size="2"><a name="1000278"></a>f1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;LogDbg&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;global&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;DBG_5
</font>
<p>
<font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><a name="999033"></a>The FileOnOff agent log would now include debug messages for the <font face="Courier New, Courier, sansserif, sans serif" size="2">f1</font> resource at severity level DBG_5 in addition to debug messages at the severity levels DBG_3 and DBG_4 enabled for the resource type. </font>
</p>

<p>
<font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><a name="1004133"></a>The <font face="Courier New, Courier, sansserif, sans serif" size="2">LogDbg</font> attribute value can be overridden.</font>
</p>

<hr noshade size="2" width="100%" color="#000000">
<img src="images/note.gif" alt="Note " height="16" width="16">&nbsp;
<font face="Arial, Helvetica, Geneva, sansserif, sans serif, Verdana" size="2" color="#000000">
<a name="1005064"></a><b>Note  &nbsp;&nbsp;</b>
</font>
<font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2" color="#000000">Values of <font face="Courier New, Courier, sansserif, sans serif" size="2">LogDbg</font> overridden for a resource are effective only if the agent uses the macro VCSAG_RES_LOG_MSG, which is the only macro that checks if a particular debug severity is enabled for the resource before writing the message to the log file. Please refer to <a href="05_logging_vcs146_998937.html#998937">Logging Agent Messages</a> for more information.
</font>
<hr noshade size="2" width="100%" color="#000000">



<h2><font face="Arial, Helvetica, Geneva, sansserif, sans serif, Verdana" size="3" color="#000000"><a name="999034"></a>LogFileSize</font>
</h2>
 
<p>
<font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><a name="999036"></a>Sets the size of an agent log file. Value must be specified in bytes. Minimum is 65536 bytes (64KB). Maximum is 134217728 bytes (128MB). Default is 33554432 bytes (32MB). For example,</font>
</p>

<br>
<font face="Courier New, Courier, sansserif, sans serif" size="2"><a name="999037"></a>#&nbsp;<font face="Courier New, Courier, sansserif, sans serif" size="2"><b>hatype&nbsp;-modify&nbsp;FileOnOff&nbsp;LogSize&nbsp;2097152</b></font>
</font>
<p>
<font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><a name="999038"></a>Values specified less than the minimum acceptable value will be changed 65536 bytes. Values specified greater than the maximum acceptable value will be changed to 134217728 bytes. Therefore, out-of-range values displayed for the command: </font>
</p>

<br>
<font face="Courier New, Courier, sansserif, sans serif" size="2"><a name="999039"></a>#<font face="Courier New, Courier, sansserif, sans serif" size="2">&nbsp;</font><font face="Courier New, Courier, sansserif, sans serif" size="2"><b>hatype&nbsp;-display</b></font><font face="Courier New, Courier, sansserif, sans serif" size="2">&nbsp;</font><em>restype</em>&nbsp;<font face="Courier New, Courier, sansserif, sans serif" size="2"><b>-attribute&nbsp;LogSize</b></font>&nbsp;
</font>
<p>
<font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><a name="1009326"></a>will be those entered with the <font face="Courier New, Courier, sansserif, sans serif" size="2">-modify</font> option, not the actual values. The <font face="Courier New, Courier, sansserif, sans serif" size="2">LogFileSize</font> attribute value cannot be overridden.</font>
</p>




<h2><font face="Arial, Helvetica, Geneva, sansserif, sans serif, Verdana" size="3" color="#000000"><a name="1006149"></a>ManageFaults</font>
</h2>
 
<p>
<font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><a name="1005042"></a>A service group level attribute. <font face="Courier New, Courier, sansserif, sans serif" size="2">ManageFaults</font> specifies if VCS manages resource failures within the service group by calling <font face="Courier New, Courier, sansserif, sans serif" size="2">clean</font> entry point for the resources. This attribute value can be set to ALL or NONE. Default = ALL.</font>
</p>

<p>
<font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><a name="1005465"></a>If set to NONE, VCS does not call <font face="Courier New, Courier, sansserif, sans serif" size="2">clean</font> entry point for any resource in the group. User intervention is required to handle resource faults/failures. When <font face="Courier New, Courier, sansserif, sans serif" size="2">ManageFaults</font> is set to NONE and one of the following events occur, the resource enters the ADMIN_WAIT state:</font>
</p>

<blockquote>
<font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><a name="1005466"></a>1 - The <font face="Courier New, Courier, sansserif, sans serif" size="2">offline</font> entry point did not complete within the expected time. Resource state is ONLINE|ADMIN_WAIT </font>
</blockquote>
<blockquote>
<font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><a name="1005468"></a>2 - The <font face="Courier New, Courier, sansserif, sans serif" size="2">offline</font> entry point was ineffective. Resource state is ONLINE|ADMIN_WAIT </font>
</blockquote>
<blockquote>
<font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><a name="1005469"></a>3 - The <font face="Courier New, Courier, sansserif, sans serif" size="2">online</font> entry point did not complete within the expected time. Resource state is OFFLINE|ADMIN_WAIT </font>
</blockquote>
<blockquote>
<font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><a name="1005470"></a>4 - The <font face="Courier New, Courier, sansserif, sans serif" size="2">online</font> entry point was ineffective. Resource state is OFFLINE|ADMIN_WAIT </font>
</blockquote>
<blockquote>
<font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><a name="1005471"></a>5 - The resource was taken offline unexpectedly. Resource state is OFFLINE|ADMIN_WAIT </font>
</blockquote>
<blockquote>
<font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><a name="1005475"></a>6 - For the online resource the <font face="Courier New, Courier, sansserif, sans serif" size="2">monitor</font> entry point consistently failed to complete within the expected time. Resource state is ONLINE| MONITOR_ TIMEDOUT|ADMIN_WAIT</font>
</blockquote>

<!-- End Main Topic Content -->

   </td>
  </tr>
 </table>
</div>

<div>
<table border="0" cellspacing="0" cellpadding="0" width="100%">
 <tr>
  <td height="18" border="0" cellspacing="0" cellpadding="0" colspan="2" bgcolor="#FFFFFF">
  </td>
 </tr>
  <td align="left"><font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="-2">&nbsp;&#94;&nbsp;<a href="07_set_params_vcs162_1000260.html" title="LogDbg">Return to Top</a></font>

  </td>
  <td align="right"><font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="-2">&lt;&nbsp;<a href="07_set_params_vcs161_1071741.html" title="Previous - FaultOnMonitorTimeouts">Previous</a>&nbsp;&nbsp;|&nbsp;&nbsp;<a href="07_set_params_vcs163_999062.html" title="Next - MonitorInterval">Next</a>
&nbsp;&gt;&nbsp;&nbsp;</font>
  </td>
 <tr>
   <td height="9" border="0" cellspacing="0" cellpadding="0" colspan="2" bgcolor="#FFFFFF">
   </td>
 </tr>

<!-- Footer Breadcrumbs -->
<tr>
<td bgcolor="#FFFFFF" colspan="2" height="15" align="right">
<font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="1">Product:  
<a href="vcs_splashpage_docCD_vcs1_103036.vxhd" title="Cluster Server Guides title page ">Cluster Server Guides</a>&nbsp;&nbsp;</font></td>
</tr>

<tr>
<td bgcolor="#FFFFFF" colspan="2" height="15" align="right">
<font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="1">Manual:  
<a href="adg_hpux41_titlepage_docCD_vcs95_73700.vxhd" title="Cluster Server 4.1 Agent Developer's Guide title page ">Cluster Server 4.1 Agent Developer's Guide</a>&nbsp;&nbsp;</font></td>
</tr>


 <tr>
  <td colspan="2" align="left"><font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" color="#000000" align="right" size="-2">
<em>VERITAS Software Corporation
</em></font><br>

<font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="-2">www.veritas.com</font><br>
  </td>
 </tr>
</table>
</div>

</BODY>
  <!--
    *************************************************************************************
    * Copyright (c) 2005 VERITAS Software Corporation. All rights reserved. *

    VERITAS, VERITAS SOFTWARE, the VERITAS Logo, and VERITAS Software Documentation 
    are trademarks or registered trademarks of VERITAS Software Corporation 
    or its affiliates in the U.S. and other countries. Other names may be 
    trademarks of their respective owners. 

    Apache Jakarta Lucene:
    Apache Software License
    Version 1.1

    Copyright (c) 2000 The Apache Software Foundation. All rights reserved.

    Redistribution and use in source and binary forms, with or without modification, 
    are permitted provided that the following conditions are met:

    1. Redistributions of source code must retain the above copyright notice, this 
    list of conditions and the following disclaimer.

    2. Redistributions in binary form must reproduce the above copyright notice, this 
    list of conditions and the following disclaimer in the documentation and/or other 
    materials provided with the distribution.

    3. The end-user documentation included with the redistribution, if any, must include 
    the following acknowledgment: "This product includes software developed by the Apache 
    Software Foundation (http://www.apache.org/)." Alternately, this acknowledgment may 
    appear in the software itself, if and wherever such third-party acknowledgments 
    normally appear.

    4. The names "Apache" and "Apache Software Foundation" must not be used to endorse or 
    promote products derived from this software without prior written permission. For 
    written permission, please contact apache@apache.org.

    5. Products derived from this software may not be called "Apache", nor may "Apache" 
    appear in their name, without prior written permission of the Apache Software Foundation.

    THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, 
    BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A 
    PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION 
    OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, 
    OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 
    OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 
    ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 
    NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF 
    ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

    This software consists of voluntary contributions made by many individuals on behalf 
    of the Apache Software Foundation. For more information on the Apache Software Foundation, 
    please see <http://www.apache.org/>. Portions of this software are based upon public domain 
    software originally written at the National Center for Supercomputing Applications, University 
    of Illinois, Urbana-Champaign.
    
    This product includes WebWindow Software developed by Horst Heistermann.
    *************************************************************************************
  -->
</HTML>
