Export (0) Print
Expand All

$TemplateConfig

System Center

Updated: August 10, 2011

Applies To: Operations Manager 2007 R2, System Center Operations Manager 2007

The $TemplateConfig variable notation refers to the configuration element of a template element’s type definition.

$TemplateConfig/ParameterName$

The $TemplateConfig variable notation allows template element’s child elements to refer to the values of its configuration parameters when the template configuration is created.

WarningWarning
The creation of custom management pack templates is not supported in the current release of Operations Manager.

The following example defines a Template element that requires 12 configuration parameters. When the template configuration is created, the value of those parameters can be used throughout the member elements of the template. In this example, you can see how the ID of a ClassType definition appends the TemplateIdString parameter value.

<Template ID="Microsoft.Exchange2007.Template.MailFlow">
      <Configuration>
        <xsd:element name="Name" type="xsd:string" />
        <xsd:element name="Description" type="xsd:string" />
        <xsd:element name="SourceServerClass" type="xsd:string" />
        <xsd:element name="SourceServerInstanceGuid" type="xsd:string" />
        <xsd:element name="SourceServerDnsName" type="xsd:string" />
        <xsd:element name="TargetGuids" type="xsd:string" />
        <xsd:element name="TargetServers" type="xsd:string" />
        <xsd:element name="TemplateIdString" type="xsd:string" />
        <xsd:element name="IntervalSeconds" type="xsd:unsignedInt" />
        <xsd:element name="RegularTimeout" type="xsd:unsignedInt" />
        <xsd:element name="DoubledTimeout" type="xsd:unsignedInt" />
        <xsd:element name="TimeoutSeconds" type="xsd:unsignedInt" />
      </Configuration>
      <References>
        <Reference ID="ExDiscovery" />
        <Reference ID="ExLibrary" />
        <Reference ID="ExMailbox" />
        <Reference ID="System" />
      </References>
      <Implementation>
        <TypeDefinitions>
          <EntityTypes>
            <ClassTypes>
              <ClassType ID="Microsoft.Exchange2007.Template.MailFlowTX.Remote.$TemplateConfig/TemplateIdString$" Accessibility="Internal" Abstract="false" Base="$Reference/ExLibrary$Microsoft.Exchange2007.Synthetics.MailFlowTX.Remote" Hosted="true" Singleton="false" />
            </ClassTypes>
          </EntityTypes>
        </TypeDefinitions>
…
</Template>
 
Show:
© 2014 Microsoft