5 releases (3 breaking)

0.3.0 Oct 16, 2024
0.2.0 Jul 9, 2022
0.1.1 Dec 2, 2021
0.1.0 Nov 28, 2021
0.0.1 Nov 24, 2021

#23 in WebSocket

Download history 3/week @ 2024-09-21 3/week @ 2024-09-28 166/week @ 2024-10-12 22/week @ 2024-10-19 1/week @ 2024-10-26

258 downloads per month

MIT license

13KB
134 lines

ris-live-rs

ris-live-reader is a CLI tool that builds up top of bgpkit-parser library's RIS live message parsing functionalities to provide a commandline interface to stream BGP data from the RIS-Live project.

asciicast

Full command-line options are:

ris-live-reader 0.3.0
ris-live-reader is a simple cli tool that can stream BGP data from RIS-Live project with websocket. Check out
https://ris-live.ripe.net/ for more data source information

USAGE:
    ris-live-reader [FLAGS] [OPTIONS]

FLAGS:
    -h, --help             Prints help information
        --json             Output as JSON objects
        --less-specific    Match prefixes that are less specific (contain) `prefix`
        --more-specific    Match prefixes that are more specific (part of) `prefix`
        --pretty           Pretty-print JSON output
        --raw              Print out raw message without parsing
    -V, --version          Prints version information

OPTIONS:
        --client <client>              client name to identify the stream [default: ris-live-rs]
        --host <host>                  Filter by RRC host: e.g. rrc01. Use "all" for the firehose [default: rrc21]
        --msg-type <msg-type>          Only include messages of a given BGP or RIS type: UPDATE, OPEN, NOTIFICATION,
                                       KEEPALIVE, or RIS_PEER_STATE
        --path <path>                  ASN or pattern to match against the AS PATH attribute
        --peer <peer>                  Only include messages sent by the given BGP peer
        --prefix <prefix>              Filter UPDATE messages by prefixes in announcements or withdrawals
        --require <require>            Only include messages containing a given key
        --update-type <update-type>    Only a given BGP update type: announcement (a) or withdrawal (w)

Installation

Install via cargo by:

cargo install ris-live-rs

Or checkout the repo and run:

cargo install --path .

The program ris-live-reader will be installed to your $CARGO_HOME/bin (e.g. ~/.cargo/bin).

Run with Docker

docker run --rm -it bgpkit/ris-live-reader --help

Built with ❤️ by BGPKIT Team

https://bgpkit.com/favicon.ico

Dependencies

~4.5–6MB
~104K SLoC