tbaschak / mrt-interesting-asns

python3 code to watch a directory of mrt files for activity from interesting ASNs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

mrt-interesting-asns

python3 code to watch a directory of mrt files for activity from interesting ASNs

installation

virtualenv -p python3 venv
source venv/bin/activate
pip install -r requirements.txt

other requirements

usage

echo "ASN|description" >> aslist.txt
watchmedo shell-command \
  --recursive --ignore-directories \
  --command='if [ "${watch_event_type}" = "modified" ]; then date; bgpscanner "${watch_src_path}" | /path/to/mrt-interesting-asns/mrt-interesting-asns.py; fi' \
  /home/mrt

About

python3 code to watch a directory of mrt files for activity from interesting ASNs

License:MIT License


Languages

Language:Python 100.0%