Imperva Cyber Community

communities_1.jpg
 View Only
  • 1.  Imperva Agent installation Guide - Automation Method For Linux

    Posted 11-10-2019 21:57
    Edited by Christopher Detzel 12-01-2020 10:11
    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
    ------------------------------


  • 2.  RE: Imperva Agent installation Guide - Automation Method For Linux

    Posted 11-11-2019 14:14
    We have a silent install process that may fit your needs 

    For Linux please see this link
    https://docs.imperva.com/bundle/v13.5-administration-guide/page/7340.htm

    for Windows see this link
    https://docs.imperva.com/bundle/v13.5-administration-guide/page/7346.htm


  • 3.  RE: Imperva Agent installation Guide - Automation Method For Linux

    Posted 11-15-2019 21:37
    Thank you very much.

    ------------------------------
    Mayuranathan Palanichamy
    IHIS
    Singapore
    ------------------------------



  • 4.  RE: Imperva Agent installation Guide - Automation Method For Linux

    Posted 11-15-2019 07:38
    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
    ------------------------------



  • 5.  RE: Imperva Agent installation Guide - Automation Method For Linux

    Posted 11-15-2019 21:38
    Edited by Christopher Detzel 12-01-2020 10:11
    Thank you very much.

    ------------------------------
    Mayuranathan Palanichamy
    IHIS
    Singapore
    ------------------------------



  • 6.  RE: Imperva Agent installation Guide - Automation Method For Linux

    Posted 01-07-2020 11:31
    ​We had several different Linux versions requiring different agent install packages.
    What I did was to create a release/version file with the Linux version number, agent version, and agent installer version.

    Then I took that file and added it to the zipped agent package.
    The install script was written to determine the Linux version, then read the file to get the release numbers.

    This allowed the script to stay static, and only have to change the release/version file.


  • 7.  RE: Imperva Agent installation Guide - Automation Method For Linux

    Posted 06-18-2020 09:05
    In case someone finds this thread, I wanted to link to the Imperva DAM Ansible playbook at https://github.com/imperva/ansible-role-imperva-dam-agent 

    You can use this for rolling agents out to Linux systems even if you don't use Ansible elsewhere in your network.

    Jim