Create Agent with Installer on CentOS
Note: This article applies to CentOS 7.9
Agent Installation Prerequisites
Please input the following into your server. It is recommended to run the commands one by one to make sure each action is run successfully.
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 update -y
yum install supervisor -y
yum install at -y
yum install sharutils -y
START SERVICES
systemctl start atd
systemctl enable atd
PYTHON 2.7.14 INSTALLATION
cd /usr/src/
yum install wget -y
wget https://www.python.org/ftp/python/2.7.14/Python-2.7.14.tgz
tar -xzf Python-2.7.14.tgz
cd Python-2.7.14
./configure --prefix=/usr/local --enable-unicode=ucs4
make
make altinstall
PYTHON 3.7.4 INSTALLATION
cd /usr/src
wget https://www.python.org/ftp/python/3.7.4/Python-3.7.4.tgz
tar xzf Python-3.7.4.tgz
cd Python-3.7.4
./configure --prefix=/usr/local --enable-unicode=ucs4
make
make altinstall
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
Configure pip
wget -O get-pip.py https://bootstrap.pypa.io/pip/2.7/get-pip.py
/usr/local/bin/python2 get-pip.py
/usr/local/bin/python3 get-pip.py
/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 https://packages.microsoft.com/config/rhel/7/packages-microsoft-prod.rpm
yum install -y msodbcsql-13.0.1.0-1 mssql-tools-14.0.2.0-1 unixODBC-utf16-devel
ln -sfn /opt/mssql-tools/bin/bcp-13.0.1.0 /usr/bin/bcp
ln -sfn /opt/mssql-tools/bin/sqlcmd-13.0.1.0 /usr/bin/sqlcmd
To install a Remote Agent:
- Make sure you have installed all the prerequisites as detailed above.
- In the platform, navigate to Settings > Advanced > Remote Agents.
- Click the plus icon on the top right of the screen to open the Installation process.
- Click on the Manual installation link.
- In the first step, add the name of the Agent and choose the environment it will be associated with. Click Next.
- In the second step, you can either choose to download the Agent package onto your machine, or you can add in an email address. 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. (Make sure you have configured the Email Integration to the correct environment)
- Clicking on the link downloads the following 3 zipped files to the required machine:
- env: Siemplify environment variables
- SiemplifyAgent_Centos.sh: Installer script file
- Copy over the Installer command that is on the screen and save it for later.
- Using WinSCP or a similar tool, copy these files over to the machine you want to install the agent on.
- Log in to the machine that you want to install the agent on using SSH.
- Enter your username and password.
- Set the execution permissions on the file with the following command:
sudo chmod +x SiemplifyAgent_Centos.sh
- Install the agent using the saved command from the Agent Installation screen (from Step 8 above)
- When the script finishes, it will be clearly marked as finished.
- Return to the Wizard in the Siemplify platform and click “Next”. You will receive a confirmation message that your Agent is connected.