https://github.com/rtrlib/tools
https://github.com/rtrlib/tools
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/rtrlib/tools
- Owner: rtrlib
- License: mit
- Created: 2013-08-26T10:38:18.000Z (almost 13 years ago)
- Default Branch: master
- Last Pushed: 2017-02-28T14:33:45.000Z (over 9 years ago)
- Last Synced: 2024-03-27T07:00:27.210Z (about 2 years ago)
- Language: Python
- Size: 297 KB
- Stars: 0
- Watchers: 8
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# RTRlib Tools
## bgpmonParser.py
### Requirements
This tool is tested with python 2.7.11 and uses the following imports:
argparse, json, logging, multiprocessing, re, socket, string, sys, time,
xml.etree.ElementTree
Install missing dependencies with `pip`.
### Help Page
```
usage: bgpmonParser.py [-h] [-l LOGLEVEL] [-a ADDR] [-u UPORT] [-r RPORT] [-c]
Parse XML streams (updates, rib) of a BGPmon instance. Output on STDOUT as
JSON (Default) or simple CSV (less information).
optional arguments:
-h, --help show this help message and exit
-l LOGLEVEL, --loglevel LOGLEVEL
Set loglevel [DEBUG,INFO,WARNING,ERROR,CRITICAL].
-a ADDR, --addr ADDR Address or name of BGPmon host (Default: localhost).
-u UPORT, --uport UPORT
Port of BGPmon Update XML stream (Default: 50001).
-r RPORT, --rport RPORT
Port of BGPmon RIB XML stream (Default: disabled).
-c, --csv Output parsed data as CSV (Default: JSON).
```