<!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:12:11">
<meta name="PRODUCTNAME" content="VERITAS Software Documentation">
<meta name="FILENAME" content="04config_concepts.fm">
     
<title>Attribute Dimensions</title>

</HEAD>

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

<a name="139424"></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="04config_concepts_vcs295_139399.html" title="Previous - Attributes">Previous</a>&nbsp;&nbsp;|&nbsp;&nbsp;<a href="04config_concepts_vcs297_134048.html" title="Next - Keywords/Reserved Words">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="vcshp_ug_titlepage_docCD_vcs258_73700.vxhd" title="Cluster Server 4.1 User's Guide title page ">Cluster Server 4.1 User'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="139424"></a> Attribute Dimensions</font>
</h2>

        
<a name="no_figure_caption0"> </a>
<Table width="100%" border="1" cellpadding="2" cellspacing="0" >
<tr bgcolor="#CCCCCC"><th align="left"><font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2" color="#000000"><b><a name="139427"></a>Dimension</b>
</font></th>

<th align="left"><font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2" color="#000000"><b><a name="139429"></a>Description</b>
</font></th>

</tr>
<tr valign="top"><td><p>
<font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><a name="139431"></a>Scalar</font>
</p>
</td>
<td><p>
<font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><a name="139434"></a>A scalar has only one value. This is the default dimension. </font>
</p>
</td>
</tr>
<tr valign="top"><td><p>
<font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><a name="139436"></a>Vector</font>
</p>
</td>
<td><p>
<font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><a name="139439"></a>A vector is an ordered list of values. Each value is indexed using a positive integer beginning with zero. A set of brackets ([]) denotes that the dimension is a vector. Brackets are specified after the attribute name on the attribute definition. For example, an agent's ArgList is defined as:</font>
</p>
<p>
<font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><a name="139527"></a><font face="Courier New, Courier, sansserif, sans serif" size="2">static str ArgList[] = { RVG, DiskGroup, Primary, SRL, RLinks }</font></font>
</p>
</td>
</tr>
<tr valign="top"><td><p>
<font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><a name="139441"></a>Keylist</font>
</p>
</td>
<td><p>
<font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><a name="139444"></a>A keylist is an unordered list of strings, and each string is unique within the list. For example, to designate the list of systems on which a service group will be started with VCS (usually at system boot):</font>
</p>
<p>
<font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><a name="139445"></a><font face="Courier New, Courier, sansserif, sans serif" size="2">AutoStartList = { SystemA, SystemB, SystemC }</font></font>
</p>
</td>
</tr>
<tr valign="top"><td><p>
<font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><a name="139447"></a>Association</font>
</p>
</td>
<td><p>
<font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><a name="139450"></a>An association is an unordered list of name-value pairs. Each pair is separated by a comma. A set of braces ({}) denotes that an attribute is an association. Braces are specified after the attribute name on the attribute definition. For example, to designate the list of systems on which the service group is configured to run and the system's priorities:</font>
</p>
<p>
<font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><a name="139451"></a><font face="Courier New, Courier, sansserif, sans serif" size="2">SystemList = { SystemA=1, SystemB=2, SystemC=3 }</font></font>
</p>
</td>
</tr>

</table>


<Table width="100%" border="0" cellpadding="1" cellspacing="0">
<tr><td>
</Table>




<h2><font face="Arial, Helvetica, Geneva, sansserif, sans serif, Verdana" size="3" color="#000000"><a name="139454"></a>Type-Dependent Attributes</font>
</h2>
 
<p>
<font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><a name="139456"></a>Type-dependent attributes apply to a particular resource type. For example the MountPath attribute applies only to the Mount resource type. Similarly, the Address attribute applies only to the IP resource type.</font>
</p>




<h2><font face="Arial, Helvetica, Geneva, sansserif, sans serif, Verdana" size="3" color="#000000"><a name="139457"></a>Type-Independent Attributes</font>
</h2>
 
<p>
<font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><a name="139459"></a>Type-independent attributes apply to all resource types. This means there is a set of attributes that all agents understand, regardless of resource type. These attributes are coded into the agent framework when the agent is developed. Attributes such as RestartLimit and MonitorInterval can be set for any resource type.</font>
</p>




<h2><font face="Arial, Helvetica, Geneva, sansserif, sans serif, Verdana" size="3" color="#000000"><a name="130110"></a>Resource-Specific Attributes</font>
</h2>
 
<p>
<font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><a name="130111"></a>Resource-specific attributes apply to a specific resource. They are discrete values that define the &quot;personality&quot; of a given resource. For example, the IP agent knows how to use the Address attribute. Setting an IP address is done only within a specific resource definition. Resource-specific attributes are set in the main.cf file. </font>
</p>




<h2><font face="Arial, Helvetica, Geneva, sansserif, sans serif, Verdana" size="3" color="#000000"><a name="130112"></a>Type-Specific Attributes</font>
</h2>
 
