Skip to content

rtrlib/tools

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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).

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •