<!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:13:05">
<meta name="PRODUCTNAME" content="VERITAS Software Documentation">
<meta name="FILENAME" content="usertemplates.fm">
     
<title>Format of User Templates</title>

</HEAD>

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

<a name="201994"></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="usertemplates_vxsf163_175955.html" title="Previous - Creating and Modifying User Templates">Previous</a>&nbsp;&nbsp;|&nbsp;&nbsp;<a href="usertemplates_vxsf165_108060.html" title="Next - Creating User Templates">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="vxsf_splashpage_docCD_vxsf1_103036.vxhd" title="Storage Foundation Guides title page ">Storage Foundation 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="stalag_titlepage_docCD_vxsf91_73700.vxhd" title="Storage Foundation 4.1 Intelligent Storage Provisioning Administrator's Guide title page ">Storage Foundation 4.1 Intelligent Storage Provisioning Administrator'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>
	
<h1><font face="Arial, Helvetica, Geneva, sansserif, sans serif, Verdana" size="+1" color="#000000"><a name="201994"></a> Format of User Templates</font>
</h1>
         
<p>
<font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><a name="204280"></a>A user template consists of a list of capabilities and rules. Associated with each capability is a list of parameter-value pairs that define default parameter values for the capability. The format of a typical user template specification is shown here:</font>
</p>

<br>
<font face="Courier New, Courier, sansserif, sans serif" size="2"><a name="202868"></a>user_template&nbsp;<font face="Courier New, Courier, sansserif, sans serif" size="2"><em>usertmplt_tname</em></font>&nbsp;{
</font>
<br>
<font face="Courier New, Courier, sansserif, sans serif" size="2"><a name="202873"></a>&nbsp;&nbsp;description&nbsp;<font face="Courier New, Courier, sansserif, sans serif" size="2"><em>&quot;string&quot;</em></font>
</font>
<br>
<font face="Courier New, Courier, sansserif, sans serif" size="2"><a name="202874"></a>&nbsp;&nbsp;descriptionid&nbsp;<font face="Courier New, Courier, sansserif, sans serif" size="2"><em>id</em></font>
</font>
<br>
<font face="Courier New, Courier, sansserif, sans serif" size="2"><a name="202985"></a>&nbsp;&nbsp;capability&nbsp;<font face="Courier New, Courier, sansserif, sans serif" size="2"><em>capability1</em></font>&nbsp;{
</font>
<br>
<font face="Courier New, Courier, sansserif, sans serif" size="2"><a name="203264"></a>&nbsp;&nbsp;&nbsp;<font face="Courier New, Courier, sansserif, sans serif" size="2"><em>attribute_name</em></font>:<font face="Courier New, Courier, sansserif, sans serif" size="2"><em>type</em></font>&nbsp;=&nbsp;<font face="Courier New, Courier, sansserif, sans serif" size="2"><em>default_value</em></font>
</font>
<br>
<font face="Courier New, Courier, sansserif, sans serif" size="2"><a name="203267"></a>&nbsp;&nbsp;&nbsp;...
</font>
<br>
<font face="Courier New, Courier, sansserif, sans serif" size="2"><a name="203281"></a>&nbsp;&nbsp;}
</font>
<br>
<font face="Courier New, Courier, sansserif, sans serif" size="2"><a name="203308"></a>&nbsp;&nbsp;capability&nbsp;<font face="Courier New, Courier, sansserif, sans serif" size="2"><em>capability2</em></font>&nbsp;{
</font>
<br>
<font face="Courier New, Courier, sansserif, sans serif" size="2"><a name="203309"></a>&nbsp;&nbsp;&nbsp;<font face="Courier New, Courier, sansserif, sans serif" size="2"><em>attribute_name</em></font>&nbsp;=&nbsp;<font face="Courier New, Courier, sansserif, sans serif" size="2"><em>default_value</em></font>
</font>
<br>
<font face="Courier New, Courier, sansserif, sans serif" size="2"><a name="203310"></a>&nbsp;&nbsp;&nbsp;...
</font>
<br>
<font face="Courier New, Courier, sansserif, sans serif" size="2"><a name="203311"></a>&nbsp;&nbsp;}
</font>
<br>
<font face="Courier New, Courier, sansserif, sans serif" size="2"><a name="203326"></a>&nbsp;&nbsp;...
</font>
<br>
<font face="Courier New, Courier, sansserif, sans serif" size="2"><a name="202876"></a>&nbsp;&nbsp;rules&nbsp;{
</font>
<br>
<font face="Courier New, Courier, sansserif, sans serif" size="2"><a name="202877"></a>&nbsp;&nbsp;&nbsp;<font face="Courier New, Courier, sansserif, sans serif" size="2"><em>rule1</em></font>
</font>
<br>
<font face="Courier New, Courier, sansserif, sans serif" size="2"><a name="202878"></a>&nbsp;&nbsp;&nbsp;<font face="Courier New, Courier, sansserif, sans serif" size="2"><em>rule2</em></font>
</font>
<br>
<font face="Courier New, Courier, sansserif, sans serif" size="2"><a name="203643"></a>&nbsp;&nbsp;&nbsp;...
</font>
<br>
<font face="Courier New, Courier, sansserif, sans serif" size="2"><a name="203655"></a>&nbsp;&nbsp;}
</font>
<br>
<font face="Courier New, Courier, sansserif, sans serif" size="2"><a name="202892"></a>};
</font>
<p>
<font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><a name="202893"></a>This definition has the following important components:</font>
</p>

