fastnetmon-ng/src/scripts
Pavel Odintsov 801fd7fa2c Move installer script to scripts instead of src 2015-08-25 20:01:00 +03:00
..
README.md Switch to stable ExaBGP everywhere 2015-06-23 20:18:27 +03:00
bgp_network_collector.py Fix typo 2015-06-23 17:10:26 +03:00
bgp_network_retriever.py Add script for collection subnets from route servers 2015-06-23 16:52:16 +03:00
build_any_package.pl Add libicu to centos packages deps; Do not install anything manually with rpm 2015-08-25 06:24:53 +03:00
build_libary_bundle.pl Add path for binary bundle builder; Add option to install script for binary builds 2015-08-18 12:36:49 +03:00
enable_passthrough_for_pcie_nic_to_kvm_vm.pl Add script for PCI passthourgh configuration 2015-05-14 13:16:35 +03:00
exabgp_network_collector.conf Add script for collection subnets from route servers 2015-06-23 16:52:16 +03:00
install_binary.pl Move installer script to scripts instead of src 2015-08-25 20:01:00 +03:00
reformat_code_with_clang_format.sh Add script for code reformatiing 2015-05-15 13:50:50 +03:00
reset_redis_stats Move redis reset script to scripts folder 2015-06-17 11:42:49 +03:00

Here you could find nice scripts for subnet's collection from the BGP router server

  • Clone ExaBGP master's repository:
# yum/apt-get install -y python-pip
pip install exabgp
  • Download configs and scripts:
wget https://raw.githubusercontent.com/FastVPSEestiOu/fastnetmon/master/src/scripts/exabgp_network_collector.conf -O/etc/exabgp_network_collector.conf
wget https://raw.githubusercontent.com/FastVPSEestiOu/fastnetmon/master/src/scripts/bgp_network_retriever.py -O/usr/local/bin/bgp_network_retriever.py

wget https://raw.githubusercontent.com/FastVPSEestiOu/fastnetmon/master/src/scripts/bgp_network_collector.py -O/usr/local/bin/bgp_network_collector.py

chmod +x /usr/local/bin/bgp_network_retriever.py /usr/local/bin/bgp_network_collector.py
  • Run ExaBGP:
cd /usr/src/exabgp
env exabgp.log.level=DEBUG exabgp.daemon.user=root exabgp.tcp.bind="0.0.0.0" exabgp.tcp.port=179 exabgp.daemon.daemonize=false exabgp.daemon.pid=/var/run/exabgp.pid exabgp.log.destination=/var/log/exabgp.log exabgp /etc/exabgp_network_collector.conf
  • Wait few minutes while all announces received (depends on router server size)
  • Retrieve learned networks from database (/var/lib/bgp_network_collector.db): python /usr/local/bin/bgp_network_retriever.py