<!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/13/05 10:41:40">
<meta name="PRODUCTNAME" content="VERITAS Software Documentation">
<meta name="FILENAME" content="04_configure_agent.fm">
     
<title>Configuring Informix Agent by Editing the Configuration Files</title>

</HEAD>

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

<a name="115503"></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="04_configure_agent_vcs_agents20_115436.html" title="Previous - Configuring the Agent">Previous</a>&nbsp;&nbsp;|&nbsp;&nbsp;<a href="04_configure_agent_vcs_agents22_115564.html" title="Next - Modifying the Agent Configuration">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_agents_splashpage_docCD_vcs_agents1_103036.vxhd" title="Cluster Server Enterprise Agents Guides title page ">Cluster Server Enterprise Agents 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="vcs_informix_install_titlepage_docCD_vcs_agents2_73700.vxhd" title="Cluster Server 4.1 Enterprise Agent for Informix Installation and Configuration Guide title page ">Cluster Server 4.1 Enterprise Agent for Informix Installation and Configuration 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="115503"></a> Configuring Informix Agent by Editing the Configuration Files</font>
</h2>

        
<p>
<font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><a name="115504"></a>The VCS enterprise agent for Informix comes with a sample configuration file that can be used as reference to directly modify your present configuration file. When you use this method, you must stop and restart VCS to implement the configuration.</font>
</p>

<p>
<font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><a name="115505"></a>Follow the instructions below to configure the agent using the sample configuration file:</font>
</p>

