[j-nsp] understand the index in jcs:break-lines() function in SLAX

2016-01-14 Thread Martin T
Hi, jcs:break-lines() function in SLAX allows one to break content into multiple lines. For example here I break the output of "show chassis mac-addresses" into lines: version 1.0; ns jcs = "http://xml.juniper.net/junos/commit-scripts/1.0;; match / { { var $sh_mac_results = jcs:invoke(

Re: [j-nsp] read CLI "banner" XML element value with SLAX script

2016-01-14 Thread Martin T
$junos-context variable works perfectly! PS. Thanks for writing such book! I made a pre-order for printed version. Martin On 1/14/16, Phil Shafer wrote: > Martin T writes: >>Junos has "banner" XML element under "rpc-reply" and "cli" hierarchy: > > This is really only

[j-nsp] sequential commands in SLAX

2016-01-14 Thread Martin T
Hi, while I am aware of jcs:open() function, which allows one to execute commands on other routing-engine, I was wondering if following logic is also possible in SLAX: $ cat login_to_other_re.slax version 1.0; ns jcs = "http://xml.juniper.net/junos/commit-scripts/1.0;; import

Re: [j-nsp] sequential commands in SLAX

2016-01-14 Thread Wojciech Janiszewski
Hi Martin, I believe that jcs:invoke() is just a shortcut for jcs:open(), jcs:execute() and jcs:close(), so you get a new connection each time you execute jcs:invoke(). Regards, Wojciech 2016-01-14 10:23 GMT+01:00 Martin T : > Hi, > > while I am aware of jcs:open()

Re: [j-nsp] sequential commands in SLAX

2016-01-14 Thread Martin T
Wojciech, I didn't know that, thanks! However, I also tried with jcs:open(), jcs:execute() and jcs:close() but this didn't change anything: $ cat login_to_other_re.slax version 1.0; ns jcs = "http://xml.juniper.net/junos/commit-scripts/1.0;; import "../import/junos.xsl"; match / { {

Re: [j-nsp] MX960 with 3 RE's?

2016-01-14 Thread Colton Conor
Mark, Thanks for the information.What is the smallest non-DPC 10G card you would recommend? I am probably going to have a hard to getting away with DPC due to the cost. A 4 port 10G DPC card can be had for under $1K on the used market. On Wed, Jan 13, 2016 at 11:45 PM, Mark Tinka

Re: [j-nsp] MX960 with 3 RE's?

2016-01-14 Thread Colton Conor
Thanks for the replies, but I am not interested in the 16XGE card. The configuration I am referencing would be this: http://www.ebay.com/itm/Juniper-MX960BASE-AC-10x-DPC-R-4XGE-XFP-MS-DPC-1yrWrnty-Free-Ship-40x-10G-MX960-/351615023814?hash=item51dde37ac6:g:WUcAAOSwLVZViHc~ Should I run into any

Re: [j-nsp] MX960 with 3 RE's?

2016-01-14 Thread Adam Vitkovsky
> From: Saku Ytti [mailto:s...@ytti.fi] > Sent: Friday, January 15, 2016 12:45 AM > > On 15 January 2016 at 01:39, Christopher E. Brown > wrote: > > The 30Gbit nominal (actual 31.7 or greater) limit per trio applies to > > the MPC1 and 2 cards but the quad trio

Re: [j-nsp] MX960 with 3 RE's?

2016-01-14 Thread Colton Conor
So assuming I got with something like this setup: http://www.ebay.com/itm/Juniper-MX960BASE-AC-10x-DPC-R-4XGE-XFP-MS-DPC-1yrWrnty-Free-Ship-40x-10G-MX960-/351615023814?hash=item51dde37ac6:g:WUcAAOSwLVZViHc~ That has RE-2000's, Regular SCBs, and all DPC linecards. Would these all be able to run at

Re: [j-nsp] MX960 with 3 RE's?

2016-01-14 Thread Christopher E. Brown
On 1/14/2016 1:48 PM, Jeff wrote: > Am 14.01.2016 um 23:19 schrieb Christopher E. Brown: >> >> >> Agree, mixing DPC and MPC is a terrible idea. Don't like DPC to begin >> with, but nobody in their right mind mixes DPCs and MPCs. >> > > Why is that? The mentioned 16x 10G card actually sounds

