Installing the CodeLogic SQL Agent (Linux)

The agents send metadata to the CodeLogic Server, they are installed on the servers upon which the applications or databases are running. The applications and databases to be scanned are specified in the agent configuration files.

The repository on the CodeLogic Server contains a script, named, that automates the installation of the Linux agents. The script adds the CodeLogic key to the repo keyring; adds the software repository (the CodeLogic Server); updates the apt/dnf cache; and installs the agents using the default package manager (DPKG or RPM).

  1. Download the Script

    Use wget or curl to retrieve the install_agents.tar file. Be certain to open any firewall for port 80 (http) or 443 (https). Extract the tar file.


    cd /tmp 
    wget http://your_server/codelogic/server/packages/install_agents.tar 
    tar -xvf install_agents.tar 

    You MUST replace your_server with the actual address of your CodeLogic Server.

  2. Execute the Script

    The script runs on Debian‑based or RHEL‑based distributions. For more information on supported technology, see CodeLogic Installation Requirements.


    sudo ./ -d your_server -l agent_name

    You MUST replace your_server with the actual address of your CodeLogic Server.

    Replace agent_name with a descriptive name for the agent. If the descriptive name contains spaces be sure to put the name in quotes. For example, -l "agent name".

    If the label is not specified, agent_type-hostname_of_codelogic_server is used.

  3. Authorize the Agent

    For security, agents must be authorized before they will send metadata to the CodeLogic Server.

    1. From a web browser on your system, log in to the CodeLogic Server.

    2. Click Admin and then select the Agents tab.

    3. Locate the agent in the list.


      The Request Status will be listed as OPEN.

    4. Click the more menu icon in the Actions column and select Approve/Reject.

      The Approve window opens.

    5. Optionally, enter a name for the agent in the Agent Name field.

    6. Click Approve to complete the authorization process.

    Next Steps   To run a scan immediately, see Binary Scanning via Command Line (SQL). To configure scanning, and set up a scanning schedule, see Configuring the CodeLogic SQL Agent.