<!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:42:41">
<meta name="PRODUCTNAME" content="VERITAS Software Documentation">
<meta name="FILENAME" content="04configuring_agent.fm">
     
<title>Configuring the Service Group From the Command Line</title>

</HEAD>

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

<a name="114175"></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="04configuring_agent_vcs_agents149_119923.html" title="Previous - Configuring the Service Group From Cluster Manager (Java Console)">Previous</a>&nbsp;&nbsp;|&nbsp;&nbsp;<a href="04configuring_agent_vcs_agents151_123028.html" title="Next - Encrypting Passwords">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="vcssol_sybase_titlepage_docCD_vcs_agents123_73700.vxhd" title="Cluster Server 4.1 Enterprise Agent for Sybase Installation and Configuration Guide title page ">Cluster Server 4.1 Enterprise Agent for Sybase 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>
	
<h1><font face="Arial, Helvetica, Geneva, sansserif, sans serif, Verdana" size="+1" color="#000000"><a name="114175"></a>Configuring the Service Group From the Command Line</font>
</h1>
 
  
  
  

<p>
<font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><a name="114176"></a>The VCS enterprise agent for Sybase comes with a sample configuration file that can be used as reference to directly modify your present configuration file. This method requires you to restart VCS before the configuration takes effect.</font>
</p>