<p>
<font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><a name="139550"></a>Type-specific attributes are set for all resources of a specific type. For example, setting MonitorInterval for the IP resource affects all IP resources. The value for MonitorInterval would be placed in the types.cf file. In some cases, attributes can be placed in main.cf or types.cf. For example, setting <font face="Courier New, Courier, sansserif, sans serif" size="2">StartVolumes</font> <font face="Courier New, Courier, sansserif, sans serif" size="2">=</font> <font face="Courier New, Courier, sansserif, sans serif" size="2">1</font> for the DiskGroup types.cf would default StartVolumes to True for all DiskGroup resources. Setting the value in main.cf would set StartVolumes on a per-resource basis.</font>
</p>

<p>
<font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><a name="170956"></a>In the example below, StartVolumes and StopVolumes are set in types.cf. This sets the default for all DiskGroup resources to start all volumes contained in a disk group when the disk group is brought online. If no value for StartVolumes or StopVolumes is set in main.cf, they will default to True.</font>
</p>

<br>
<font face="Courier New, Courier, sansserif, sans serif" size="2"><a name="198652"></a>type&nbsp;DiskGroup&nbsp;(
</font>
<br>
<font face="Courier New, Courier, sansserif, sans serif" size="2"><a name="198653"></a>&nbsp;&nbsp;static&nbsp;int&nbsp;NumThreads&nbsp;=&nbsp;1
</font>
<br>
<font face="Courier New, Courier, sansserif, sans serif" size="2"><a name="198654"></a>&nbsp;&nbsp;static&nbsp;int&nbsp;OnlineRetryLimit&nbsp;=&nbsp;1
</font>
<br>
<font face="Courier New, Courier, sansserif, sans serif" size="2"><a name="198655"></a>&nbsp;&nbsp;static&nbsp;str&nbsp;ArgList[]&nbsp;=&nbsp;{&nbsp;DiskGroup,&nbsp;StartVolumes,&nbsp;StopVolumes,
</font>
<br>
<font face="Courier New, Courier, sansserif, sans serif" size="2"><a name="198656"></a>&nbsp;&nbsp;&nbsp;MonitorOnly&nbsp;}
</font>
<br>
<font face="Courier New, Courier, sansserif, sans serif" size="2"><a name="198657"></a>&nbsp;&nbsp;&nbsp;&nbsp;str&nbsp;DiskGroup
</font>
<br>
<font face="Courier New, Courier, sansserif, sans serif" size="2"><a name="198658"></a>&nbsp;&nbsp;str&nbsp;StartVolumes&nbsp;=&nbsp;1
</font>
<br>
<font face="Courier New, Courier, sansserif, sans serif" size="2"><a name="198659"></a>&nbsp;&nbsp;str&nbsp;StopVolumes&nbsp;=&nbsp;1
</font>
<p>
<font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><a name="150202"></a>)Adding the required lines in main.cf allows this value to be modified. In the next excerpt, the main.cf is used to override the default type-specific attribute with a resource-specific attribute:</font>
</p>

<br>
<font face="Courier New, Courier, sansserif, sans serif" size="2"><a name="152856"></a>DiskGroup&nbsp;shared_dg1&nbsp;(
</font>
<br>
<font face="Courier New, Courier, sansserif, sans serif" size="2"><a name="152857"></a>&nbsp;&nbsp;DiskGroup&nbsp;=&nbsp;shared_dg1
</font>
<br>
<font face="Courier New, Courier, sansserif, sans serif" size="2"><a name="152858"></a>&nbsp;&nbsp;StartVolumes&nbsp;=&nbsp;0
</font>
<br>
<font face="Courier New, Courier, sansserif, sans serif" size="2"><a name="152859"></a>&nbsp;&nbsp;StopVolumes&nbsp;=&nbsp;0
</font>
<br>
<font face="Courier New, Courier, sansserif, sans serif" size="2"><a name="152839"></a>)
</font>



<h2><font face="Arial, Helvetica, Geneva, sansserif, sans serif, Verdana" size="3" color="#000000"><a name="152840"></a>Static Attributes</font>
</h2>
 
<p>
<font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><a name="147702"></a>Static attributes apply for every resource of a particular type. These attributes are prefixed with the term <em>static</em> and are not included in the resource's argument list. You can override some static attributes and assign them resource-specific values. See <a href="06admin_vcs_cli_vcs328_172215.html#228989">Overriding Resource Type Static Attributes</a> for more information.</font>
</p>




<h2><font face="Arial, Helvetica, Geneva, sansserif, sans serif, Verdana" size="3" color="#000000"><a name="130142"></a>Global and Local Attributes</font>
</h2>
 
<p>
<font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><a name="139612"></a>An attribute whose value applies to all systems is global in scope. An attribute whose value applies on a per-system basis is local in scope. The &quot;at&quot; operator (@) indicates the system to which a local value applies. An example of local attributes can be found in the MultiNICA resource type where IP addresses and routing options are assigned per machine.</font>
</p>

