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:

TypeWriteActionModuleType
IsolationAny
AccessibilityPublic
RunAsDefault
InputTypeSystem.BaseData
OutputTypeSystem.BaseData

Member Modules:

ID Module Type TypeId RunAs 
CommandChmodDir WriteAction Microsoft.Unix.SSHCommand.WriteAction Default
CommandChmodFiles WriteAction Microsoft.Unix.SSHCommand.WriteAction Default
CommandInstall WriteAction Microsoft.Unix.SSHCommand.WriteAction Default
CommandMkDir WriteAction Microsoft.Unix.SSHCommand.WriteAction Default
CopyInstallScript WriteAction Microsoft.Unix.SFTPTransfer.WriteAction Default
CopyResponseFile WriteAction Microsoft.Unix.SFTPTransfer.WriteAction Default
CopyTarFile WriteAction Microsoft.Unix.SFTPTransfer.WriteAction Default

Overrideable Parameters:

IDParameterTypeSelectorDisplay NameDescription
UserNamestring$Config/UserName$UserNameUsername for the UNIX/Linux Computer.
Passwordstring$Config/Password$PasswordPassword for the UNIX/Linux Computer.
TmpFolderstring$Config/TmpFolder$Temp folder for deploymentThe folder where the WriteAction deploys files to. The temp folder should not be on the file system mounted with noexec option.

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>