summaryrefslogtreecommitdiffstats
path: root/retiolum/scripts/adv_graphgen/USAGE.md
blob: 2c2c383354bed660b0159844736c887392ca4566 (plain)
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
# Example usage
  
# High Level

    # creates all graphs with predefined paths (see source code of this script)
    ./all_the_graphs.sh

    # create anonymized graphs to /tmp
    ./anonytize.sh /tmp
    
    # create full detail graphs to /var/www/graph.retiolum
    ./sanitize.sh /var/ww/graph.retiolum

    # return currently availabe supernodes
    tinc_stats/Supernodes.py

# Low Level

    # returns the current tinc graph as json
    tinc_stats/Log2JSON.py

    # adds GEOIP information to the json file
    tinc_stats/Log2JSON.py | tinc_stats/Geo.py

    # creates a grapviz file from current graph, pipes into a timpfile
    tinc_stats/Log2JSON.py | tinc_stats/Graph.py > /tmp/out.graphviz