Microsoft.Unix.Script.PerfRule.Template.PageSet (UIPageSet)

Element properties:

Type DefinitionMicrosoft.Unix.Script.PerfRule.Template

Source Code:

<UIPageSet ID="Microsoft.Unix.Script.PerfRule.Template.PageSet" TypeDefinitionID="Microsoft.Unix.Script.PerfRule.Template">
<UIPageReferences>
<UIPageReference ID="Microsoft.Unix.Script.PerfRule.Template.PageSet.Reference1" PageID="RuleTemplates!Microsoft.SystemCenter.RuleTemplates.RuleGeneralPage" Usage="CreationOnly">
<InputTransform>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:output method="xml" indent="yes" omit-xml-declaration="yes"/>
<xsl:template match="/">
<xsl:element name="Category">
<xsl:copy>PerformanceCollection</xsl:copy>
</xsl:element>
</xsl:template>
</xsl:stylesheet>
</InputTransform>
</UIPageReference>
<UIPageReference ID="Microsoft.Unix.Script.PerfRule.Template.PageSet.Reference2" PageID="System!System.SimpleSchedulerPage" Usage="CreationAndUpdate">
<InputTransform>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:output method="xml" indent="yes" omit-xml-declaration="yes"/>
<xsl:template match="/">
<xsl:element name="SimpleReccuringSchedule">
<xsl:element name="Interval"><xsl:attribute name="Unit">Minutes</xsl:attribute>15
</xsl:element>
</xsl:element>
</xsl:template>
</xsl:stylesheet>
</InputTransform>
</UIPageReference>
<UIPageReference ID="Microsoft.Unix.Script.PerfRule.Template.PageSet.Reference3" PageID="Microsoft.Unix.ScriptDetailsPage" Usage="CreationAndUpdate">
<InputParameters/>
<InputTransform/>
<Title ID="Microsoft.Unix.Script.PerfRule.Template.PageSet.Reference3.Title"/>
<SubTitle ID="Microsoft.Unix.Script.PerfRule.Template.PageSet.Reference3.SubTitle"/>
</UIPageReference>
<UIPageReference ID="Microsoft.Unix.Script.PerfRule.Template.PageSet.Reference4" PageID="System!System.ExpressionBuilderPage" Usage="CreationAndUpdate">
<InputParameters>
<DataType>WSM!Microsoft.SystemCenter.WSManagement.WSManData</DataType>
</InputParameters>
<InputTransform>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:output method="xml" indent="yes" omit-xml-declaration="yes"/>
<xsl:template match="/">
<xsl:element name="Expression">
<xsl:element name="And">
<xsl:element name="Expression">
<xsl:element name="RegExExpression">
<xsl:element name="ValueExpression">
<xsl:element name="XPathQuery"><xsl:attribute name="Type">String</xsl:attribute>//*[local-name()="StdOut"]
</xsl:element>
</xsl:element>
<xsl:element name="Operator">MatchesRegularExpression</xsl:element>
<xsl:element name="Pattern">^[-+]?\d*[0-9]*(\.[0-9]+)?[Ee]?[-+]?[0-9]*$</xsl:element>
</xsl:element>
</xsl:element>
<xsl:element name="Expression">
<xsl:element name="SimpleExpression">
<xsl:element name="ValueExpression">
<xsl:element name="XPathQuery"><xsl:attribute name="Type">Integer</xsl:attribute>//*[local-name()="ReturnCode"]
</xsl:element>
</xsl:element>
<xsl:element name="Operator">Equal</xsl:element>
<xsl:element name="ValueExpression">
<xsl:element name="Value"><xsl:attribute name="Type">Integer</xsl:attribute>0
</xsl:element>
</xsl:element>
</xsl:element>
</xsl:element>
</xsl:element>
</xsl:element>
</xsl:template>
</xsl:stylesheet>
</InputTransform>
<Title ID="Microsoft.Unix.Script.PerfRule.Template.PageSet.Reference4.Title"/>
<SubTitle ID="Microsoft.Unix.Script.PerfRule.Template.PageSet.Reference4.SubTitle"/>
<TabName ID="Microsoft.Unix.Script.PerfRule.Template.PageSet.Reference4.TabName"/>
</UIPageReference>
<UIPageReference ID="Microsoft.Unix.Script.PerfRule.Template.PageSet.PageReference5" PageID="Windows!Microsoft.Windows.PerformanceMapperPage" Usage="CreationAndUpdate">
<InputParameters>
<ObjectName>MyObject</ObjectName>
<CounterName>MyCounter</CounterName>
<InstanceName>MyInstance</InstanceName>
<Value>$Data///*[local-name()='StdOut']$</Value>
</InputParameters>
<InputTransform>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:output method="xml" indent="yes" omit-xml-declaration="yes"/>
<xsl:template match="/">
<xsl:copy-of select="/ObjectName"/>
<xsl:copy-of select="/CounterName"/>
<xsl:copy-of select="/InstanceName"/>
<xsl:copy-of select="/Value"/>
</xsl:template>
</xsl:stylesheet>
</InputTransform>
</UIPageReference>
</UIPageReferences>
<OutputTransform>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:output method="xml" indent="yes" omit-xml-declaration="yes"/>
<xsl:template match="/">
<xsl:element name="Configuration">
<xsl:copy-of select="/ID"/>
<xsl:copy-of select="/Name"/>
<xsl:copy-of select="/Description[1]"/>
<xsl:copy-of select="/Target"/>
<xsl:element name="TargetSystem">
<xsl:variable name="MPAlias" select="/UnixLibraryAlias"/>
<xsl:variable name="HostReference" select="/TargetHosted"/>
<xsl:value-of select="concat('$Target/',$HostReference,'Property[Type=','&quot;',$MPAlias,'!Microsoft.Unix.Computer','&quot;',']/NetworkName$')"/>
</xsl:element>
<xsl:copy-of select="/Category"/>
<xsl:copy-of select="/LocaleId"/>
<xsl:copy-of select="/Script"/>
<xsl:element name="ScriptArgs">
<xsl:value-of select="/ScriptArgs"/>
</xsl:element>
<!--
Construct RunAs UserName reference from MP Alias for the Unix Library MP and the Run As profile name.
For the Rule & Task templates, this could be done with a Template $Reference variable, but it is used consistently
for all templates in this MP, and monitor templates cannot use that convention.
-->
<xsl:element name="UserName">
<xsl:variable name="SelectedProfile" select="/RunAsProfile"/>
<xsl:variable name="MPAlias" select="/UnixLibraryAlias"/>
<xsl:value-of select="concat('$RunAs[Name=','&quot;',$MPAlias,'!',$SelectedProfile,'&quot;',']/UserName$')"/>
</xsl:element>
<!--
Construct RunAs Password reference from MP Alias for the Unix Library MP and the Run As profile name.
For the Rule & Task templates, this could be done with a Template $Reference variable, but it is used consistently
for all templates in this MP, and monitor templates cannot use that convention.
-->
<xsl:element name="Password">
<xsl:variable name="SelectedProfile" select="/RunAsProfile"/>
<xsl:variable name="MPAlias" select="/UnixLibraryAlias"/>
<xsl:value-of select="concat('$RunAs[Name=','&quot;',$MPAlias,'!',$SelectedProfile,'&quot;',']/Password$')"/>
</xsl:element>
<xsl:copy-of select="/TimeOut"/>
<xsl:copy-of select="/TimeOutInMS"/>
<xsl:element name="Interval">
<xsl:variable name="RawInterval" select="/SimpleReccuringSchedule/Interval"/>
<xsl:variable name="Units" select="/SimpleReccuringSchedule/Interval/@Unit"/>
<xsl:choose>
<xsl:when test="not(boolean($Units)) or $Units='Seconds'">
<xsl:value-of select="$RawInterval"/>
</xsl:when>
<xsl:when test="$Units='Minutes'">
<xsl:value-of select="$RawInterval*60"/>
</xsl:when>
<xsl:when test="$Units='Hours'">
<xsl:value-of select="$RawInterval*3600"/>
</xsl:when>
<xsl:when test="$Units='Days'">
<xsl:value-of select="$RawInterval*86400"/>
</xsl:when>
</xsl:choose>
</xsl:element>
<xsl:element name="SyncTime">
<xsl:value-of select="/SimpleReccuringSchedule/SyncTime"/>
</xsl:element>
<xsl:copy-of select="/Enabled"/>
<xsl:element name="Expression">
<xsl:copy-of select="/Expression[1]/*"/>
</xsl:element>
<xsl:copy-of select="/ObjectName"/>
<xsl:copy-of select="/InstanceName"/>
<xsl:copy-of select="/CounterName"/>
<xsl:copy-of select="/Value"/>
</xsl:element>
</xsl:template>
</xsl:stylesheet>
</OutputTransform>
</UIPageSet>