NiCE LogFile Instrumentation Deployment (UNIX/Linux)
NiCE.LogFile.Linux.Library.Install.Instrumentation.WA (WriteActionModuleType)
This write action module deploys NiCE LogFile MP instrumentation.
Element properties:
Member Modules:
Overrideable Parameters:
Source Code:
<WriteActionModuleType ID="NiCE.LogFile.Linux.Library.Install.Instrumentation.WA" Accessibility="Public" Batching="false">
<Configuration>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" minOccurs="1" name="TargetSystem" type="xsd:string"/>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" minOccurs="0" name="Port" type="xsd:string"/>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" minOccurs="1" name="TmpFolder" type="xsd:string"/>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" minOccurs="1" name="UserName" type="xsd:string"/>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" minOccurs="1" name="Password" type="xsd:string"/>
</Configuration>
<OverrideableParameters>
<OverrideableParameter ID="UserName" Selector="$Config/UserName$" ParameterType="string"/>
<OverrideableParameter ID="Password" Selector="$Config/Password$" ParameterType="string"/>
<OverrideableParameter ID="TmpFolder" Selector="$Config/TmpFolder$" ParameterType="string"/>
</OverrideableParameters>
<ModuleImplementation Isolation="Any">
<Composite>
<MemberModules>
<WriteAction ID="CommandMkDir" TypeID="Unix!Microsoft.Unix.SSHCommand.WriteAction">
<Host>$Config/TargetSystem$</Host>
<Port>$Config/Port$</Port>
<UserName>$Config/UserName$</UserName>
<Password>$Config/Password$</Password>
<Command>mkdir $Config/TmpFolder$/NiCEInstaller</Command>
</WriteAction>
<WriteAction ID="CommandChmodDir" TypeID="Unix!Microsoft.Unix.SSHCommand.WriteAction">
<Host>$Config/TargetSystem$</Host>
<Port>$Config/Port$</Port>
<UserName>$Config/UserName$</UserName>
<Password>$Config/Password$</Password>
<Command>chmod -R 777 $Config/TmpFolder$/NiCEInstaller</Command>
</WriteAction>
<WriteAction ID="CopyTarFile" TypeID="Unix!Microsoft.Unix.SFTPTransfer.WriteAction">
<Host>$Config/TargetSystem$</Host>
<Port>$Config/Port$</Port>
<UserName>$Config/UserName$</UserName>
<Password>$Config/Password$</Password>
<SourceFile>$FileResource[Name='Res.NiCE.LogFile.Linux.Library.Instrumentation']/Path$</SourceFile>
<TargetFile>$Config/TmpFolder$/NiCEInstaller/logmp_instrumentation.tar</TargetFile>
</WriteAction>
<WriteAction ID="CopyResponseFile" TypeID="Unix!Microsoft.Unix.SFTPTransfer.WriteAction">
<Host>$Config/TargetSystem$</Host>
<Port>$Config/Port$</Port>
<UserName>$Config/UserName$</UserName>
<Password>$Config/Password$</Password>
<SourceFile>$FileResource[Name='Res.NiCE.LogFile.Linux.Library.ResponseFile']/Path$</SourceFile>
<TargetFile>$Config/TmpFolder$/NiCEInstaller/logmp_response.cfg</TargetFile>
</WriteAction>
<WriteAction ID="CopyInstallScript" TypeID="Unix!Microsoft.Unix.SFTPTransfer.WriteAction">
<Host>$Config/TargetSystem$</Host>
<Port>$Config/Port$</Port>
<UserName>$Config/UserName$</UserName>
<Password>$Config/Password$</Password>
<SourceFile>$FileResource[Name='Res.NiCE.LogFile.Linux.Library.InstallScript']/Path$</SourceFile>
<TargetFile>$Config/TmpFolder$/NiCEInstaller/logmp_mp_install.sh</TargetFile>
</WriteAction>
<WriteAction ID="CommandChmodFiles" TypeID="Unix!Microsoft.Unix.SSHCommand.WriteAction">
<Host>$Config/TargetSystem$</Host>
<Port>$Config/Port$</Port>
<UserName>$Config/UserName$</UserName>
<Password>$Config/Password$</Password>
<Command>chmod -R 777 $Config/TmpFolder$/NiCEInstaller</Command>
</WriteAction>
<WriteAction ID="CommandInstall" TypeID="Unix!Microsoft.Unix.SSHCommand.WriteAction">
<Host>$Config/TargetSystem$</Host>
<Port>$Config/Port$</Port>
<UserName>$Config/UserName$</UserName>
<Password>$Config/Password$</Password>
<Command>cd $Config/TmpFolder$/NiCEInstaller;sh ./logmp_mp_install.sh;cd /tmp;rm -rf $Config/TmpFolder$/NiCEInstaller</Command>
</WriteAction>
</MemberModules>
<Composition>
<Node ID="CommandInstall">
<Node ID="CommandChmodFiles">
<Node ID="CopyInstallScript">
<Node ID="CopyResponseFile">
<Node ID="CopyTarFile">
<Node ID="CommandChmodDir">
<Node ID="CommandMkDir"/>
</Node>
</Node>
</Node>
</Node>
</Node>
</Node>
</Composition>
</Composite>
</ModuleImplementation>
<OutputType>System!System.BaseData</OutputType>
<InputType>System!System.BaseData</InputType>
</WriteActionModuleType>