UNIX/Linux Shell Command Write Action
Unix.Authoring.ShellCommand.WriteAction (WriteActionModuleType)
A write action module type that runs a shell command through a WS-Management invocation.
Element properties:
Member Modules:
Source Code:
<WriteActionModuleType ID="Unix.Authoring.ShellCommand.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="ShellCommand" 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>ExecuteShellCommand</InvokeAction>
<Input><p:ExecuteShellCommand_INPUT xmlns:p="http://schemas.microsoft.com/wbem/wscim/1/cim-schema/2/SCX_OperatingSystem"><p:command>$Config/ShellCommand$</p:command><p:timeout>$Config/Timeout$</p:timeout></p:ExecuteShellCommand_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>