Hi Deepak,
Correct, this was actually the Day 1 behavior of the show bgp summary command. I think this has to do something with the RIBs, rather than routing instances per se. If you have only inet.0 RIB then you will get the output #1 (with the prefix count in the end). On the other hand, if you also have inet6.0 (or inet.3) you get the output #2. The recent Junos versions have inet6.0 by default, because em1 interface (used for RE-PFE communication) has IPv6 enabled by default on the RE.
Having in mind that nowadays your chances to have inet.0 only (you can check that with show route summary) on your router is relatively small - you will either run IPv6, MPLS, EVPN-VXLAN ... or you'll use mgmt_junos routing-instance for your router management. So you will probably not come against #1
However, as mentioned in the PR600308, there is a workaround, if that output difference bothers you.
On the side note - 20 years ago, when all of us used various home-brewed Perl/Python scripts doing show bgp summary, I recall I had to check the last field of each line - whether it matched regexp [0-9]/[0-9] or not ... and read the next line(s) if not. But nowadays, most people use XML outputs or PyEZ to get prefix counts and other information from BGP peers, so this output difference is just a cosmetic issue anyway.
Regards,
Beri
------------------------------
Berislav Todorovic
------------------------------
Original Message:
Sent: 01-06-2024 09:22
From: djadhav
Subject: Question on "show bgp summary"
Hi.
In some Junos documentation I see the the CLI output of "show bgp summary" mentioning the number of routes received from an established neighbor in place of the "Established" state. For example, in the output below, the cli output mentions "889/889/889/0"
instead of Establ
.
lab@vSRX-1> show bgp summary
Groups: 3 Peers: 3 Down peers: 2
Table Tot Paths Act Paths Suppressed History Damp State Pending
inet.0 889 889 0 0 0 0
inet6.0 0 0 0 0 0 0
Peer AS InPkt OutPkt OutQ Flaps Last Up/Dwn State|...
172.27.255.4 3895077211 417 417 0 1 1:54 889/889/889/0
Below I have the output (from my lab) mentioning Establ
under the 'State' column instead of number of routes.
jcluser@vMX-addr-0> show bgp summary logical-system R2
Threading mode: BGP I/O
Default eBGP mode: advertise - accept, receive - accept
Groups: 1 Peers: 1 Down peers: 0
Table Tot Paths Act Paths Suppressed History Damp State Pending
inet.0
0 0 0 0 0 0
inet6.0
0 0 0 0 0 0
Peer AS InPkt OutPkt OutQ Flaps Last Up/Dwn State|#Active/Received/Accepted/Damped...
10.10.10.1 1 3 2 0 0 0 Establ
Why are there two different formats for the output of the same CLI command? Are there different output formats for different Junos software versions?
Thanks,
Deepak