exabgpcli syntax for filters?

703 views
Skip to first unread message

Chris Herdt

unread,
Aug 22, 2018, 4:23:27 PM8/22/18
to exabgp...@googlegroups.com
I'm using ExaBGP 4.0.8-793a2931.

When using exabgpcli, I can see that I am receiving routes:

$ exabgpcli show neighbor summary
Peer            AS        up/down state       |     #sent     #recvd
192.168.42.1    65321     0:07:27 established           2       1392

And I can list all routes with the following command:
$ exabgpcli show adj-rib in
neighbor 192.168.42.1 ipv4 mpls-vpn 192.168.245.0/27 label 34567 next-hop 192.168.100.1 rd 192.168.100.1:24
etc.

I would like to be able to filter the output of the above, but I don't appear to have the correct syntax:

$ exabgpcli neighbor 192.168.42.1 next-hop 192.168.100.1 show adj-rib in
ExaBGP returns an error (see ExaBGP's logs for more information)
use help for a list of available commands

I'm sending ExaBGP log info to stdout and no errors appear for that command. If I introduce a syntax error, I do see that in stdout:

command from process not understood : neighbor 192.168.42.1 next-hop 192.168.100.1 mistake adj-rib in

Can someone give me a pointer as to the proper syntax?

Thanks,
Chris

Thomas Mangin

unread,
Aug 23, 2018, 2:10:25 AM8/23/18
to exabgp...@googlegroups.com
Hello Chris,

ExaBGP does not provide this feature.
The unix tool for filtering, grep, can be used if you need.

Sincerely,

Thomas

--
You received this message because you are subscribed to the Google Groups "exabgp-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to exabgp-users...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Chris Herdt

unread,
Aug 23, 2018, 11:18:02 AM8/23/18
to exabgp...@googlegroups.com
OK. I was looking at the output to 'exabgpcli help' and it suggested that it was possibly to include a filters, e.g. '[neighbor <ip> [filters]] show adj-rib':

$ exabgpcli help

available API commands are listed here:
=======================================

filter can be: [local-ip <ip>][local-as <asn>][peer-as <asn>][router-id <router-id>]

command are:
------------

#
[neighbor <ip> [filters]] announce attributes
[neighbor <ip> [filters]] announce eor
[neighbor <ip> [filters]] announce flow
[neighbor <ip> [filters]] announce operational
[neighbor <ip> [filters]] announce route
[neighbor <ip> [filters]] announce route-refresh
[neighbor <ip> [filters]] announce vpls
[neighbor <ip> [filters]] announce watchdog
[neighbor <ip> [filters]] clear adj-rib
[neighbor <ip> [filters]] crash
[neighbor <ip> [filters]] flush adj-rib out
[neighbor <ip> [filters]] show adj-rib
[neighbor <ip> [filters]] teardown
[neighbor <ip> [filters]] withdraw attributes
[neighbor <ip> [filters]] withdraw flow
[neighbor <ip> [filters]] withdraw route
[neighbor <ip> [filters]] withdraw vpls
[neighbor <ip> [filters]] withdraw watchdog
help
reload
reset
restart
show neighbor [ summary | extensive | configuration ]
shutdown
version

Thomas Mangin

unread,
Aug 24, 2018, 7:21:03 AM8/24/18
to exabgp...@googlegroups.com
It is a way to limit the command to a peer if more than one connection uses the same IP.
Really unlikely to be used much :)

Thomas
Reply all
Reply to author
Forward
0 new messages