Exporting routes as text

Victor Sudakov vas at mpeks.tomsk.su
Wed Feb 17 04:29:14 CET 2016


Dear Colleagues,

Is there a way to export (extract) routes from BIRD as a list of
prefixes in text format, to a text file or pipe?

I can perhaps write an expect script to communicate with birdc, but
such kind of screenscraping is always the last resort.

Or should I communicate through the /var/run/bird.ctl socket? What's
the set of commands I can send to the socket to extract some routes
with a filter? I can do:

$ echo help | nc -U /var/run/bird.ctl
0001 BIRD 1.5.0 ready.
9001 syntax error

Thank in advance for any input. Maybe there are sample scripts?


-- 
Victor Sudakov,  VAS4-RIPE, VAS47-RIPN
sip:sudakov at sibptus.tomsk.ru


More information about the Bird-users mailing list