HP 3PAR Command Line Interface Administrator's Manual: HP 3PAR OS 3.1.2 (QR482-96525, September 2013)

8 Creating and Applying Templates
Overview
You can use the HP 3PAR CLI to create templates that enable you to apply a set of parameters that
automatically create LDs, virtual volumes, or CPGs with the same or similar characteristics.
The following general rules apply to templates:
A property can either be included in a template or not included.
Properties are virtual volume, LD, or CPG attributes such as set size.
A property included in a template can have a defined value or have a value that is left
unspecified.
A property with a defined value has had a specific value assigned to it (for example, a set
size of 2). A property with an unspecified value does not have a specific value assigned to
it. When you apply a template that includes a property with one or more unspecified values,
the system will either use the default value (when applicable) or calculate the optimized setting
for you.
For all templates, you can either allow overrides of property values or not.
When you allow overrides of a property, users can modify that property's value when applying
the template. When you do not allow overrides of a property, it is not possible to modify the
defined value, system default, or system-calculated value for that property when applying the
template.
Creating Templates
You can create three types of templates that can then be applied to create LDs, virtual volumes,
and CPGs.
To create a template, issue the createtemplate <obj_type> <template_name> command,
where:
<obj_type> is the object type the template is used to create. Specify VV, LD, or CPG for
virtual volume, LD, or CPG, respectively.
<template_name> is the name of the template being created.
The VV, LD, and CPG templates have object-specific arguments that must be specified during
creation.
Additionally, depending on the type of template you are creating, you may wish to specify other
arguments to further refine the template’s parameters. For required and optional arguments specific
to each template object type, see the HP 3PAR Command Line Interface Reference.
Applying Templates
Once you have created a template, you can apply that template to create LDs, virtual volumes, or
CPGs.
102 Creating and Applying Templates