>Synopsis: Many bgpctl show commands not returning data
>Category: user
>Environment:
System : OpenBSD 6.0
Details : OpenBSD 6.0 (GENERIC.MP) #2319: Tue Jul 26 13:00:43 MDT
2016
[email protected]:/usr/src/sys/arch/amd64/compile/GENERIC.MP
Architecture: OpenBSD.amd64
Machine : amd64
>Description:
Many `bgpctl show ...` commands aren't working for me. Some commands are
working.
>How-To-Repeat:
`bgpctl show` works fine.
% bgpctl show
Neighbor AS MsgRcvd MsgSent OutQ Up/Down State/PrfRcvd
2001:468:8::1 11537 1019 85 0 00:41:08 1406
64.57.28.247 11537 4241 85 0 00:41:08 17201
%
`bgpctl show rib` hangs. bgpd outputs "got IMSG_CTL_SHOW_RIB with wrong length"
and if I stick a socat sniffer in between bgpctl and bgpd, I get this going
through the socket:
> 2017/01/26 17:13:16.108489 length=240 from=0 to=239
10 00 00 00 f0 00 00 00 00 00 00 00 4d 3d 00 00 ............M=..
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
00 62 ee 00 3a 12 00 00 05 00 00 00 00 00 00 00 .b..:...........
ed 9e 49 96 30 87 14 9f 00 00 00 00 00 00 00 00 ..I.0...........
43 4a d0 6a 3a 12 00 00 00 00 00 00 00 00 00 00 CJ.j:...........
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
% bgpctl -s /var/run/bgpd.sock.sniff show rib
flags: * = Valid, > = Selected, I = via IBGP, A = Announced, S = Stale
origin: i = IGP, e = EGP, ? = Incomplete
flags destination gateway lpref med aspath origin
^C
%
`bgpctl show table` hangs as well, with no output from bgpd and this going
through the socket:
1a 00 00 00 10 00 00 00 00 00 00 00 0e 94 00 00 ................
bgpd.conf (with md5 passwords removed):
--------8<--------
dumpfreq="7200"
updatefreq="900"
AS 65518
transparent-as yes
fib-update no
route-collector yes
deny rib Adj-RIB-In from any
deny rib Loc-RIB from any
rde rib seat
dump rib seat table-v2 "/var/db/bgp/DUMPS/SEAT/%Y/%m/%d/rib.%Y%m%d.%H%M"
$dumpfreq
group "seat" {
remote-as 11537
rib seat
announce none
multihop 30
dump updates in "/var/db/bgp/UPDATES/SEAT/%Y/%m/%d/updates.%Y%m%d.%H%M"
$updatefreq
neighbor 64.57.28.247 {
tcp md5sig password removed
}
neighbor 2001:468:08::1 {
tcp md5sig password removed
}
}
deny rib seat from any
allow rib seat from group seat
socket "/var/www/run/bgpd.rsock" restricted
--------8<--------
>Fix:
Fix unknown.