summaryrefslogtreecommitdiffstats
path: root/retiolum/scripts/adv_graphgen/USAGE.md
blob: 9fa541ed5736b453db50461414d6588f7b21406e (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
make sure you have the correct permissions!

# 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 complete > /tmp/out.graphviz