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

Element properties:

Type DefinitionMicrosoft.Unix.Script.Task.Template

Source Code:

<UIPageSet ID="Microsoft.Unix.Script.Task.Template.PageSet" TypeDefinitionID="Microsoft.Unix.Script.Task.Template">
<UIPageReferences>
<UIPageReference ID="Microsoft.Unix.Script.Task.Template.PageSet.Reference1" PageID="Tasks!Microsoft.SystemCenter.TaskTemplates.TaskGeneralPage" Usage="CreationOnly">
<InputParameters/>
<InputTransform/>
</UIPageReference>
<UIPageReference ID="Microsoft.Unix.Script.Task.Template.PageSet.Reference2" PageID="Microsoft.Unix.ScriptDetailsPage" Usage="CreationOnly">
<InputParameters/>
<InputTransform/>
<Title ID="Microsoft.Unix.Script.Task.Template.PageSet.Reference2.Title"/>
<SubTitle ID="Microsoft.Unix.Script.Task.Template.PageSet.Reference2.SubTitle"/>
<TabName ID="Microsoft.Unix.Script.Task.Template.PageSet.Reference2.TabName"/>
</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>
</xsl:template>
</xsl:stylesheet>
</OutputTransform>
</UIPageSet>