Microsoft.Unix.Invoke.Script.DataSource.PageSet (UIPageSet)

Element properties:

Type DefinitionMicrosoft.Unix.Invoke.Script.DataSource

Source Code:

<UIPageSet ID="Microsoft.Unix.Invoke.Script.DataSource.PageSet" TypeDefinitionID="Microsoft.Unix.Invoke.Script.DataSource">
<UIPageReferences>
<UIPageReference ID="Microsoft.Unix.Invoke.Script.DataSource.PageSet.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.Invoke.Script.DataSource.PageSet.Reference2" PageID="Microsoft.Unix.ScriptDetailsPage" 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="Script">
<xsl:copy-of select="/Script"/>
</xsl:element>
<xsl:element name="ScriptArgs">
<xsl:copy-of select="/ScriptArgs"/>
</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:element name="UnixLibraryAlias">
<xsl:value-of select="substring-before(substring-after($MonitorUserName,'=&quot;'), '!')"/>
</xsl:element>
</xsl:template>
</xsl:stylesheet>
</InputTransform>
<Title ID="Microsoft.Unix.Invoke.Script.DataSource.PageSet.Reference2.Title"/>
<SubTitle ID="Microsoft.Unix.Invoke.Script.DataSource.PageSet.Reference2.SubTitle"/>
<TabName ID="Microsoft.Unix.Invoke.Script.DataSource.PageSet.Reference2.TabName"/>
</UIPageReference>
<UIPageReference ID="Microsoft.Unix.Invoke.Script.DataSource.PageSet.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.Invoke.Script.DataSource.PageSet.Reference3.Title"/>
<SubTitle ID="Microsoft.Unix.Invoke.Script.DataSource.PageSet.Reference3.SubTitle"/>
<TabName ID="Microsoft.Unix.Invoke.Script.DataSource.PageSet.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:variable name="HostReference" select="/TargetHosted"/>
<xsl:value-of select="concat('$Target/',$HostReference,'Property[Type=','&quot;',$MPAlias,'!Microsoft.Unix.Computer','&quot;',']/NetworkName$')"/>
</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="/Script"/>
<xsl:element name="ScriptArgs">
<xsl:value-of select="/ScriptArgs"/>
</xsl:element>
<xsl:copy-of select="/TimeOut"/>
<xsl:copy-of select="/TimeOutInMS"/>
<xsl:copy-of select="/Enabled"/>
<xsl:element name="FilterExpression">
<xsl:copy-of select="/Expression[1]/*"/>
</xsl:element>
</xsl:template>
</xsl:stylesheet>
</OutputTransform>
</UIPageSet>