Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #62263 > unrolled thread

RE: seeking a framework to automate router configurations

Started byFrank Cui <ycui@outlook.com>
First post2013-12-18 00:13 -0300
Last post2013-12-18 00:13 -0300
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  RE: seeking a framework to automate router configurations Frank Cui <ycui@outlook.com> - 2013-12-18 00:13 -0300

#62263 — RE: seeking a framework to automate router configurations

FromFrank Cui <ycui@outlook.com>
Date2013-12-18 00:13 -0300
SubjectRE: seeking a framework to automate router configurations
Message-ID<mailman.4327.1387338274.18130.python-list@python.org>

[Multipart message — attachments visible in raw view] — view raw

Hi Chris,
Thanks for the advice! 
I'm aware of this module, the problem is that this is quite a low level module and I would have quite a lot to re-invent specific to telneting to a cisco router.
Thanks!

> Date: Wed, 18 Dec 2013 14:27:55 +1100
> Subject: Re: seeking a framework to automate router configurations
> From: rosuav@gmail.com
> CC: python-list@python.org
> 
> On Wed, Dec 18, 2013 at 1:40 PM, Frank Cui <ycui@outlook.com> wrote:
> > "Asynchronously reset a large number of cisco routers back to their original
> > configurations and push prepared initial configurations to them"
> 
> From the sound of your partial solutions, this is done over a TCP/IP
> socket? I don't know how you'd go about authenticating yourself with
> the router (unless the factory reset is done some other way, and the
> telnet part is just to push the config, in which case you'd be using
> the default credentials), but presumably you've worked that part out
> already.
> 
> Python has a socket module which is probably what you want here. You
> can connect on any port, read what comes back, and send whatever you
> need. If the job's simple enough, you might even be able to just
> connect, send a fixed blob of text, and then listen for errors in the
> response... or even not, and just let the user try it afterwards.
> 
> http://docs.python.org/3/library/socket.html
> 
> Does that look like what you need?
> 
> ChrisA
> -- 
> https://mail.python.org/mailman/listinfo/python-list
 		 	   		  

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web