<br>
<font face="Courier New, Courier, sansserif, sans serif" size="2"><a name="198725"></a>MultiNICA&nbsp;mnic&nbsp;(
</font>
<br>
<font face="Courier New, Courier, sansserif, sans serif" size="2"><a name="198726"></a>Device@sysa&nbsp;=&nbsp;{&nbsp;lan0&nbsp;=&nbsp;&quot;166.98.16.103&quot;,&nbsp;lan0&nbsp;=&nbsp;&quot;166.98.16.103&quot;&nbsp;}
</font>
<br>
<font face="Courier New, Courier, sansserif, sans serif" size="2"><a name="198727"></a>Device@sysb&nbsp;=&nbsp;{&nbsp;lan0&nbsp;=&nbsp;&quot;166.98.16.104&quot;,&nbsp;lan0&nbsp;=&nbsp;&quot;166.98.16.104&quot;&nbsp;}
</font>
<br>
<font face="Courier New, Courier, sansserif, sans serif" size="2"><a name="198728"></a>NetMask&nbsp;=&nbsp;&quot;255.255.255.0&quot;
</font>
<br>
<font face="Courier New, Courier, sansserif, sans serif" size="2"><a name="198729"></a>ArpDelay&nbsp;=&nbsp;5
</font>
<br>
<font face="Courier New, Courier, sansserif, sans serif" size="2"><a name="198730"></a>Options&nbsp;=&nbsp;&quot;trailers&quot;
</font>
<br>
<font face="Courier New, Courier, sansserif, sans serif" size="2"><a name="198731"></a>RouteOptions@sysa&nbsp;=&nbsp;&quot;default&nbsp;166.98.16.1&nbsp;1&quot;
</font>
<br>
<font face="Courier New, Courier, sansserif, sans serif" size="2"><a name="198732"></a>RouteOptions@sysb&nbsp;=&nbsp;&quot;default&nbsp;166.98.16.1&nbsp;1&quot;
</font>
<br>
<font face="Courier New, Courier, sansserif, sans serif" size="2"><a name="149283"></a>)
</font>



<h2><font face="Arial, Helvetica, Geneva, sansserif, sans serif, Verdana" size="3" color="#000000"><a name="144208"></a>Temporary Attributes</font>
</h2>
 
<p>
<font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><a name="161027"></a>You can define temporary attributes in the types.cf file. The values of temporary attributes remain in memory as long as the VCS engine (HAD) is running. These attribute values are not stored in the main.cf file.</font>
</p>

<p>
<font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><a name="161040"></a>The command <font face="Courier New, Courier, sansserif, sans serif" size="2">haattr</font> <font face="Courier New, Courier, sansserif, sans serif" size="2">-add</font> <font face="Courier New, Courier, sansserif, sans serif" size="2">-temp</font> adds the temporary resource into memory. VCS does not require the configuration to be in read/write mode to add or delete these attributes using the command line. If temporary attributes are defined and the configuration is dumped, all temporary attributes and their default values are saved to types.cf. When HAD<font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="1"> </font>is restarted, the temporary attributes are defined and available. If HAD is stopped completely within the cluster without an intervening dump, values of temporary attributes are not available when HAD is restarted.<font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="1"> </font></font>
</p>

<p>
<font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><a name="144465"></a>The scope of these attributes is local or global. If the scope is local on any node in the cluster, the value remains in memory after the node fails. Also, local attributes can be defined prior to HAD starting on the node. In the case when HAD is restarted and the node rejoins the cluster, the value remains the same as when the node was running.</font>
</p>

<p>
<font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><a name="144259"></a>You must have the same permissions required to run modification commands from the command line, or the Cluster Manager Java and Web Consoles, regardless of whether an attribute is temporary or not. Some modifications require the configuration be opened; for example, changing an attribute's default value. See <a href="06admin_vcs_cli_vcs329_153755.html#153755">Adding, Deleting, and Modifying Resource Attributes</a> for command-line instructions. You can define and modify these attributes only while the VCS engine is running. Temporary attributes cannot be converted to permanent, and vice-versa, but they can persist when dumped to the types.cf file.</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="144649"></a><b>Note  &nbsp;&nbsp;</b>
</font>
<font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2" color="#000000">Duplicate names are not allowed for temporary attributes on a per-type basis. If a temporary attribute cannot be created, verify that the name does not already exist for that type in the types.cf file.
</font>
<hr noshade size="2" width="100%" color="#000000">

<!-- 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="04config_concepts_vcs296_139424.html" title="Attribute Dimensions">Return to Top</a></font>

  </td>
  <td align="right"><font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="-2">&lt;&nbsp;<a href="04config_concepts_vcs295_139399.html" title="Previous - Attributes">Previous</a>&nbsp;&nbsp;|&nbsp;&nbsp;<a href="04config_concepts_vcs297_134048.html" title="Next - Keywords/Reserved Words">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="vcshp_ug_titlepage_docCD_vcs258_73700.vxhd" title="Cluster Server 4.1 User's Guide title page ">Cluster Server 4.1 User'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>
