Installing CSM 3.4 on Red Hat (Centos / Enterprise) Linux 7.1 / 7.2 / 7.3 was addressed in the following URL:
https://community.cisco.com/t5/service-providers-documents/cisco-software-manager-csm-server-v3-4-installation-on-red-hat/ta-p/3174969
RedHat Linux 7.4 and 7.5 have pulled in some updates in their system libraries. As a result, the installation is slightly different. Below are the installation steps. During the Software Selection Phase of OS installation, we have selected the following Add-Ons:
Development and Creative Workstation with Additional Development, Python, and System Administration
Tools.
1) Update Python version:
Python 2.7.5 is shipped with CentOS 7.5. However, CSM Server requires newer release of Python. Here we start to install Python 2.7.15.
[root@netbrain ~]# python -V
Python 2.7.5
[root@netbrain ~]# cd /usr/src
[root@netbrain src]# wget https://www.python.org/ftp/python/2.7.15/Python-2.7.15.tgz
[root@netbrain src]# tar xvzf Python-2.7.15.tgz
[root@netbrain src]# cd Python-2.7.15/
[root@netbrain Python-2.7.15]# ./configure
[root@netbrain Python-2.7.15]# make
[root@netbrain Python-2.7.15]# make install
[root@netbrain Python-2.7.15]# cd
[root@netbrain ~]# ls /usr/local/bin/python
/usr/local/bin/python
[root@netbrain ~]# /usr/local/bin/python -V
Python 2.7.15
[root@netbrain ~]# export PATH=/usr/local/bin:${PATH}
[root@netbrain ~]# which python
/usr/local/bin/python
[root@netbrain ~]# python -V
Python 2.7.15
2) Check OpenSSL version:
[root@netbrain ~]# openssl version
OpenSSL 1.0.2k-fips 26 Jan 2017
3) Install MySQL:
[root@netbrain ~]# which mysql
/usr/bin/which: no mysql in (/usr/local/bin:/root/perl5/bin:/usr/local/sbin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin)
[root@netbrain ~]# cd /usr/src
[root@netbrain src]# wget http://repo.mysql.com/mysql-community-release-el7-5.noarch.rpm
[root@netbrain src]# rpm -ivh mysql-community-release-el7-5.noarch.rpm
[root@netbrain src]# ls -1 /etc/yum.repos.d/mysql-community*
/etc/yum.repos.d/mysql-community.repo
/etc/yum.repos.d/mysql-community-source.repo
[root@netbrain src]# yum install mysql-server
[root@netbrain src]# systemctl status mysqld
● mysqld.service - MySQL Community Server
Loaded: loaded (/usr/lib/systemd/system/mysqld.service; enabled; vendor preset: disabled)
Active: inactive (dead)
[root@netbrain src]# systemctl start mysqld
# Run mysql_secure_installation to complete MySQL configurations:
[root@netbrain src]# mysql_secure_installation
4) Install PIP:
[root@netbrain local]# cd /usr/src
[root@netbrain src]# wget https://bootstrap.pypa.io/get-pip.py
[root@netbrain src]# python get-pip.py
5) Unzip the CSM Server zip:
[root@netbrain src]# cd /usr/local
[root@netbrain local]# unzip csm-3.5.2.zip
6) Install and activate Python Virtualenv:
[root@netbrain src]# pip install virtualenv
[root@netbrain src]# cd /usr/local/csm/csmserver/
[root@netbrain csmserver]# virtualenv -p /usr/local/bin/python2.7 env
[root@netbrain csmserver]# source env/bin/activate
7) Install and verify additional required system libraries:
(env) [root@netbrain csmserver]# yum install python-devel
(env) [root@netbrain csmserver]# yum install openldap-devel
(env) [root@netbrain csmserver]# pip install python-ldap
😎 Install and start CSM Server:
(env) [root@netbrain csmserver]# pip install -r requirements.txt
(env) [root@netbrain csmserver]# ./csmserver start
starting CSM Server.....
(env) [root@netbrain csmserver]# [2018-09-15 18:11:38 +0000] [16443] [INFO] Starting gunicorn 19.2.1
[2018-09-15 18:11:38 +0000] [16443] [INFO] Listening at: http://0.0.0.0:5000 (16443)
[2018-09-15 18:11:38 +0000] [16443] [INFO] Using worker: sync
[2018-09-15 18:11:38 +0000] [16448] [INFO] Booting worker with pid: 16448
[2018-09-15 18:11:38 +0000] [16451] [INFO] Booting worker with pid: 16451
[2018-09-15 18:11:38 +0000] [16453] [INFO] Booting worker with pid: 16453
[2018-09-15 18:11:38 +0000] [16454] [INFO] Booting worker with pid: 16454
In the next CSM release, the installation will be much more simplified and straightforward with the deployment of Docker container technology.