birdc scripting
Arnold Nipper
arnold at nipper.de
Thu Feb 10 16:21:27 CET 2011
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 at nipper.de phone: +49 6224 9259 299
mobile: +49 152 53717690 fax: +49 6224 9259 333
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 260 bytes
Desc: OpenPGP digital signature
URL: <http://trubka.network.cz/pipermail/bird-users/attachments/20110210/bf804fbf/attachment-0001.asc>
More information about the Bird-users
mailing list