Skip to content
This repository has been archived by the owner on Jul 17, 2024. It is now read-only.

5GEVE/5geve-wp4-dcs-signalling-topic-handler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dcs-python script

This repository contains the logic needed for providing a REST API to the Data Collection and Storage, in order to handle automatically the life cycle of this component (for enabling or disabling the signalling topics, in order to configure properly the Logstash pipelines).

Usage: sudo python3 dcs_rest_client.py [--dcm_ip_address <dcm_ip_address>] --eve_db_password <password> [--port <port_number>] [--log <log_level>]

Default DCM IP address is localhost, default port is 8091, and default log level is info.

Application API

The REST API provided by the dcs_rest_client.py can be seen in the corresponding api-docs files in this repository.

Steps to be followed

First of all, install Python 3 in the server which will hold this script.

sudo apt install python3-pip

Then, export some variables related to the language.

export LC_ALL="en_US.UTF-8"
export LC_CTYPE="en_US.UTF-8"
sudo dpkg-reconfigure locales

After this, install the required packages for this Python script, which can be found in the requirements.txt file.

pip3 install -r requirements.txt

Finally, execute the script.

sudo python3 dcs_rest_client.py --dcm_ip_address localhost --eve_db_password password --port 8091 --log info

Copyright

This work has been done by Telcaria Ideas S.L. for the 5G EVE European project under the Apache 2.0 License.