10 Feb
2011
10 Feb
'11
3:21 p.m.
on 10.02.2011 15:16 Matthew Whittaker-Williams wrote:
On Thursday, February 10, 2011 03:11:32 pm Stephen Holmes wrote:
If you call birdc inside a script like so:
/usr/bin/printf "show protocols all\nquit\n" | /usr/local/sbin/birdc | /bin/grep -A4 BGP | /bin/egrep "^R|Routes"
it doesn't appear paginate.
This is how I collect the per peer prefix counts.
-Stephen
I gathered as much from mikhail`s answer:
echo 'show route' | birdc
I must say this is a much eleganter solution than collecting routes from an quagga router ;)
Meanwhile you can even say birdc show route | ... Arnold -- Arnold Nipper / nIPper consulting, Sandhausen, Germany email: arnold@nipper.de phone: +49 6224 9259 299 mobile: +49 152 53717690 fax: +49 6224 9259 333