If you use configuration management software such as Puppet or Saltstack, you can use that to automate installing the agent too. The following is a Puppet class to install the agent on a Windows server from a MSI file copied to the server, but you could edit it to do the same on a Linux server:
class aioinstall (
String $installer_loc = 'C:\Users\Public\Downloads\Imperva-ragent-Windows-b11.0.0.8026',
String $installer_file = 'Imperva-ragent-Windows-b11.0.0.8026.msi',
String $install_dir = 'C:\Program Files (x86)\Imperva',
String $agent_name = 'puppet_ssagent',
String $gw_ip = '10.4.253.103',
){
package { 'Imperva SecureSphere Remote Agent':
ensure => installed,
source => "${installer_loc}\\${installer_file}",
install_options => [ { 'TARGETDIR' => $install_dir}, { 'NOSCRIPT' => 'true'} ],
}
exec { 'register-ragent':
path => 'C:/Program Files (x86)/Imperva/RemoteAgent',
command => "RemoteAgentCli.exe registration advanced-register is-db-agent=true ragent-name=$agent_name gateway=$gw_ip password=secure",
subscribe => Package['Imperva SecureSphere Remote Agent'],
refreshonly => true,
before => Service['SecureSphereRemoteAgent'],
}
service { 'SecureSphereRemoteAgent':
ensure => 'running',
enable => 'true',
require => Package['Imperva SecureSphere Remote Agent'],
}
}
------------------------------
Stefan Pynappels
Escalation Engineer
Imperva
------------------------------
Original Message:
Sent: 11-10-2019 21:36
From: Mayuranathan Palanichamy
Subject: Imperva Agent installation Guide - Automation Method For Linux
Hi,
Currently I am installing the DAM agent manually to all the Linux, AIX, Solaris and Windows environment. I would like to automate it in Linux platform, due to the large number of volumes. Need your help on this. It will be a great help if anyone share the script.
Thanks.
#DatabaseActivityMonitoring
------------------------------
Mayur
------------------------------