15 Commits

Author SHA1 Message Date
Alarig Le Lay
4de34d5f11
generate-asinfo.py: Putting ",country" at the end of the name to respect the shipped asinfo.txt format 2020-08-01 12:50:08 +02:00
Alarig Le Lay
f29a39dd49
generate-asinfo.py: Removing leading on the country 2020-08-01 12:43:14 +02:00
Alarig Le Lay
c233dd1ff0
contrib/generate-asinfo.py: Correcting syntax errors
alarig@jeunet ~ % (echo begin; echo verbose; for i in `seq 1 65535`; do echo "AS$i"; done; echo end) | nc whois.cymru.com 43 | ./generate-asinfo.py > asinfo.txt
  File "./generate-asinfo.py", line 30
    if name.startswith('- '):
                            ^
TabError: inconsistent use of tabs and spaces in indentation
zsh: done       ( echo begin; echo verbose; for i in `seq 1 65535`; do; echo "AS$i"; done;  ;  | nc whois.cymru.com 43 |
zsh: exit 1     ./generate-asinfo.py > asinfo.txt

alarig@jeunet ~ % (echo begin; echo verbose; for i in `seq 1 65535`; do echo "AS$i"; done; echo end) | nc whois.cymru.com 43 | ./generate-asinfo.py > asinfo.txt
  File "./generate-asinfo.py", line 33
    print "%s\t%s\t%s\t%s" % (asn,macro,name,country)
          ^
SyntaxError: invalid syntax
zsh: done       ( echo begin; echo verbose; for i in `seq 1 65535`; do; echo "AS$i"; done;  ;  | nc whois.cymru.com 43 |
zsh: exit 1     ./generate-asinfo.py > asinfo.txt
2020-08-01 11:22:28 +02:00
Maxime Lareo
a715324929
generate-asinfo.py: get country code from last field 2017-02-15 16:42:56 +01:00
Manuel Kasper
812b653dc7 Merge pull request #23 from buchtajz/master
Added new freebsd startup script reflecting merged netflow/sflow-asstatd...
2014-03-12 14:06:50 +01:00
Manuel Kasper
c40a7fff28 Various fixes
Fix command line injection. Make number of hours in top.php a parameter
instead of duplicating file. Add config setting for compatibility with
old (< 1.3) RRDtool versions. Move contributed shell scripts to subdir.
2014-03-12 14:05:29 +01:00
Manuel Kasper
2cb4585ea1 Merge pull request #22
manually fixed merge conflict
2014-03-12 13:45:30 +01:00
Michal Buchtik
cf1fe62427 Added new freebsd startup script reflecting merged netflow/sflow-asstatd.pl
Removed old freebsd startup scripts
2014-03-11 13:18:11 +01:00
Manuel Kasper
f3eb7618f0 Merge pull request #21
with some slight changes
2014-03-06 23:44:02 +08:00
Jonathan Amiez
8e7ea7035c add debian initscripts and default config for netflow/sflow-asstatsd 2013-05-03 17:18:17 +02:00
Manuel Kasper
d86c667ef3 * sFlow: fix creation of new RRDs when multiple entries with the same tag are present in the known links file
* Add startup scripts for FreeBSD
2013-03-17 15:15:08 +00:00
Manuel Kasper
0ba0fbd811 * generate v6 RRD DS in contrib/sync_ds.pl too 2013-01-30 09:19:52 +00:00
Manuel Kasper
cf9226c9c0 + add sync_ds.pl 2010-09-27 10:09:21 +00:00
Manuel Kasper
05bad2db6b Changes by Steve Colam <steve@colam.co.uk>:
- ...-asstatd.pl now accepts parameters (UDP listen port,
	  sampling rate etc.) on the command line
	
	  ****************************************************
	  * Mind the new command line syntax when upgrading! *
	  * Change your start script accordingly...          *
	  ****************************************************
	
	- hierarchical RRD structure for more efficient storage
	  (one directory per low byte of AS number)
	
	  *********************************************
	  * Use tools/migraterrdfiles.pl to move your *
	  * RRD files when upgrading!                 *
	  *********************************************

	- ...-asstatd.pl now re-reads known links file upon SIGHUP
	
Added contrib/generate-asinfo.py script to generate AS list from WHOIS
data (contributed by Thomas Mangin
<thomas.mangin@exa-networks.co.uk>).

Moved site-specific parameters of www frontend to config.inc.

New flag images from famfamfam.com.

Updated asinfo.txt.
2009-10-10 16:53:25 +00:00
Manuel Kasper
970329a116 + CentOS start script
* fix link names with upper-case characters
2008-12-18 12:35:42 +00:00