473,236 Members | 1,628 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,236 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 4312
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
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

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

Similar topics

by: David | last post by:
I am having an issue with Visual Studio .net and consuming WEB services. When I attempt to write a program to consume the service, I get the message "The proxy settings on this computer are not...
by: Tim Thulin | last post by:
I am using Visual Basic 2005 and trying to discover a Cisco router/catalyst using SNMP. Does anyone have a good sample to start from and also what references should I be using with 2005? Thank...
by: wcl152010 | last post by:
Hi, I have a general doubt here regarding of monitoring different model of CISCO Switches and Routers. I am new in SNMP, I tried to search for CISCO related mib file in the net and i got at...
by: bossingdarwin | last post by:
Hi Guys, I'm new to Perl and to this forum and I hope you gurus here help me. I am building a perl script that will telnet to one of my cisco router and execute commands. I was able to do this...
by: bsdixon21222 | last post by:
Hello All, I havn't been programming with python too long, but decided the best way to learn it would be to dive right in. Right now I have been taking snippets here and there along with...
by: deviao | last post by:
Hello all. I am just about to start learning Python as a friend reccomended it as a very useful and flexible language. I was just wondering if Python has the ability to connect to a Cisco...
by: SPJ | last post by:
Is it possible to run specific commands on cisco router using Python? I have to run command "show access-list" on few hundred cisco routers and get the dump into a file. Please let me know if it is...
by: raamay | last post by:
Its my first time configuring DI-524 AirPlus G 2.4GHz Wireless Router. Infact the router is already configured but it is not secured. So i just wanted to make the network secure for which i didnt...
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 3 Jan 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). For other local times, please check World Time Buddy In...
by: abbasky | last post by:
### Vandf component communication method one: data sharing ​ Vandf components can achieve data exchange through data sharing, state sharing, events, and other methods. Vandf's data exchange method...
by: fareedcanada | last post by:
Hello I am trying to split number on their count. suppose i have 121314151617 (12cnt) then number should be split like 12,13,14,15,16,17 and if 11314151617 (11cnt) then should be split like...
by: stefan129 | last post by:
Hey forum members, I'm exploring options for SSL certificates for multiple domains. Has anyone had experience with multi-domain SSL certificates? Any recommendations on reliable providers or specific...
by: egorbl4 | last post by:
Скачал я git, хотел начать настройку, а там вылезло вот это Что это? Что мне с этим делать? ...
by: davi5007 | last post by:
Hi, Basically, I am trying to automate a field named TraceabilityNo into a web page from an access form. I've got the serial held in the variable strSearchString. How can I get this into the...
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....
by: Aftab Ahmad | last post by:
So, I have written a code for a cmd called "Send WhatsApp Message" to open and send WhatsApp messaage. The code is given below. Dim IE As Object Set IE =...
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...

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.