Developing lightweight computation at the DSG edge

README.md 696 Bytes
Newer Older
Roger Pueyo Centelles's avatar
Roger Pueyo Centelles committed
1
A repository for testing code for the monitor use case
felix's avatar
felix committed
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20

Installation: 

External libraries are used. If not previously installed, run in terminal:

go get github.com/golang/glog
go get github.com/sparrc/go-ping

Running:

1) go run monitor-fetch.go

Result example:
56351 nodes read from cnml.xml
52553 devices read from cnml.xml
39582 devices exported to /tmp/gmonitor2/devs.json

2) go run monitor-assign.go

felix's avatar
felix committed
21
22
23
24
25
26
27
28
3) For go run monitor-ping.go 

e.g. go run monitor-ping.go  www.google.com

previously as to this note on Linux Support: 
This library attempts to send an "unprivileged" ping via UDP. 
On linux, this must be enabled by setting
sudo sysctl -w net.ipv4.ping_group_range="0   2147483647"