birdc scripting

Stephen Holmes SHolmes at telx.com
Thu Feb 10 15:11:32 CET 2011


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 at atrey.karlin.mff.cuni.cz [mailto:owner-bird-users at atrey.karlin.mff.cuni.cz] On Behalf Of Matthew Whittaker-Williams
Sent: Thursday, February 10, 2011 8:46 AM
To: bird-users at 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.
______________________________________________________________________



More information about the Bird-users mailing list