Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

URL: http://danteweb.lnf.infn.it:8000/

API List

getConnInfo/<devils>

Description

Use this API to obtain the IP and the TCP_PORT where the DEVILs, specified in the <devils> comma separated list, are listening for connection.

Call Method

GET

Example Query

http://danteweb.lnf.infn.it:8000/getConnInfo/632,651,699

returns

GIT Repository: https://baltig.infn.it/lnf-da-control/dafnews

Warning

WARNING: The app needs control system files (/u2/dcs) consequentely the host danteweb mounts this folder at boot time (read-only). If this tools needs to be configured on another host, remember to mount this folder and adjust paths inside dafnews/utils/devil_parser.py and dafnews/utils/element_parser.py.

Start Service

The service is stopped and disabled to save CPU resources. If you need it, you can run the following command:

Code Block
titleStart dafnews RESTful API service
[root@danteweb ~]# systemctl start dafnews.service

Stop Service

To stop the service, run the following command:

Code Block
titleStart dafnews RESTful API service
[root@danteweb ~]# systemctl stop dafnews.service
Code Block
languagejs
[{
	"number": 632,
	"host": "192.168.198.126",
	"tcp_port": 6342
}, {
	"number": 651,
	"host": "192.168.198.128",
	"tcp_port": 6342
}, {
	"number": 699,
	"host": "192.168.198.114",
	"tcp_port": 6343
}]