Hi, I did another small script (in fact it took me so long ;-) to use GraphViz to draw graphics from the logs of freenets watchme network.
The logs can be found at http://hawk.freenetproject.org/~watchme/logs . To generate useful output you will need all of them, because the logs are per node and you can't know which nodes where touched by a special request. The script can be found in the scripts directory in the cvs tree or in the cvs webinterface at http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/freenet/freenet/scripts/show_routing.pl To use the script you need to have the GraphViz software and the GraphViz perl module installed. They can be found at: http://www.research.att.com/sw/tools/graphviz/ http://www.cpan.org/authors/id/L/LB/LBROCARD/GraphViz-1.5.tar.gz The script walks through all logfiles which are given at the command line and tries to extract useful informations. There are two different modes: -c counts the occurences of each request and tries to guess where and when it origniated. -m takes a messageID and tries to graph the messageIDs request. The output to -m can be a postscript file (-p) which is splitted over many pages. You can restrict the pagecount to one page by the use of -1 in adition to -p. Pagesize is A4. You can also output the dot-file which is used with graphviz to generate the graph (-d). The intendet use ist to find interesting request (estimated by the starting node and the number of occurences in the logfiles) ( show_routing.pl -c logs/* | sort -n | less ) and graph the request you are interested in (e.g. show_routing.pl -m messageID -p -1). Output will be written to messageID.* depending on the type of output choosen. Please do not expect to much performance or an enlightment in programming style ;-). This is just hacked while playing with the wonderful possibilities of GraphViz. Chris. PS: Yes, I am interested in feedback :-). _______________________________________________ devl mailing list [EMAIL PROTECTED] http://hawk.freenetproject.org/cgi-bin/mailman/listinfo/devl
