Skip to content

Latest commit

 

History

History
19 lines (16 loc) · 1.15 KB

show-bgp-neat.md

File metadata and controls

19 lines (16 loc) · 1.15 KB

show-bgp-neat

This script provides a much neater output to "show bgp summary" including inline aggregation of routes from differnet address families:

bdale@lab-acx-03> op show-bgp-neat
Peer                               AS         State        Duration    Active    Recevied  Accepted  Description
10.192.2.217                       65568      Established  4w1d10h     19        24        24        Lab-ACX-01
10.192.2.218                       65568      Established  4w1d10h     4         24        24        Lab-ACX-02
192.17.168.34                      65568      Established  2w 14:03:04 1         1         1         Lab-MX80-01
192.17.168.35                      65568      Established  6w 2:45:17  50        52        52        Lab-MX80-02
2402:c001:fcd1:ba20:ae43:1001:2311 1234567890 Established  4w1d10h     45        50        50        Lab-MX80-01
2402:c001:fcd1:ba21:ae43:1001:2311 1234567890 Established  4w1d10h     34        36        36        Lab-MX80-02

You can test this directly from Junos providing your box can resolve DNS and reach the Internet:

op url https://raw.githubusercontent.com/dfex/DFEXjunoscripts/master/show-bgp-neat.slax