<p>
<font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><a name="202894"></a><font face="Courier New, Courier, sansserif, sans serif" size="2"><em>usertmplt_name</em></font> 	Defines the name of the user template, for example, <font face="Courier New, Courier, sansserif, sans serif" size="2">MyReliableReplication</font>, and <font face="Courier New, Courier, sansserif, sans serif" size="2">MySWSnapshot</font>.</font>
</p>

<p>
<font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><a name="202911"></a>description	Describes a user template in English.</font>
</p>

<p>
<font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><a name="204670"></a>descriptionid	References the message catalog where localized versions of the description may be found, and provides an index number for the description in the catalog.</font>
</p>

<p>
<font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><a name="204672"></a>capability	Indicates the capabilities that are provided by volumes created from the user template.</font>
</p>

<p>
<font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><a name="203359"></a><font face="Courier New, Courier, sansserif, sans serif" size="2"><em>attribute_name</em></font>	Defines the name and value of a parameter.</font>
</p>

<p>
<font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><a name="202914"></a>rules	Specifies the start of the section that contains the rules for selecting and laying out storage, and which implement the capabilities that the user template provides. See <a href="rules_vxsf173_202903.html#202903">Rules</a>.</font>
</p>

<p>
<font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><a name="203328"></a>For a formal definition of <font face="Courier New, Courier, sansserif, sans serif" size="2">user_template</font> in the ISP language, see <a href="language_vxsf185_74999.html#74999">User Template</a>.</font>
</p>

<p>
<font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><a name="201923"></a>For example, consider a capability named <font face="Courier New, Courier, sansserif, sans serif" size="2">HardwareReplication</font> that has two variable parameters that specify the source and the destination:</font>
</p>

<br>
<font face="Courier New, Courier, sansserif, sans serif" size="2"><a name="201924"></a>capability&nbsp;HardwareReplication&nbsp;{
</font>
<br>
<font face="Courier New, Courier, sansserif, sans serif" size="2"><a name="201925"></a>&nbsp;&nbsp;var&nbsp;source:string
</font>
<br>
<font face="Courier New, Courier, sansserif, sans serif" size="2"><a name="201926"></a>&nbsp;&nbsp;var&nbsp;destination:string
</font>
<br>
<font face="Courier New, Courier, sansserif, sans serif" size="2"><a name="201927"></a>};
</font>
<p>
<font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><a name="202063"></a>In addition, the capability named <font face="Courier New, Courier, sansserif, sans serif" size="2">Reliable</font>, provides reliability by creating a mirrored volume:</font>
</p>

<br>
<font face="Courier New, Courier, sansserif, sans serif" size="2"><a name="202073"></a>capability&nbsp;Reliable&nbsp;{
</font>
<br>
<font face="Courier New, Courier, sansserif, sans serif" size="2"><a name="202074"></a>&nbsp;&nbsp;var&nbsp;NMIRS:int
</font>
<br>
<font face="Courier New, Courier, sansserif, sans serif" size="2"><a name="202076"></a>};
</font>
<p>
<font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><a name="202102"></a>Rules can also be specified to user templates, as shown in these examples that could be used for creating application volumes for database tables and indexes:</font>
</p>

