Community discussions

MikroTik App
 
bobby93
just joined
Topic Author
Posts: 16
Joined: Mon Mar 18, 2013 4:10 pm

show ip bgp summary

Fri Mar 22, 2013 1:29 am

Hi,

I think I finally got a working configuration for my several BGP peers (on an IX).

Now I'm looking for the equivalent of the "show ip bgp summary" command.

I found "/routing bgp peer print status", but the output is awful.... I just need the received routes number !

I even tried scripting, but I'm blocked here

This line find the position of "prefix-count=2"
:foreach cell in=[/routing bgp peer print status as-value ] do={:put [:find $cell "prefix-count=2" ];}

But i don't have regexp to find "prefix-count=[0-9]+".

Could someone help me to find a better view or to continue my script ?

Thank you !
 
nmaton
Frequent Visitor
Frequent Visitor
Posts: 72
Joined: Fri Feb 18, 2011 12:31 am

Re: show ip bgp summary

Fri Mar 22, 2013 7:57 am

Have you tried

Ip route print count-only
 
bobby93
just joined
Topic Author
Posts: 16
Joined: Mon Mar 18, 2013 4:10 pm

Re: show ip bgp summary

Fri Mar 22, 2013 10:21 am

Sure, but it just displays the total number of routes. I need it for each peer, to see if everything is ok, if I need to increase max-prefix for a peer, if a peer send too many routes, if a peer send too few routes, etc...

I think the only way to have that is to script it, but I lack sed !!!
 
bobby93
just joined
Topic Author
Posts: 16
Joined: Mon Mar 18, 2013 4:10 pm

Re: show ip bgp summary

Fri Mar 22, 2013 11:30 am

You'll find my quite working script here :
http://forum.mikrotik.com/viewtopic.php ... 01#p361395

Who is online

Users browsing this forum: Google [Bot] and 17 guests