[quagga-users 14244] Re: Less resource-intense table dump from bgpd

Daniel Seidenstücker d.seidenstuecker at googlemail.com
Thu Mar 3 13:22:24 GMT 2016

Maybe this hint/approach helps you:

You can call vtysh commands the following way and pipe the results in normal
unix commands (examples from ubuntu):

sudo vtysh -c "show ip bgp summary" | grep 00: | wc -l	#number of
established peers, with connection under 1 hour
sudo vtysh -c "show ip bgp summary" | wc -l			#number of
configured peers

So for you it's something like:

sudo vtysh -c "show ip bgp" | ...

I think there was a command to filter an output. After quick web search -
awk may help. 

-----Ursprüngliche Nachricht-----
Von: Florian Weimer [mailto:fw at deneb.enyo.de] 
Gesendet: Donnerstag, 3. März 2016 13:41
An: quagga-users at lists.quagga.net
Betreff: [quagga-users 14243] Less resource-intense table dump from bgpd

Is there a less resource-intense way to get data similar to "show ip bgp"
from bgpd?

I'm mainly interested in the network prefixes themselves.  Origin AS
information would be useful.  Right now, I don't need the next-hop router
address or the full AS path.

Quagga-users mailing list
Quagga-users at lists.quagga.net

More information about the Quagga-users mailing list