If you are using Cisco's new linux-based Cisco Software Manager server, then you probably want to make sure there is a startup service for it.
I'll assume that you've already installed the CSM server on a systemd-based linux system. The commands given below were used in RedHat/CentOS. For purposes of this post, I'll use `/usr/local` as the csmserver install location, and `/usr/local/csm/csmserver/env` as the Python virtual envrionment location.
If you're using a python virtual environment, then you'll need to explicitly tell the CSM server where your environment's python interpreter and gunicorn executable are. If anyone knows how to create the systemd service without having to do this, please share - because my attempts failed. If you aren't using a python virtual environment, you can skip to the next section where we create the systemd service.
- Open the file /usr/local/csm/csmserver/csmserver in your editor. - Change the following line to include the absolute path to python in your virtual environment. Don't close the file yet. # for Python interpreter PYTHON="/usr/local/csm/csmserver/env/bin/python"
- Within the same file, add a variable for gunicorn in the appropriate section. Don't close the file yet.
# for gunicorn GUNICORN="/usr/local/csm/csmserver/env/bin/gunicorn"
- In the 'function start_csmserver' and 'function start_secure_csmserver' sections, change each instance of `gunicorn` to `$GUNICORN`, to match our newly created variable. There should be one place to change in each section. Then save and close the csmserver file.
- Start the service. Be sure to verify that the service is active and that you can see the gunicorn and csmdispatcher.py processes.
systemctl start csm.service systemctl status csm.service
Keep in mind that if you upgrade your CSM server in the future and you use a Python virtual environment, you'll need to go back in to the csmserver file and re-add the appropriate lines in the Getting Started section above.
That should be all you need to create your systemd service for the Cisco Software Manager server!
Hi, Guys, When i reload a NSO package it shows following error: >>> System upgrade is starting.>>> Sessions in configure mode must exist to operational mode.>>> No configuration changes can be performed until upgrade h...
Hi, I'm running a lab with some XRv9000 (v7.3.1) and an Opendaylight controller (v13.1 (Aluminium)). The goal is to push a Segment Routing LSP from the PCE over the IOS XRv, which is working. However when querying my controller for the...
We have an ASR-9001 and it was running 5.1 and we attempted to turboboot unit to 6.4.1. Then this happened. RP/0/RSP0/CPU0:Apr 19 08:04:04.410 : cfgmgr-rp: %MGBL-CONFIG-0-INIT_FAILURE : Configuration Manager was unable to initialize the Admin Co...