471,334 Members | 2,221 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,334 software developers and data experts.

Can Cisco Router be configured through scripting?

I have to configure Cisco Router and get their sh-run on my PC using python. Is this possible?

Do cisco routers provide provision of accessing them through scripting?
Dec 17 '07 #1
3 4173
oler1s
671 Expert 512MB
Request to Mod: Merge this thread with OPís previous thread (same question): http://www.thescripts.com/forum/thread748714.html. It was started very recently, and there is no reason to start a second line of discussion.

Aside to OP: Donít start multiple threads when the question is the same. Itís like spamming.

Now, to your actual question. You seemed to have misunderstood my reply in the previous thread. I wasnít criticizing your question. I was telling you how to approach your problem. I know nothing about your routers at hand. I donít know what your router provides you. You can telnet to it? Great. Anything else? Did they provide any libraries of code for you to use? We donít know that. Itís something only you can find out. If you donít know, maybe you should call up Cisco and ask for support on the issue.

If Cisco provides certain libraries of code to be used in conjuction with your router, then you should use those libraries, in whatever language they are to be used in. No idea if it would be Python.

Python has modules for working with the telnet protocol. You could replicate with Python, whatever steps a human being would do to configure your routers.
Dec 17 '07 #2
Sorry for complicating my question....Now, simply what I have to do is Telnet a device(which is router) in this case and make a session in which i can run commands
Dec 23 '07 #3
oler1s
671 Expert 512MB
Python has modules that support the telnet protocol. Did you look into them? You could have found about them with a Google search on "Python" and "telnet".
Dec 23 '07 #4

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

reply views Thread by Tim Thulin | last post: by
reply views Thread by rosydwin | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.