UNIX/Linux Shell Script Write Action
Unix.Authoring.ShellScript.WriteAction (WriteActionModuleType)
A write action module type that runs a shell script through a WS-Management invocation. The shell script is transferred to the UNIX/Linux host for each invocation
Element properties: Member Modules:
Source Code: <WriteActionModuleType ID="Unix.Authoring.ShellScript.WriteAction" Accessibility="Public" Batching="false">
<Configuration>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="TargetSystem" type="xsd:string" minOccurs="1"/>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="ShellScript" type="xsd:string" minOccurs="1"/>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="ScriptArguments" type="xsd:string" minOccurs="1"/>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="Timeout" type="xsd:integer" minOccurs="1"/>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="UserName" type="xsd:string" minOccurs="1"/>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="Password" type="xsd:string" minOccurs="1"/>
</Configuration>
<ModuleImplementation Isolation="Any">
<Composite>
<MemberModules>
<WriteAction ID="InvokeWA" TypeID="Unix!Microsoft.Unix.WSMan.Invoke.VarPriv.WriteAction">
<TargetSystem>$Config/TargetSystem$</TargetSystem>
<UserName>$Config/UserName$</UserName>
<Password>$Config/Password$</Password>
<Uri>http://schemas.microsoft.com/wbem/wscim/1/cim-schema/2/SCX_OperatingSystem?__cimnamespace=root/scx</Uri>
<Selector/>
<InvokeAction>ExecuteScript</InvokeAction>
<Input>
<p:ExecuteScript_INPUT xmlns:p="http://schemas.microsoft.com/wbem/wscim/1/cim-schema/2/SCX_OperatingSystem">
<p:script>$Config/ShellScript$</p:script>
<p:arguments>$Config/ScriptArguments$</p:arguments>
<p:timeout>$Config/Timeout$</p:timeout>
</p:ExecuteScript_INPUT>
</Input>
<TimeOutInMS>300000</TimeOutInMS>
</WriteAction>
</MemberModules>
<Composition>
<Node ID="InvokeWA"/>
</Composition>
</Composite>
</ModuleImplementation>
<OutputType>WSMan!Microsoft.SystemCenter.WSManagement.WSManData</OutputType>
<InputType>System!System.BaseData</InputType>
</WriteActionModuleType>