Mercurial > hg > anonet-resdb
changeset 1110:763bc3e5837f draft
Fixed bgp_graph readme.txt
author | Ivo Smits <Ivo@UCIS.nl> |
---|---|
date | Fri, 03 May 2013 17:27:51 +0200 |
parents | 615456fbe834 |
children | 84d9e69c5497 |
files | doc/ucis.ano/bgp_graph/readme.txt |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/doc/ucis.ano/bgp_graph/readme.txt Thu May 02 19:01:14 2013 +0200 +++ b/doc/ucis.ano/bgp_graph/readme.txt Fri May 03 17:27:51 2013 +0200 @@ -29,16 +29,16 @@ You can combine data from as many routers as you like. More is better, because it will make the graph more accurate. Or, in one single line: -$ (./bgp_path_list_bird.sh; ./bgp_path_list_quagga.sh) | ./path_list_to_dot.php < /tmp/paths.txt | dot -T png -o graph.png +$ (./bgp_path_list_bird.sh; ./bgp_path_list_quagga.sh) | ./path_list_to_dot.php | dot -T png -o graph.png Graphing a remote quagga instance using http: -$ wget http://remotehost/bgp_path_list_quagga.php -O - | ./path_list_to_dot.php < /tmp/paths.txt | dot -T png -o graph.png +$ wget http://remotehost/bgp_path_list_quagga.php -O - | ./path_list_to_dot.php | dot -T png -o graph.png Alternatively, you can use a cron job on the server to periodically update a static data file. Graphing a remote instance using netcat: server$ ./bgp_path_list_bird.sh | nc -l -p 9876 -client$ nc remotehost 9876 | ./path_list_to_dot.php < /tmp/paths.txt | dot -T png -o graph.png +client$ nc remotehost 9876 | ./path_list_to_dot.php | dot -T png -o graph.png You can also use inetd/xinetd on the server side for a more permanent solution.