HP-UX CMGR A.02.01 Administrator's and Developer's Guide
8
2 Building a Template
You can use the CMGR templates with the cmgr command to coordinate the configuration of
subsystems and services. A CMGR template is an XML document used to describe a set of
configuration actions to perform for the add, delete, replace, list, and help operations of the cmgr
command. The CMGR template syntax is enforced via the Document Type Definition (DTD) schema
file. In addition to XML elements and attributes, a CMGR template can contain variables that are
dynamically evaluated by the cmgr command during processing. While processing the template, the
cmgr command logically replaces the occurrences of variables with the user provided (or default)
values.
The cmgr command provides handler routines for each element type defined in this section. The
cmgr command can support additional element types if you provide new handler routines.
The cmgr command processes the elements in the order that they appear in the document. The child
elements are processed before the parent elements.
The section describes the following:
• 2.1 Structure Elements
• 2.2 Configuration Elements
• 2.3 Processing/Operational Elements
• 2.4 Common Attributes
• 2.5 Example: Building a Template
2.1 Structure Elements
The CMGR template structure elements are grouping elements. They define the structure of your
template and include the following elements: template, head, prologue, and body.
This section describes each structure elements and lists their possible child elements:
• 2.1.1 The template Element
• 2.1.2 The head Element
• 2.1.3 The prologue Element
• 2.1.4 The body Element
NOTE: You can not include any attributes in the structure elements.
2.1.1 The template Element
The template element is required. It is the highest level element in the CMGR template. The
template element can have the following child elements:
Child Element
Description
Head
Required
prologue
Optional
Body
Required
2.1.2 The head Element
The head element is required. We recommended that you use the head element to group elements
that must be processed when cmgr is first invoked. For example, include the default values for your