Re: [j-nsp] RTBH

2016-01-14 Thread Charles van Niman
What route preference is your IGP route, and what IGP? I assume your discard/static has a route preference of 5? Also, do you mind pasting the show route extensive output? Is your static discard route in the same routing-instance/VRF as the BGP prefix? /Charles On Thu, Jan 14, 2016 at 3:10 PM,

Re: [j-nsp] MX960 with 3 RE's?

2016-01-14 Thread Adam Vitkovsky
> From: Christopher E. Brown [mailto:chris.br...@acsalaska.net] > Sent: Thursday, January 14, 2016 11:39 PM > > > In the datasheets for the 16XGE since release Juniper specifically called out > 120G due to bus limit with SCB. > > Not in the sheet but actual is guaranteed 30G per bank of 4. > >

Re: [j-nsp] MX960 with 3 RE's?

2016-01-14 Thread Christopher E. Brown
It is 120Gbit agg in a SCB system as the limit is 120G/slot. This is in the form of 30Gbit per TRIO and 1 TRIO per 4 ports. So, use 3 of 4 in each bank if you want 100% line rate. SCBE increases this to 160Gbit or better (depending on age of chassis) allowing for line rate on all 16. Agree,

Re: [j-nsp] MX960 with 3 RE's?

2016-01-14 Thread Christopher E. Brown
With 2 active SCBs (2+0 non-redundant or 2+1 redundant in a 960) you are capable of 120G per slot. The worst case throughput in this case would depend on the cards. For single Trio MPC1 in would be 30Gbit per card (actual 31.7 to ~ 39 depending on packet mix) For dual Trio MPC2 it would be

Re: [j-nsp] MX960 with 3 RE's?

2016-01-14 Thread Adam Vitkovsky
> Jeff > Sent: Thursday, January 14, 2016 10:47 PM > To: Mark Tinka; Colton Conor; Tom Storey > Cc: Juniper List > Subject: Re: [j-nsp] MX960 with 3 RE's? > > Am 14.01.2016 um 06:45 schrieb Mark Tinka: > > The 64-bit RE gives you more memory to hold more routes, but if you > > only need 4x full

Re: [j-nsp] MX960 with 3 RE's?

2016-01-14 Thread Jeff
Am 14.01.2016 um 23:19 schrieb Christopher E. Brown: Agree, mixing DPC and MPC is a terrible idea. Don't like DPC to begin with, but nobody in their right mind mixes DPCs and MPCs. Why is that? The mentioned 16x 10G card actually sounds interesting but is still quite expensive compared to

Re: [j-nsp] MX960 with 3 RE's?

2016-01-14 Thread Christopher E. Brown
In the datasheets for the 16XGE since release Juniper specifically called out 120G due to bus limit with SCB. Not in the sheet but actual is guaranteed 30G per bank of 4. We used first 4 of each bank in heavy core use and behavior is as specified. With change to SCBE this limit is removed and

Re: [j-nsp] MX960 with 3 RE's?

2016-01-14 Thread Saku Ytti
On 15 January 2016 at 01:39, Christopher E. Brown wrote: > The 30Gbit nominal (actual 31.7 or greater) limit per trio applies to the > MPC1 and 2 cards > but the quad trio interconnect in the 16XGE is wired up diff with additional > helpers and > can do the full 40G

Re: [j-nsp] MX960 with 3 RE's?

2016-01-14 Thread Christopher E. Brown
We actually spent a couple years spooling up for a greenfield build of a network required to provide very tight SLAs on a per service bases. We were working with the MX BU directly for almost 2 years and constantly exchanging test results and loaner/testing cards. Per specs provided by the

Re: [j-nsp] MX960 with 3 RE's?

