RE: Upload config to juniper

2011-01-28 Thread Mark Bassett
...@intelius.com] Sent: Friday, January 28, 2011 5:39 PM To: Jimmy Hess; Florin Veres Cc: nanog@nanog.org Subject: RE: Upload config to juniper Actually if you use the JUNOS api and the reference scripts there are examples to do just this. -Original Message- From: Jimmy Hess [mailto:mysi

RE: Upload config to juniper

2011-01-28 Thread Mark Bassett
Actually if you use the JUNOS api and the reference scripts there are examples to do just this. -Original Message- From: Jimmy Hess [mailto:mysi...@gmail.com] Sent: Wednesday, January 26, 2011 6:31 PM To: Florin Veres Cc: nanog@nanog.org Subject: Re: Upload config to juniper On Mon

Re: Upload config to juniper

2011-01-26 Thread Jimmy Hess
On Mon, Jan 24, 2011 at 7:39 AM, Florin Veres wrote: > Hey guys, > Do any of you have any idea if it's possible to upload configuration from a > script (prefix-list updates in this case) to a JunOS device (MX)? > For Cisco devices I'm doing it using rcp. >From config mode use a "load merge" co

Re: Upload config to juniper

2011-01-26 Thread John Adams
I do this with pyexpect for blacklist updating. It works amazingly well. One thing to remember when communicating with the JunOS device is that if you fail to disable the CLI controls, communicating with the device is very difficult. I do something like: import pexpect child = pexpect.spawn

Upload config to juniper

2011-01-26 Thread Florin Veres
Hey guys, Do any of you have any idea if it's possible to upload configuration from a script (prefix-list updates in this case) to a JunOS device (MX)? For Cisco devices I'm doing it using rcp. Thanks, Florin