Re: [j-nsp] BGP Peer formatting

2014-09-23 Thread Michael Loftis
For me at least, peer column needs to be wider (IPv6!) and duration does too ( less than 1w you get a format like 2d 22:22:40) On Mon, Sep 22, 2014 at 9:11 PM, Ben Dale bd...@comlinx.com.au wrote: On 23 Sep 2014, at 1:48 pm, Phil Shafer p...@juniper.net wrote: Ben Dale writes: Okay, one

Re: [j-nsp] BGP Peer formatting

2014-09-23 Thread Eugeniu Patrascu
On Tue, Sep 23, 2014 at 7:11 AM, Ben Dale bd...@comlinx.com.au wrote: Love your work Phil : ) That's a heck of a lot simpler/cleaner than the recursive monstrosity I've been putting together! Changes have been pulled into github, so if you're running 11.4 or earlier, give it another try

Re: [j-nsp] BGP Peer formatting

2014-09-22 Thread Ben Dale
On 10 Sep 2014, at 11:32 am, Ben Dale bd...@comlinx.com.au wrote: Failing that, I just hacked up an op script to only show a summarised version from each peer - output here: https://github.com/dfex/DFEXjunoscripts/blob/master/show-bgp-neat.md Code here:

Re: [j-nsp] BGP Peer formatting

2014-09-22 Thread Phil Shafer
Ben Dale writes: https://github.com/dfex/DFEXjunoscripts/blob/master/show-bgp-neat.slax Very cool! Hey Phil, when can we have git native in Junos?! ; ) How about: op url https://raw.githubusercontent.com/dfex/DFEXjunoscripts/master/show-bgp-neat.slax Thanks, Phil

Re: [j-nsp] BGP Peer formatting

2014-09-22 Thread Eugeniu Patrascu
On Mon, Sep 22, 2014 at 4:24 PM, Phil Shafer p...@juniper.net wrote: Ben Dale writes: https://github.com/dfex/DFEXjunoscripts/blob/master/show-bgp-neat.slax Very cool! Hey Phil, when can we have git native in Junos?! ; ) How about: op url

Re: [j-nsp] BGP Peer formatting

2014-09-22 Thread Ben Dale
On 23 Sep 2014, at 5:57 am, Eugeniu Patrascu eu...@imacandi.netmailto:eu...@imacandi.net wrote: On Mon, Sep 22, 2014 at 4:24 PM, Phil Shafer p...@juniper.netmailto:p...@juniper.net wrote: Ben Dale writes: https://github.com/dfex/DFEXjunoscripts/blob/master/show-bgp-neat.slax Very cool! Hey

Re: [j-nsp] BGP Peer formatting

2014-09-22 Thread Phil Shafer
Ben Dale writes: Okay, one small caveat to this script - it looks like the use of mutable variables (mvar and set) was only introduced in SLAX 1.1 / Junos 12.2, so it's actually not going to wo rk on older versions of Junos. I know 11.4 is the trusted choice for most people on MX at the

Re: [j-nsp] BGP Peer formatting

2014-09-22 Thread Ben Dale
On 23 Sep 2014, at 1:48 pm, Phil Shafer p...@juniper.net wrote: Ben Dale writes: Okay, one small caveat to this script - it looks like the use of mutable variables (mvar and set) was only introduced in SLAX 1.1 / Junos 12.2, so it's actually not going to wo rk on older versions of Junos.

Re: [j-nsp] BGP Peer formatting

2014-09-10 Thread Scott Harvanek
Awesome, thank you very much :-) Both work great! Scott H. On 9/9/14, 9:32 PM, Ben Dale wrote: On 10 Sep 2014, at 7:54 am, Scott Harvanek scott.harva...@login.com wrote: This is a silly/OCD question; I've faced this before and I can't recall how it was prettied up... If I recall there is

[j-nsp] BGP Peer formatting

2014-09-09 Thread Scott Harvanek
This is a silly/OCD question; I've faced this before and I can't recall how it was prettied up... If I recall there is a way to pretty up the formatting of show bgp summary; Peer AS InPkt OutPktOutQ Flaps Last Up/Dwn State|#Active/Received/Accepted/Damped...

Re: [j-nsp] BGP Peer formatting

2014-09-09 Thread Ben Dale
On 10 Sep 2014, at 7:54 am, Scott Harvanek scott.harva...@login.com wrote: This is a silly/OCD question; I've faced this before and I can't recall how it was prettied up... If I recall there is a way to pretty up the formatting of show bgp summary; Peer AS