$Reference

System Center

Updated: August 10, 2011

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

The $Reference variable notation refers to a Reference (Template) element of a Template element’s type definition.

$Reference/ReferenceID/TypeName$

The $Reference variable notation allows a template element’s child elements to refer to the types that are defined in a template’s references.

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

 

Syntax Section Description

$Reference/ReferenceID

Refers to the ID of one of the reference elements within a template.

$Reference/ReferenceID/TypeName

Refers to the ID of the type defined within the reference.

The following XML example defines a template element that contains four external management pack references. In this example, you can see how a template refers to elements that are defined in those external management packs.

<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>
 …
       <Monitoring>
          <Discoveries>
            <Discovery ID="Microsoft.Exchange2007.Template.MailFlowTX.Remote.Discovery.$TemplateConfig/TemplateIdString$" Enabled="false" Target="$Reference/ExLibrary$$TemplateConfig/SourceServerClass$" ConfirmDelivery="true" Remotable="false" Priority="Normal">
              <Category>Discovery</Category>
              <DiscoveryTypes>
                <DiscoveryClass TypeID="Microsoft.Exchange2007.Template.MailFlowTX.Remote.$TemplateConfig/TemplateIdString$">
                  <Property TypeID="$Reference/ExLibrary$Microsoft.Exchange2007.Synthetics" PropertyID="SourceServer" />
                  <Property TypeID="$Reference/ExLibrary$Microsoft.Exchange2007.Synthetics" PropertyID="TargetServer" />
                  <Property TypeID="$Reference/System$System.Entity" PropertyID="DisplayName" />
                </DiscoveryClass>
                <DiscoveryRelationship TypeID="$Reference/ExLibrary$Microsoft.Exchange2007.ServerRole.Mailbox.Contains.MailFlowTX" />
              </DiscoveryTypes>
              <DataSource ID="DS" TypeID="$Reference/ExMailbox$Microsoft.Exchange2007.Template.MailFlowTX.Remote.Discovery.DS">
                <MailFlowClassGuid>$MPElement[Name='Microsoft.Exchange2007.Template.MailFlowTX.Remote.$TemplateConfig/TemplateIdString$']$</MailFlowClassGuid>
                <SourceServerClassGuid>$MPElement[Name='$Reference/ExLibrary$$TemplateConfig/SourceServerClass$']$</SourceServerClassGuid>
                <TargetGuids>$TemplateConfig/TargetGuids$</TargetGuids>
                <TargetServers>$TemplateConfig/TargetServers$</TargetServers>
                <IntervalSeconds>86400</IntervalSeconds>
                <SyncTime />
                <TimeoutSeconds>300</TimeoutSeconds>
                <TraceEnabled>false</TraceEnabled>
              </DataSource>
            </Discovery>
          </Discoveries>
          <Overrides>
…
</Template>
 
Show: