Hey, I was wondering if the command line util birdc has a feature for setting the terminal length spacing. Like with quagge or most routers terminal length 0 DECIMAL Number of lines, or zero to disable paging Thanks in advance, Kind regards, Matthew -- News-Service.com - European Usenet Provider Luttenbergweg 4, 1101 EC Amsterdam P.O BOX: 12026 1100 AA, Netherlands http://www.news-service.com +31(0)20 398 1111
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 -----Original Message----- From: owner-bird-users@atrey.karlin.mff.cuni.cz [mailto:owner-bird-users@atrey.karlin.mff.cuni.cz] On Behalf Of Matthew Whittaker-Williams Sent: Thursday, February 10, 2011 8:46 AM To: bird-users@trubka.network.cz Subject: birdc scripting Hey, I was wondering if the command line util birdc has a feature for setting the terminal length spacing. Like with quagge or most routers terminal length 0 DECIMAL Number of lines, or zero to disable paging Thanks in advance, Kind regards, Matthew -- News-Service.com - European Usenet Provider Luttenbergweg 4, 1101 EC Amsterdam P.O BOX: 12026 1100 AA, Netherlands http://www.news-service.com +31(0)20 398 1111 ______________________________________________________________________ This email has been scanned by the MessageLabs Email Security System. ______________________________________________________________________
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 ;) Thanks Matt -- News-Service.com - European Usenet Provider Luttenbergweg 4, 1101 EC Amsterdam P.O BOX: 12026 1100 AA, Netherlands http://www.news-service.com +31(0)20 398 1111
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
participants (3)
-
Arnold Nipper -
Matthew Whittaker-Williams -
Stephen Holmes