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 , I'm studying for CCNP SP and I use GNS3 for the labs. I'm trying to config a xconnect and the tunnel is up but no connectivity between CEs. I don't know if I'm missing something or GNS3 doesn't work fine It seems all is working fine : ...
I have read about MPLS targeted LDP session and MPLS LDP session protect. As per my understanding both the features are doing same thing .May I know the exact difference between them and the situation where can I use these features ? Thanks in ...
Hi All Can you please suggest good resources for the Service Provider network? Like Cisco Validated Designs (CVD) we have for Enterprise networks. Books, videos, etc.I am looking for guidance and advice on how to design SP network from scratch, will ...
Hello everyone!Background: planned to replace operating ISG with BNG when working with ipv4 routed subscribers. BNG doesn't work!Problem: The address assigned on the interface via DHCP proxy/BNG DHCP server does not allow creating a subscriber interface u...
Hello,I'm new in this forum, and I've been searching a solution for my issue I did not find any, so I decided to post my own and hope that someone can help me to solve the issue.As per the subject, I have inserted one A9K-MPA-4X10GE in my router whic...