HP 3PAR InForm OS 3.1.1 CLI Administrator's Manual

9 Creating and Applying Templates
Overview
You can use the InForm OS CLI to create templates that enable you to apply a set of parameters
that automatically create logical disks, virtual volumes, or Common Provisioning Groups 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, logical disk, or common provisioning group 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 logical disks, virtual
volumes, and common provisioning groups (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, logical disk, or common provisioning group, 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. Refer to the HP 3PAR InForm OS
Command Line Interface Reference for required and optional arguments specific to each
template object type.
Applying Templates
Once you have created a template, you can apply that template to create logical disks, virtual
volumes, or common provisioning groups (CPGs).
Overview 107