[j-nsp] advertised route count

Gary Tate gtate at juniper.net
Fri Dec 19 15:49:45 EST 2003

If you want to do it from the cli you can use:

show route advertising bgp x.x.x.x extensive | grep Pref | Count

This matches on one line of the output so you can get the number of 
routes without any subtraction.

To see installed routes you should use:

run show pfe route summary

IPv4 Route Tables:
Index         Routes     Size(b)
--------  ----------  ----------
Default           26        1857
1                  4         281

MPLS Route Tables:
Index         Routes     Size(b)
--------  ----------  ----------
Default           10         707

IPV6 Route Tables:
Index         Routes     Size(b)
--------  ----------  ----------
Default            6         473
1                  3         221

If you want to see routes from a particular protocol then the used next 
hop is marked with a Active and you can match on that and count.

show route advertising bgp x.x.x.x extensive | grep <Active | Count


On Dec 19, 2003, at 11:30 AM, Jared Mauch wrote:

> On Fri, Dec 19, 2003 at 02:28:36PM -0500, Richard A Steenbergen wrote:
>> Is there an easy way to obtain a count for the number of advertised 
>> routes
>> on a specific peer? By easy I mean, easier than show route adv bgp 
>> x.x.x.x |
>> count and then subtracting out the number of blank and header lines? I
>> don't see anything in show bgp neighbor, which is the logical place I
>> would assume this would be (right next to the Active prefixes and 
>> Received
>> prefixes counts).
>> Also, is there a command I just can't seem to find, or any plans to 
>> add a
>> command under "show route" that matches only the paths selected "best"
>> and/or are installed for forwarding? "show route whatever | except \*"
>> works if you're fine with "terse", but not for much else.
> 	enterprises.2636.
> 	is what you want.  You also want recent software such as 6.0/6.1
> I seem to recall.
> 	- jared
> -- 
> Jared Mauch  | pgp key available via finger from jared at puck.nether.net
> clue++;      | http://puck.nether.net/~jared/  My statements are only 
> mine.
> _______________________________________________
> juniper-nsp mailing list juniper-nsp at puck.nether.net
> http://puck.nether.net/mailman/listinfo/juniper-nsp

More information about the juniper-nsp mailing list