</ol>
<p><img src="images/stepintro.gif" height="16" width="16">
<font face="Arial, Helvetica, Geneva, sansserif, sans serif, Verdana" size="2" color="#000000"><a name="114177"></a>&nbsp;&nbsp;<b>To configure a service group from the command line</b></font>
</p>
<ol>
<li value="1">
<font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><a name="120098"></a>Log in to a cluster system 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="120101"></a>Make sure the Sybase type definition is imported into VCS engine. See <a href="04configuring_agent_vcs_agents148_114149.html#114149">Importing the SybaseTypes.cf File</a> for instructions.
</font>
<li value="3">
<font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><a name="114182"></a>Edit the <font face="Courier New, Courier, sansserif, sans serif" size="2">main.cf</font> file. Use the file /etc/VRTSvcs/conf/sample_sybase/<font face="Courier New, Courier, sansserif, sans serif" size="2">main.cf</font> for reference:
</font>
<ol type=a>
<li><font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><a name="114183"></a>Create a Sybase service group.</font>
</li>
<li><font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><a name="122708"></a>Create the Sybase and SybaseBk resources. Refer to the type definitions under <a href="appendixa_resc_type_vcs_agents162_73160.html#73160">Sybase Resource Type</a> and <a href="appendixa_resc_type_vcs_agents164_75678.html#75678">SybaseBk Resource Type</a>.</font>
</li>
<li><font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><a name="122715"></a>Edit the default attributes to&nbsp;match the parameters in your configuration. </font>
</li>
<hr noshade size="2" width="100%" color="#000000">
<img src="images/caution.gif" alt="Caution " height="16" width="16">&nbsp;<font face="Arial, Helvetica, Geneva, sansserif, sans serif, Verdana" size="2" color="#000000"><a name="116517"></a><b>Caution  &nbsp;&nbsp;</b></font>
<font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2" color="#000000"> For added security, you must always provide a secure value for passwords See <a href="04configuring_agent_vcs_agents151_123028.html#123028">Encrypting Passwords</a> for instructions on setting secure passwords.</font>
<hr noshade size="2" width="100%" color="#000000">
<li><font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><a name="114203"></a>Assign dependencies to the newly created resources. Refer to the sample file /etc/VRTSvcs/conf/sample_sybase/<font face="Courier New, Courier, sansserif, sans serif" size="2">main.cf</font>. (See the <em>VERITAS Cluster Server User's Guide</em> for more information on assigning dependencies.)</font>
</li>
</ol>
<li value="4">
<font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><a name="114204"></a>Save and close the file.
</font>
<li value="5">
<font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><a name="114208"></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="114209"></a>&nbsp;#&nbsp;<font face="Courier New, Courier, sansserif, sans serif" size="2"><b>hacf&nbsp;-verify&nbsp;config</b></font>
</font>
<li value="6">
<font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><a name="114211"></a>Start the VCS engine:
</font>
<br>
<font face="Courier New, Courier, sansserif, sans serif" size="2"><a name="114212"></a>&nbsp;#&nbsp;<font face="Courier New, Courier, sansserif, sans serif" size="2"><b>hastart</b></font>
</font>
<li value="7">
<font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><a name="114213"></a>Verify all Sybase service group resources are brought online:
</font>
<br>
<font face="Courier New, Courier, sansserif, sans serif" size="2"><a name="114214"></a>&nbsp;#&nbsp;<font face="Courier New, Courier, sansserif, sans serif" size="2"><b>hagrp&nbsp;-state</b></font>
</font>
<li value="8">
<font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><a name="114216"></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="114217"></a>&nbsp;&nbsp;#&nbsp;<font face="Courier New, Courier, sansserif, sans serif" size="2"><b>hagrp&nbsp;-offline&nbsp;</b></font><font face="Courier New, Courier, sansserif, sans serif" size="2"><b>&lt;service_group&gt;</b></font><font face="Courier New, Courier, sansserif, sans serif" size="2"><b>&nbsp;-sys&nbsp;</b></font><font face="Courier New, Courier, sansserif, sans serif" size="2"><b>&lt;system_name&gt;</b></font>
</font>
<br>
<font face="Courier New, Courier, sansserif, sans serif" size="2"><a name="114218"></a>&nbsp;&nbsp;#&nbsp;<font face="Courier New, Courier, sansserif, sans serif" size="2"><b>hagrp&nbsp;-state</b></font>
</font>
<li value="9">
<font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><a name="114219"></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="114220"></a>&nbsp;&nbsp;#&nbsp;<font face="Courier New, Courier, sansserif, sans serif" size="2"><b>hagrp&nbsp;-online&nbsp;</b></font><font face="Courier New, Courier, sansserif, sans serif" size="2"><b>&lt;service_group&gt;</b></font><font face="Courier New, Courier, sansserif, sans serif" size="2"><b>&nbsp;-sys&nbsp;</b></font><font face="Courier New, Courier, sansserif, sans serif" size="2"><b>&lt;system_name&gt;</b></font>
</font>
<br>
<font face="Courier New, Courier, sansserif, sans serif" size="2"><a name="114221"></a>&nbsp;&nbsp;#&nbsp;<font face="Courier New, Courier, sansserif, sans serif" size="2"><b>hagrp&nbsp;-state</b></font>
</font>
<li value="10">
<font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><a name="114223"></a>Start the VCS engine on sysb:
</font>
<br>
<font face="Courier New, Courier, sansserif, sans serif" size="2"><a name="114224"></a>&nbsp;&nbsp;#&nbsp;<font face="Courier New, Courier, sansserif, sans serif" size="2"><b>hastart</b></font>
</font>
<li value="11">
<font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><a name="114226"></a>Switch the Sybase service group to sysb:
</font>
<br>
<font face="Courier New, Courier, sansserif, sans serif" size="2"><a name="114227"></a>&nbsp;&nbsp;#&nbsp;<font face="Courier New, Courier, sansserif, sans serif" size="2"><b>hagrp&nbsp;-switch&nbsp;</b></font><font face="Courier New, Courier, sansserif, sans serif" size="2"><b>&lt;service_group&gt;</b></font><font face="Courier New, Courier, sansserif, sans serif" size="2"><b>&nbsp;-to&nbsp;</b></font><font face="Courier New, Courier, sansserif, sans serif" size="2"><b>&lt;system_name&gt;</b></font>
</font>
<li value="12">
<font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><a name="114229"></a>Verify that all Sybase service group resources are brought online on sysb:
</font>
<br>
<font face="Courier New, Courier, sansserif, sans serif" size="2"><a name="114230"></a>&nbsp;&nbsp;#&nbsp;<font face="Courier New, Courier, sansserif, sans serif" size="2"><b>hagrp&nbsp;-state</b></font>
</font>
<li value="13">
<font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><a name="120159"></a>On all 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="120168"></a>/var/VRTSvcs/log/engine_A.log
</font>
<br>
<font face="Courier New, Courier, sansserif, sans serif" size="2"><a name="120169"></a>/var/VRTSvcs/log/Sybase_A.log
</font>
<br>
<font face="Courier New, Courier, sansserif, sans serif" size="2"><a name="123012"></a>/var/VRTSvcs/log/SybaseBk_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="04configuring_agent_vcs_agents150_114175.html" title="Configuring the Service Group From the Command Line">Return to Top</a></font>

  </td>
  <td align="right"><font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="-2">&lt;&nbsp;<a href="04configuring_agent_vcs_agents149_119923.html" title="Previous - Configuring the Service Group From Cluster Manager (Java Console)">Previous</a>&nbsp;&nbsp;|&nbsp;&nbsp;<a href="04configuring_agent_vcs_agents151_123028.html" title="Next - Encrypting Passwords">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="vcssol_sybase_titlepage_docCD_vcs_agents123_73700.vxhd" title="Cluster Server 4.1 Enterprise Agent for Sybase Installation and Configuration Guide title page ">Cluster Server 4.1 Enterprise Agent for Sybase 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>