<br>
<font face="Courier New, Courier, sansserif, sans serif" size="2"><a name="202105"></a>user_template&nbsp;DB_Table&nbsp;{
</font>
<br>
<font face="Courier New, Courier, sansserif, sans serif" size="2"><a name="202291"></a>&nbsp;&nbsp;description&nbsp;&quot;Makes&nbsp;mirrored&nbsp;volume&nbsp;for&nbsp;a&nbsp;database&nbsp;table&quot;
</font>
<br>
<font face="Courier New, Courier, sansserif, sans serif" size="2"><a name="202106"></a>&nbsp;&nbsp;capability&nbsp;DataMirroring&nbsp;{
</font>
<br>
<font face="Courier New, Courier, sansserif, sans serif" size="2"><a name="202107"></a>&nbsp;&nbsp;&nbsp;NMIRS&nbsp;=&nbsp;2
</font>
<br>
<font face="Courier New, Courier, sansserif, sans serif" size="2"><a name="202112"></a>&nbsp;&nbsp;}
</font>
<br>
<font face="Courier New, Courier, sansserif, sans serif" size="2"><a name="202122"></a>&nbsp;&nbsp;rules&nbsp;{
</font>
<br>
<font face="Courier New, Courier, sansserif, sans serif" size="2"><a name="202123"></a>&nbsp;&nbsp;&nbsp;confineto&nbsp;&quot;VendorName&quot;=&quot;EMC&quot;
</font>
<br>
<font face="Courier New, Courier, sansserif, sans serif" size="2"><a name="202124"></a>&nbsp;&nbsp;}
</font>
<br>
<font face="Courier New, Courier, sansserif, sans serif" size="2"><a name="202113"></a>};
</font>
<br>
<font face="Courier New, Courier, sansserif, sans serif" size="2"><a name="202137"></a>
</font>
<br>
<font face="Courier New, Courier, sansserif, sans serif" size="2"><a name="202127"></a>user_template&nbsp;DB_Index&nbsp;{
</font>
<br>
<font face="Courier New, Courier, sansserif, sans serif" size="2"><a name="202299"></a>&nbsp;&nbsp;description&nbsp;&quot;Makes&nbsp;high&nbsp;performance&nbsp;volume&nbsp;for&nbsp;a&nbsp;database&nbsp;index&quot;
</font>
<br>
<font face="Courier New, Courier, sansserif, sans serif" size="2"><a name="202128"></a>&nbsp;&nbsp;capability&nbsp;Striping&nbsp;{
</font>
<br>
<font face="Courier New, Courier, sansserif, sans serif" size="2"><a name="202129"></a>&nbsp;&nbsp;&nbsp;NCOLS&nbsp;=&nbsp;8
</font>
<br>
<font face="Courier New, Courier, sansserif, sans serif" size="2"><a name="202130"></a>&nbsp;&nbsp;}
</font>
<br>
<font face="Courier New, Courier, sansserif, sans serif" size="2"><a name="202131"></a>&nbsp;&nbsp;rules&nbsp;{
</font>
<br>
<font face="Courier New, Courier, sansserif, sans serif" size="2"><a name="202132"></a>&nbsp;&nbsp;&nbsp;confineto&nbsp;&quot;VendorName&quot;=&quot;EMC&quot;
</font>
<br>
<font face="Courier New, Courier, sansserif, sans serif" size="2"><a name="202133"></a>&nbsp;&nbsp;}
</font>
<br>
<font face="Courier New, Courier, sansserif, sans serif" size="2"><a name="202134"></a>};
</font>
<p>
<font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><a name="202125"></a>The user template, <font face="Courier New, Courier, sansserif, sans serif" size="2">DB_Table</font>, can be used to create a mirrored volume with two plexes, but is restricted to using only EMC disks. Similarly, the user template, <font face="Courier New, Courier, sansserif, sans serif" size="2">DB_Index</font>, can be used to create a striped volume with eight columns, and is also restricted to using only EMC disks.</font>
</p>


<!-- 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="usertemplates_vxsf164_201994.html" title="Format of User Templates">Return to Top</a></font>

  </td>
  <td align="right"><font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="-2">&lt;&nbsp;<a href="usertemplates_vxsf163_175955.html" title="Previous - Creating and Modifying User Templates">Previous</a>&nbsp;&nbsp;|&nbsp;&nbsp;<a href="usertemplates_vxsf165_108060.html" title="Next - Creating User Templates">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="vxsf_splashpage_docCD_vxsf1_103036.vxhd" title="Storage Foundation Guides title page ">Storage Foundation 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="stalag_titlepage_docCD_vxsf91_73700.vxhd" title="Storage Foundation 4.1 Intelligent Storage Provisioning Administrator's Guide title page ">Storage Foundation 4.1 Intelligent Storage Provisioning Administrator'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>
