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

Element properties:

Type DefinitionMicrosoft.Unix.ShellCommand.Task.Template

Source Code:

<UIPageSet ID="Microsoft.Unix.ShellCommand.Task.Template.PageSet" TypeDefinitionID="Microsoft.Unix.ShellCommand.Task.Template">
<UIPageReferences>
<UIPageReference ID="Microsoft.Unix.ShellCommand.Task.Template.PageSet.Reference1" PageID="Tasks!Microsoft.SystemCenter.TaskTemplates.TaskGeneralPage" Usage="CreationOnly">
<InputParameters/>
<InputTransform/>
</UIPageReference>
<UIPageReference ID="Microsoft.Unix.ShellCommand.Task.Template.PageSet.Reference2" PageID="Microsoft.Unix.ShellCommandDetailsPage" Usage="CreationOnly">
<InputParameters/>
<InputTransform/>
<Title ID="Microsoft.Unix.ShellCommand.Task.Template.PageSet.Reference2.Title"/>
<SubTitle ID="Microsoft.Unix.ShellCommand.Task.Template.PageSet.Reference2.SubTitle"/>
<TabName ID="Microsoft.Unix.ShellCommand.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"/>
<!--
Concatenate the MP Alias for the Unix Library MP (returned from UI) with the ID of Microsoft Unix Computer to construct the NetworkName reference
Targets must be Microsoft.Unix.Computer or based on Microsoft.Unix.Computer, or hosted directly by a class based on Microsoft.Unix.Computer.
-->
<xsl:element name="TargetSystem">
<xsl:variable name="MPAlias" select="/UnixLibraryAlias"/>
<xsl:choose>
<xsl:when test="/TargetHosted='true'">
<xsl:value-of select="concat('$Target/Host/Property[Type=','&quot;',$MPAlias,'!Microsoft.Unix.Computer','&quot;',']/NetworkName$')"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="concat('$Target/Property[Type=','&quot;',$MPAlias,'!Microsoft.Unix.Computer','&quot;',']/NetworkName$')"/>
</xsl:otherwise>
</xsl:choose>
</xsl:element>
<xsl:copy-of select="/Category"/>
<xsl:copy-of select="/LocaleId"/>
<xsl:copy-of select="/Command"/>
<!--
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>