Microsoft.Unix.ShellCommand.DataSourcePageSet (UIPageSet)

Element properties:

Type DefinitionMicrosoft.Unix.ShellCommand.Invoke.DataSource

Source Code:

<UIPageSet ID="Microsoft.Unix.ShellCommand.DataSourcePageSet" TypeDefinitionID="Microsoft.Unix.ShellCommand.Invoke.DataSource">
<UIPageReferences>
<UIPageReference ID="Microsoft.Unix.ShellCommand.DataSourcePageSet.Reference1" 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:value-of select="Interval"/>
</xsl:element>
<xsl:element name="SyncTime">
<xsl:value-of select="SyncTime"/>
</xsl:element>
</xsl:element>
</xsl:template>
</xsl:stylesheet>
</InputTransform>
</UIPageReference>
<UIPageReference ID="Microsoft.Unix.ShellCommand.DataSourcePageSet.Reference2" PageID="Microsoft.Unix.ShellCommandDetailsPage" Usage="CreationAndUpdate">
<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="Command">
<xsl:copy-of select="/ShellCommand"/>
</xsl:element>
<xsl:element name="TimeOutInMS">
<xsl:value-of select="/TimeOutInMS"/>
</xsl:element>
<xsl:element name="TimeOut">
<xsl:value-of select="/TimeOut"/>
</xsl:element>
<xsl:variable name="MonitorUserName" select="/UserName"/>
<xsl:element name="RunAsProfile">
<xsl:value-of select="substring-before(substring-after($MonitorUserName, '!'),'&quot;]')"/>
</xsl:element>
</xsl:template>
</xsl:stylesheet>
</InputTransform>
<Title ID="Microsoft.Unix.ShellCommand.DataSourcePageSet.Reference2.Title"/>
<SubTitle ID="Microsoft.Unix.ShellCommand.DataSourcePageSet.Reference2.SubTitle"/>
<TabName ID="Microsoft.Unix.ShellCommand.DataSourcePageSet.Reference2.TabName"/>
</UIPageReference>
<UIPageReference ID="Microsoft.Unix.ShellCommand.DataSourcePageSet.Reference3" 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:copy-of select="/FilterExpression/*"/>
</xsl:element>
</xsl:template>
</xsl:stylesheet>
</InputTransform>
<Title ID="Microsoft.Unix.ShellCommand.DataSourcePageSet.Reference3.Title"/>
<SubTitle ID="Microsoft.Unix.ShellCommand.DataSourcePageSet.Reference3.SubTitle"/>
<TabName ID="Microsoft.Unix.ShellCommand.DataSourcePageSet.Reference3.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="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: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: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>
<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:element name="ShellCommand">
<xsl:value-of select="/Command"/>
</xsl:element>
<xsl:copy-of select="/TimeOut"/>
<xsl:copy-of select="/TimeOutInMS"/>
<xsl:element name="FilterExpression">
<xsl:copy-of select="/Expression[1]/*"/>
</xsl:element>
</xsl:template>
</xsl:stylesheet>
</OutputTransform>
</UIPageSet>