show inner statistics for bgp
hello. is it possible to see the information about bgp sessions? accepted routes, sent routes etc? similar to what quagga does? thanks mk
yes. use birdc and the 'show route' command including it's parameters. (protocol & table) On Nov 30, 2009, at 18:10 , Martin Kraus wrote:
hello. is it possible to see the information about bgp sessions? accepted routes, sent routes etc? similar to what quagga does?
thanks mk
-- www.vix.at | www.aco.net wh@univie.ac.at | WH844-RIPE Vienna University Computer Center
On Mon, Nov 30, 2009 at 06:11:22PM +0100, Wolfgang Hennerbichler wrote:
yes. use birdc and the 'show route' command including it's parameters. (protocol & table)
I didn't mean routes imported from bgp into bird routing table but the statistics of the bgp protocol itself, the similar thing as show ospf topology does for ospf. mk
birdc, show protocols all BGP-SESSION-NAME? DJC 2009/11/30 Martin Kraus <martin.kraus@wujiman.net>
On Mon, Nov 30, 2009 at 06:11:22PM +0100, Wolfgang Hennerbichler wrote:
yes. use birdc and the 'show route' command including it's parameters. (protocol & table)
I didn't mean routes imported from bgp into bird routing table but the statistics of the bgp protocol itself, the similar thing as show ospf topology does for ospf.
mk
On Mon, Nov 30, 2009 at 06:20:58PM +0100, Martin Kraus wrote:
On Mon, Nov 30, 2009 at 06:11:22PM +0100, Wolfgang Hennerbichler wrote:
yes. use birdc and the 'show route' command including it's parameters. (protocol & table)
I didn't mean routes imported from bgp into bird routing table but the statistics of the bgp protocol itself, the similar thing as show ospf topology does for ospf.
There is no command for bgp-specific protocol information, but command 'show protocols all' shows statistics of exported and imported routes between the core and the protocol (which is almost the same as routes sent and received from BGP peer): bird> show protocols all bgp1 name proto table state since info bgp1 BGP master up 20:00 Established Preference: 100 Input filter: ACCEPT Output filter: REJECT Routes: 261314 imported, 0 exported, 261314 preferred Route change stats: received rejected filtered ignored accepted Import updates: 261445 0 0 0 261445 Import withdraws: 17 0 --- 0 17 Export updates: 261445 261445 0 --- 0 Export withdraws: 17 --- --- --- 0 -- Elen sila lumenn' omentielvo Ondrej 'SanTiago' Zajicek (email: santiago@crfreenet.org) OpenPGP encrypted e-mails preferred (KeyID 0x11DEADC3, wwwkeys.pgp.net) "To err is human -- to blame it on a computer is even more so."
On Mon, Nov 30, 2009 at 09:08:14PM +0100, Ondrej Zajicek wrote:
On Mon, Nov 30, 2009 at 06:20:58PM +0100, Martin Kraus wrote:
On Mon, Nov 30, 2009 at 06:11:22PM +0100, Wolfgang Hennerbichler wrote:
yes. use birdc and the 'show route' command including it's parameters. (protocol & table)
I didn't mean routes imported from bgp into bird routing table but the statistics of the bgp protocol itself, the similar thing as show ospf topology does for ospf.
There is no command for bgp-specific protocol information, but command 'show protocols all' shows statistics of exported and imported routes between the core and the protocol (which is almost the same as routes sent and received from BGP peer):
bird> show protocols all bgp1 name proto table state since info bgp1 BGP master up 20:00 Established Preference: 100 Input filter: ACCEPT Output filter: REJECT Routes: 261314 imported, 0 exported, 261314 preferred Route change stats: received rejected filtered ignored accepted Import updates: 261445 0 0 0 261445 Import withdraws: 17 0 --- 0 17 Export updates: 261445 261445 0 --- 0 Export withdraws: 17 --- --- --- 0
So I guess that means there is no plan to implement some more detailed bgp information? It's just that from time to time, I think that bird doesn't export a certain route throught bgp session even thought that route is in ospf. restarting bird helps, it's just that it would be nice to see if it really is a problem with bird or the cisco on the other side or something else. mk
On Mon, Nov 30, 2009 at 11:41:51PM +0100, Martin Kraus wrote:
On Mon, Nov 30, 2009 at 09:08:14PM +0100, Ondrej Zajicek wrote:
On Mon, Nov 30, 2009 at 06:20:58PM +0100, Martin Kraus wrote:
On Mon, Nov 30, 2009 at 06:11:22PM +0100, Wolfgang Hennerbichler wrote:
yes. use birdc and the 'show route' command including it's parameters. (protocol & table)
I didn't mean routes imported from bgp into bird routing table but the statistics of the bgp protocol itself, the similar thing as show ospf topology does for ospf.
There is no command for bgp-specific protocol information, but command 'show protocols all' shows statistics of exported and imported routes between the core and the protocol (which is almost the same as routes sent and received from BGP peer): ... So I guess that means there is no plan to implement some more detailed bgp information?
There are some plans, but i don't see what kind of information would help you in the mentioned case. I would rather suggest to use logs (with enabled appropriate logging using 'debug' option) to examine that problem. -- Elen sila lumenn' omentielvo Ondrej 'SanTiago' Zajicek (email: santiago@crfreenet.org) OpenPGP encrypted e-mails preferred (KeyID 0x11DEADC3, wwwkeys.pgp.net) "To err is human -- to blame it on a computer is even more so."
participants (4)
-
David J Craigon -
Martin Kraus -
Ondrej Zajicek -
Wolfgang Hennerbichler