Create Agent with Installer for CentOS

Agent Installation Prerequisites

Google recommends running the commands one by one to make sure each action is run successfully.

1. Install linux packages

yum update -y
yum groupinstall -y 'development tools'
yum install bzip2-devel -y
yum install sqlite -y
yum install libffi-devel -y
yum install gcc -y
yum install gcc-c++ -y
yum install python-devel -y
yum install python3-devel -y
yum install zlib-devel -y
yum install openssl-devel -y
yum install epel-release -y
yum install perl-core -y
yum update -y
yum install supervisor -y
yum install at -y
yum install sharutils -y

2. Start Services

systemctl start atd
systemctl enable atd

3. Python 2.7.14 Installation

cd /usr/src/
yum install wget -y
tar -xzf Python-2.7.14.tgz
cd Python-2.7.14
./configure --prefix=/usr/local --enable-unicode=ucs4
make altinstall

4. OpenSSL 3.0.7 installation

cd /usr/local/src
tar -xf openssl-3.0.7.tar.gz
cd openssl-3.0.7
./config --prefix=/usr/local/ssl --openssldir=/usr/local/ssl shared zlib
make -j$((`nproc`+1))
make install
cd /etc/
echo /usr/local/ssl/lib64 > openssl-3.0.7.conf
ldconfig -v
echo PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/ssl/bin" > /etc/environment
source /etc/environment
ln -sf  /usr/local/ssl/bin/openssl /usr/bin/openssl
export LDFLAGS="$LDFLAGS -L/usr/local/ssl/lib64"
export LD_LIBRARY_PATH=/usr/local/ssl/lib64

5. Python 3.7.4 Installation

cd /usr/src
tar xzf Python-3.7.4.tgz
cd Python-3.7.4
make clean
./configure --prefix=/usr/local --enable-unicode=ucs4 --with-openssl=/usr/local/ssl
make altinstall

6. Create symlinks to the specific Python files

ln -s /usr/local/bin/python2.7 /usr/local/bin/python2
ln -s /usr/local/bin/python3.7 /usr/local/bin/python3

7. Configure pip

wget -O
/usr/local/bin/pip2 install --upgrade pip
/usr/local/bin/pip3 install --upgrade pip

Using Microsoft SQL integration (Optional)

For those using Microsoft SQL Integration, perform the following steps:

MsOdbc Sql Driver utils

yum -y remove unixODBC unixODBC-devel
rpm -Uvh --replacepkgs
yum install -y msodbcsql- mssql-tools- unixODBC-utf16-devel
ln -sfn /opt/mssql-tools/bin/bcp- /usr/bin/bcp
ln -sfn /opt/mssql-tools/bin/sqlcmd- /usr/bin/sqlcmd

To install a Remote Agent:

  1. Make sure you have installed all the prerequisites as detailed above.
  2. In the platform, navigate to Settings > Advanced > Remote Agents.
  3. Click the plus icon on the top right of the screen to open the Installation process.
  4. Click on the Manual installation link.
  5. In the first step, add the name of the Agent and choose the environment it will be associated with. Click Next.
  6. In the second step, you can either choose to download the Agent package onto your machine, or you can add in an email address to send it a download link (Make sure you have configured the Email Integration to the correct environment). Alternatively you can click on Add environment contact which will automatically add in the email of the Contact Person for that environment. Click Next. The package is either downloaded onto your computer or a link is sent by email depending on what you have chosen.
  7. Clicking on the link downloads the following zipped files to the required machine:
    • .env: Siemplify environment variables
    • Installer script file
  8. Copy over the Installer command that is on the screen and save it for later. Keep the wizard open.
  9. Using WinSCP or a similar tool, copy these files over to the machine you want to install the agent on.
  10. Log in to the machine that you want to install the agent on using SSH.
  11. Enter your username and password.
  12. Set the execution permissions on the file with the following command:
    sudo chmod +x
  13. Install the agent using the saved command from the Agent Installation screen
  14. When the script finishes, it will be clearly marked as finished.
  15. Return to the Wizard in the platform and click “Next”. You will receive a confirmation message that your Agent is connected.