<ol>
<li value="1">
<font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><a name="115506"></a>Log in to sysa as <font face="Courier New, Courier, sansserif, sans serif" size="2">root</font>.
</font>
<li value="2">
<font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><a name="115507"></a>Ensure that all changes to the existing configuration have been saved and that further changes are prevented while you modify <font face="Courier New, Courier, sansserif, sans serif" size="2">main.cf</font>:
</font>
<br>
<font face="Courier New, Courier, sansserif, sans serif" size="2"><a name="115508"></a>&nbsp;&nbsp;#&nbsp;<font face="Courier New, Courier, sansserif, sans serif" size="2"><b>haconf&nbsp;-dump&nbsp;-makero</b></font>
</font>
<li value="3">
<font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><a name="115509"></a>To ensure that VCS is not running while you edit <font face="Courier New, Courier, sansserif, sans serif" size="2">main.cf</font>, issue the following command to stop the VCS engine on all systems and leave the resources available:
</font>
<br>
<font face="Courier New, Courier, sansserif, sans serif" size="2"><a name="115510"></a>&nbsp;&nbsp;#&nbsp;<font face="Courier New, Courier, sansserif, sans serif" size="2"><b>hastop&nbsp;-all&nbsp;force</b></font>
</font>
<li value="4">
<font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><a name="115511"></a>Make a backup copy of the <font face="Courier New, Courier, sansserif, sans serif" size="2">main.cf</font> file:
</font>
<br>
<font face="Courier New, Courier, sansserif, sans serif" size="2"><a name="115512"></a>&nbsp;&nbsp;#&nbsp;<font face="Courier New, Courier, sansserif, sans serif" size="2"><b>cd&nbsp;/etc/VRTSvcs/conf/config</b></font>
</font>
<br>
<font face="Courier New, Courier, sansserif, sans serif" size="2"><a name="115513"></a>&nbsp;&nbsp;#&nbsp;<font face="Courier New, Courier, sansserif, sans serif" size="2"><b>cp&nbsp;main.cf&nbsp;main.cf.orig</b></font>
</font>
<li value="5">
<font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><a name="115514"></a>Edit the <font face="Courier New, Courier, sansserif, sans serif" size="2">main.cf</font> file. The file /etc/VRTSvcs/conf/sample_Informix/<font face="Courier New, Courier, sansserif, sans serif" size="2">main.cf</font> can be used for reference (see the <a href="0A_config_file_vcs_agents26_74371.html#74371">Sample Configuration File</a>):
</font>
<ol type=a>
<li><font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><a name="115518"></a>Add an &quot;include&quot; line for the <font face="Courier New, Courier, sansserif, sans serif" size="2">InformixTypes.cf</font> file:</font>
</li>
<br>
<font face="Courier New, Courier, sansserif, sans serif" size="2"><a name="115520"></a><font face="Courier New, Courier, sansserif, sans serif" size="2">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</font>include&nbsp;&quot;InformixTypes.cf&quot;<font face="Courier New, Courier, sansserif, sans serif" size="2"><b>&nbsp;</b></font>
</font>
<li><font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><a name="115524"></a>Create the a service group for Informix resources; refer to the <a href="0A_config_file_vcs_agents26_74371.html#74371">Sample Configuration File</a>.</font>
</li>
<li><font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><a name="115526"></a>Include all resources in the service group, including the Informix, IP, NIC, Mount, LVMLogicalVolume, and LVMVolumeGroup resources, and assign values to the attributes for the resources to match the parameters of your configuration.</font>
</li>
<ul><p>
<font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><a name="115530"></a>Refer to the table of <a href="04_configure_agent_vcs_agents19_115286.html#115300">Attribute Definitions</a> as well as the sample configuration file. Refer also to the <em>VERITAS Cluster Server Bundled Agents Reference Guide</em> for information about the IP, NIC, Mount, LVMLogicalVolume, and LVMVolumeGroup resources.</font>
</p>
</ul><li><font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><a name="115531"></a>Assign dependencies to the newly created resources. See the VCS User's Guide for more information on assigning dependencies.</font>
</li>
</ol>
<li value="6">
<font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><a name="115532"></a>Save and close the file.
</font>
<li value="7">
<font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><a name="115533"></a>Copy the Informix types configuration file into place:
</font>
<br>
<font face="Courier New, Courier, sansserif, sans serif" size="2"><a name="115534"></a><font face="Courier New, Courier, sansserif, sans serif" size="2">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;#&nbsp;</font><font face="Courier New, Courier, sansserif, sans serif" size="2"><b>cp&nbsp;/etc/VRTSvcs/conf/sample_Informix/InformixTypes.cf</b></font>
</font>
<br>
<font face="Courier New, Courier, sansserif, sans serif" size="2"><a name="115535"></a><font face="Courier New, Courier, sansserif, sans serif" size="2"><b>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/etc/VRTSvcs/conf/config/InformixTypes.cf</b></font>
</font>
<li value="8">
<font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><a name="115536"></a>Verify the syntax of the file /etc/VRTSvcs/conf/config/main.cf:
</font>
<br>
<font face="Courier New, Courier, sansserif, sans serif" size="2"><a name="115537"></a>&nbsp;&nbsp;#&nbsp;<font face="Courier New, Courier, sansserif, sans serif" size="2"><b>hacf&nbsp;-verify&nbsp;config</b></font>
</font>
<li value="9">
<font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><a name="115538"></a>Start the VCS engine on sysa:
</font>
<br>
<font face="Courier New, Courier, sansserif, sans serif" size="2"><a name="115539"></a>&nbsp;&nbsp;#&nbsp;<font face="Courier New, Courier, sansserif, sans serif" size="2"><b>hastart</b></font>
</font>
<li value="10">
<font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><a name="115540"></a>Type the command <font face="Courier New, Courier, sansserif, sans serif" size="2">hastatus</font>:
</font>
<br>
<font face="Courier New, Courier, sansserif, sans serif" size="2"><a name="115541"></a>&nbsp;&nbsp;#&nbsp;<font face="Courier New, Courier, sansserif, sans serif" size="2"><b>hastatus</b></font>
</font>
<li value="11">
<font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><a name="115542"></a>When &quot;<font face="Courier New, Courier, sansserif, sans serif" size="2">Local_Build</font>&quot; is listed in the message column, you can start sysb:
</font>
<br>
<font face="Courier New, Courier, sansserif, sans serif" size="2"><a name="115543"></a>&nbsp;&nbsp;#&nbsp;<font face="Courier New, Courier, sansserif, sans serif" size="2"><b>hastart</b></font>
</font>
<li value="12">
<font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><a name="115544"></a>Verify that all Informix service group resources are brought online:
</font>
<br>
<font face="Courier New, Courier, sansserif, sans serif" size="2"><a name="115545"></a>&nbsp;&nbsp;#&nbsp;<font face="Courier New, Courier, sansserif, sans serif" size="2"><b>hagrp&nbsp;-display</b></font>
</font>
<li value="13">
<font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><a name="115547"></a>Take the service group offline and verify that all resources are stopped:
</font>
<br>
<font face="Courier New, Courier, sansserif, sans serif" size="2"><a name="115548"></a>&nbsp;&nbsp;#&nbsp;<font face="Courier New, Courier, sansserif, sans serif" size="2"><b>hagrp&nbsp;-offline&nbsp;</b></font><em>service_group</em><font face="Courier New, Courier, sansserif, sans serif" size="2"><b>&nbsp;-sys&nbsp;</b></font><em>system_name</em>
</font>
<br>
<font face="Courier New, Courier, sansserif, sans serif" size="2"><a name="115549"></a>&nbsp;&nbsp;#&nbsp;<font face="Courier New, Courier, sansserif, sans serif" size="2"><b>hagrp&nbsp;-display</b></font>
</font>
<li value="14">
<font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><a name="115550"></a>Bring the service group online again and verify that all resources are available:
</font>
<br>
<font face="Courier New, Courier, sansserif, sans serif" size="2"><a name="115551"></a>&nbsp;&nbsp;#&nbsp;<font face="Courier New, Courier, sansserif, sans serif" size="2"><b>hagrp&nbsp;-online&nbsp;</b></font><em>service_group</em><font face="Courier New, Courier, sansserif, sans serif" size="2"><b>&nbsp;-sys&nbsp;</b></font><em>system_name</em>
</font>
<br>
<font face="Courier New, Courier, sansserif, sans serif" size="2"><a name="115552"></a>&nbsp;&nbsp;#&nbsp;<font face="Courier New, Courier, sansserif, sans serif" size="2"><b>hagrp&nbsp;-display</b></font>
</font>
<li value="15">
<font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><a name="115554"></a>Switch the Informix service group to sysb:
</font>
<br>
<font face="Courier New, Courier, sansserif, sans serif" size="2"><a name="115555"></a>&nbsp;&nbsp;#&nbsp;<font face="Courier New, Courier, sansserif, sans serif" size="2"><b>hagrp&nbsp;-switch&nbsp;</b></font><em>service_group</em><font face="Courier New, Courier, sansserif, sans serif" size="2"><b>&nbsp;-to&nbsp;sysb</b></font>
</font>
<li value="16">
<font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><a name="115557"></a>Verify that all Informix service group resources are brought online on sysb:
</font>
<br>
<font face="Courier New, Courier, sansserif, sans serif" size="2"><a name="115558"></a>&nbsp;&nbsp;#&nbsp;<font face="Courier New, Courier, sansserif, sans serif" size="2"><b>hagrp&nbsp;-display</b></font>
</font>
<li value="17">
<font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><a name="115559"></a>On all the systems, look at the following log files for any errors or status:
</font>
<br>
<font face="Courier New, Courier, sansserif, sans serif" size="2"><a name="115560"></a>&nbsp;&nbsp;/var/VRTSvcs/log/engine_A.log
</font>
<br>
<font face="Courier New, Courier, sansserif, sans serif" size="2"><a name="115561"></a>&nbsp;&nbsp;/var/VRTSvcs/log/Informix_A.log
</font>
</ol>

<!-- 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="04_configure_agent_vcs_agents21_115503.html" title="Configuring Informix Agent by Editing the Configuration Files">Return to Top</a></font>

  </td>
  <td align="right"><font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="-2">&lt;&nbsp;<a href="04_configure_agent_vcs_agents20_115436.html" title="Previous - Configuring the Agent">Previous</a>&nbsp;&nbsp;|&nbsp;&nbsp;<a href="04_configure_agent_vcs_agents22_115564.html" title="Next - Modifying the Agent Configuration">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_agents_splashpage_docCD_vcs_agents1_103036.vxhd" title="Cluster Server Enterprise Agents Guides title page ">Cluster Server Enterprise Agents 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="vcs_informix_install_titlepage_docCD_vcs_agents2_73700.vxhd" title="Cluster Server 4.1 Enterprise Agent for Informix Installation and Configuration Guide title page ">Cluster Server 4.1 Enterprise Agent for Informix Installation and Configuration 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>
