Implementation (Template)
Applies To: Operations Manager 2007 R2, System Center Operations Manager 2007
The management pack fragment that will be inserted into the target management pack.
Schema Hierarchy
ManagementPack
Templates
Template
Implementation (Template)
Syntax
<Implementation>
Management Pack XML
</Implementation>
Attributes and Elements
The following sections describe attributes, child elements, and the parent element of the Implementation element.
Attributes
None
Child Elements
None.
Parent Elements
Element | Description |
---|---|
Represents a template definition. |
Text Value
The content of the Implementation element is the management pack fragment that will be inserted into the targeted management pack.
Remarks
The implementation section is the management pack fragment that will be inserted into the target management pack. No verification is performed on this section because it will not be a valid management pack by itself. In the implementation section, variable notation refers to template configuration values and template reference aliases. These will be substituted appropriately when the template is run. The syntax used for these references described in the following table.
Variable Notation | Description |
---|---|
$Reference/AliasName$ |
“AliasName” represents the alias of a reference that is defined in the template References (Template) section. |
$TemplateConfig/ConfigurationParameterName |
“ConfigurationParameterName” represents a valid XPath over a Configuration (Template) parameter. |
Warning
Currently, the creation of custom management pack templates is not supported in Operations Manager.
Example
The following sample XML sample illustrates an Implementation element within a template that is designed for a task.
<Template ID="Microsoft.SystemCenter.TaskTemplates.ScriptTask" Purpose="TaskCreation">
<Configuration>
<xsd:element name="ID" type="xsd:string" />
<xsd:element name="Name" type="xsd:string" />
<xsd:element name="Description" type="xsd:string" />
<xsd:element name="Target" type="xsd:string" />
<xsd:element name="Category" type="xsd:string" />
<xsd:element name="LocaleId" type="xsd:string" />
<xsd:element name="ScriptName" type="xsd:string" />
<xsd:element name="Arguments" type="xsd:string" />
<xsd:element name="ScriptBody" type="xsd:string" />
<xsd:element name="TimeoutSeconds" type="xsd:integer" />
</Configuration>
<References>
<Reference ID="Windows" />
</References>
<Implementation>
<Monitoring>
<Tasks>
<Task ID="$TemplateConfig/ID$" Target="$TemplateConfig/Target$" Accessibility="Public">
<Category>$TemplateConfig/Category$</Category>
<WriteAction ID="PA" TypeID="$Reference/Windows$Microsoft.Windows.ScriptWriteAction">
<ScriptName>$TemplateConfig/ScriptName$</ScriptName>
<Arguments>$TemplateConfig/Arguments$</Arguments>
<ScriptBody>$TemplateConfig/ScriptBody$</ScriptBody>
<TimeoutSeconds>$TemplateConfig/TimeoutSeconds$</TimeoutSeconds>
</WriteAction>
</Task>
</Tasks>
</Monitoring>
<LanguagePacks>
<LanguagePack ID="$TemplateConfig/LocaleId$" IsDefault="true">
<DisplayStrings>
<DisplayString ElementID="$TemplateConfig/ID$">
<Name>$TemplateConfig/Name$</Name>
<Description>$TemplateConfig/Description$</Description>
</DisplayString>
</DisplayStrings>
</LanguagePack>
</LanguagePacks>
</Implementation>
</Template>