2016-01-14 Thread Adam Vitkovsky
> Christopher E. Brown > Sent: Thursday, January 14, 2016 10:20 PM > To: juniper-nsp@puck.nether.net > Subject: Re: [j-nsp] MX960 with 3 RE's? > > > It is 120Gbit agg in a SCB system as the limit is 120G/slot. > > This is in the form of 30Gbit per TRIO and 1 TRIO per 4 ports. > > So, use 3 of 4 in

Re: [j-nsp] MX960 with 3 RE's?

2016-01-14 Thread joel jaeggli
On 1/14/16 2:48 PM, Jeff wrote: > Am 14.01.2016 um 23:19 schrieb Christopher E. Brown: >> >> >> Agree, mixing DPC and MPC is a terrible idea. Don't like DPC to begin >> with, but nobody in their right mind mixes DPCs and MPCs. >> > > Why is that? The mentioned 16x 10G card actually sounds

Re: [j-nsp] MX960 with 3 RE's?

2016-01-14 Thread Saku Ytti
On 15 January 2016 at 01:39, Christopher E. Brown wrote: > The 30Gbit nominal (actual 31.7 or greater) limit per trio applies to the > MPC1 and 2 cards > but the quad trio interconnect in the 16XGE is wired up diff with additional > helpers and > can do the full 40G

Re: [j-nsp] RTBH

2016-01-14 Thread chip
A strategy that I've seen used is to pick some ip address and add a static route for it pointing to discard on every router. Then when you receive the route to black-hole, set the next-hop to the discard route. This way all routers will drop traffic for the prefix as soon as it enters the router

Re: [j-nsp] MX960 with 3 RE's?

2016-01-14 Thread Mark Tinka
On 15/Jan/16 00:09, Saku Ytti wrote: > Pretty sure it's as wire-rate as MPC1, MPC2 on SCBE system. Yes, but I think the OP wants to buy the SCB. Mark. ___ juniper-nsp mailing list juniper-nsp@puck.nether.net

Re: [j-nsp] MX960 with 3 RE's?

2016-01-14 Thread Mark Tinka
On 14/Jan/16 20:55, Jim Troutman wrote: > I'm also very curious about inexpensive MX480/MX960 10G routing > options for use as MPLS P or maybe PE routers. > > A surplus dealer recommended the MPC-3D-16XGE-SFPP-R-B, which is less > than $1k/port used. But it only supports full bandwidth on 12

[j-nsp] RTBH

2016-01-14 Thread Johan Borch
Hi! I have implemented RTBH in my small network of 8 routers. DFZ is running in a L3VPN and each router has an multihop ibgp-session with my RTBH-router and it works, but I have one thing that annoys me. If I announce an offending IP to be black holed, only one of the routers will point to the

Re: [j-nsp] understand the index in jcs:break-lines() function in SLAX

2016-01-14 Thread Phil Shafer
Martin T writes: >However, script above returns an empty line. $line is a node-set, but you are making a string out of it. XPath specifies that when you turn a node-set into a string, it "is converted to a string by returning the string-value of the node in the node-set that is first in document

Re: [j-nsp] sequential commands in SLAX

2016-01-14 Thread Phil Shafer
Martin T writes: >/* rlogin to second RE */ >var $cmd_login_other_re = "request routing-engine login >other-routing-engine"; >var $cmd_login_other_re_results = jcs:invoke( $cmd_login_other_re ); If you want to talk to the other RE (or any remote host), you'll need jcs:open() which

Re: [j-nsp] MX960 with 3 RE's?

2016-01-14 Thread Jim Troutman
I'm also very curious about inexpensive MX480/MX960 10G routing options for use as MPLS P or maybe PE routers. A surplus dealer recommended the MPC-3D-16XGE-SFPP-R-B, which is less than $1k/port used. But it only supports full bandwidth on 12 ports, would be oversubscribed 4:3 if all 16 are in

Re: [j-nsp] MX960 with 3 RE's?

2016-01-14 Thread Saku Ytti
On 14 January 2016 at 23:11, Mark Tinka wrote: Hey, >> A surplus dealer recommended the MPC-3D-16XGE-SFPP-R-B, which is less >> than $1k/port used. But it only supports full bandwidth on 12 ports, >> would be oversubscribed 4:3 if all 16 are in use. They are Trio