HOWTO_RUN.txt
1.97 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
*******************************
Here is how you can RUN pyros
*******************************
(More on this subject at https://docs.google.com/document/d/1osHT3d8GiofRd9k3nL7cz4Hcmo9WVEOcSaSSQpgJcFs/edit#heading=h.w3ny4xnj9sc8)
-------------------------------------------
(A) Command-line running (no web interface):
-------------------------------------------
(1) Running pyros interactively:
$ [python] ./pyros.py shell
(2) Launching an agent:
$ [python] ./pyros.py start <agent-name>
=> Ex: to start the env-monitoring agent:
$ [python] ./pyros.py start monitoring
=> Ex: to start agentA:
$ [python] ./pyros.py start agentA
(3) Launching the Environment Monitoring (version A)
a) Activate the venv
b) Launch the PLC simulator
(venv) $ cd simulators/plc/
(ven) $ [python] ./plcSimulator.py
c) Launch the Monitoring agent (from another terminal)
$ [python] ./pyros.py start agentM
(4) Launching the Environment Monitoring (version B)
- From terminal 1 :
a) Activate the venv
b) Launch the Telescope simulator
(venv) $ cd simulators/telescope/
(venv) $ [python] ./telescopeSimulator.py
- From terminal 2 :
a) Activate the venv
b) Launch the Telescope Monitoring agent
(venv) $ cd src/core/pyros_django/agent/monitoring/
(venv) $ [python] ./start_agent_telescope_monitoring.py
(5) Launching many agents:
$ [python] ./pyros.py start <agent1-name>,<agent2-name>,.
=> Ex: start agentA and agentB
$ [python] ./pyros.py start agentA,agentB
=> You could also start ALL agents at once:
$ [python] ./pyros.py start all
-------------------------------------------
(B) Running with the website
-------------------------------------------
(1) Start only the webserver (for pyros website)
$ [python] ./pyros.py start webserver
Then, connect to http://localhost:8000
You can also connect to the admin interface: http://localhost:8000/admin
(Login as 'pyros' with the password 'DjangoPyros')
(2) Now, you can start some (or all) agents to have the website come to life !
See section (A) just above