Revision history for OpenNIC Topology Graphics


Revision [3428]

Last edited on 2014-08-24 09:19:10 by CalumMcAlinden
Additions:
Requirement: You need ""GraphViz"" for this to work!
Deletions:
Requirement: You need GraphViz for this to work!


Revision [2873]

Edited on 2012-05-06 03:26:23 by josen
Additions:
== Graph Example ==
Deletions:
== Graph ==


Revision [2872]

Edited on 2012-05-06 03:26:08 by josen
Additions:
**Script for creating a live topology graphic of current OpenNIC DNS Network using Graphviz and DNS data from NS0.**


Revision [2871]

Edited on 2012-05-06 03:25:11 by josen
Additions:
== Script ==
%%(bash)
#!/bin/bash
# 2012, Falk


NS0="ns0.opennic.glue"

t1=`dig axfr opennic.glue @${NS0} | egrep "^ns[1-9]{1,2}.opennic.glue" | awk '{ print $1}' | uniq | sort`
t2=`dig axfr dns.opennic.glue @${NS0}| egrep '.dns.opennic.glue. [0-9]{1,6} IN' | cut -d " " -f 1 | uniq`

# Static graph root
echo 'digraph OpenNIC {
ns0 [label="ns0.opennic.glue",fillcolor=greenyellow,style=filled];
node[shape=record];
rankdir=RL;'

# subgraph for alle T1s
echo 'subgraph Tier1 {
node[style=filled,fillcolor=green3];'

for server in ${t1}
do
echo "\"${server%?}\" -> ns0;"
done
echo '}'

# subgraph for all T2s
echo 'subgraph Tier2 {
node [style=filled];
color=lemonchiffon1;
edge [color=gray84];'
for server in ${t2}
do
for uplink in ${t1}
do
echo "\"${server%?}\" -> \"${uplink%?}\";"
done
done
echo '}'
echo '}'
%%

== Usage ==
Requirement: You need GraphViz for this to work!
%%(bash)
./opennic-topology.bash > opennic.dot
dot -Tpng -o opennic.png opennic.dot
%%

== Graph ==


Revision [2870]

The oldest known version of this page was created on 2012-05-06 03:23:32 by josen
Valid XHTML :: Valid CSS: :: Powered by WikkaWiki