Can Cisco Router be configured through scripting?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Shahjehan
    New Member
    • Dec 2007
    • 4

    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?
  • oler1s
    Recognized Expert Contributor
    • Aug 2007
    • 671

    #2
    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.

    Comment

    • Shahjehan
      New Member
      • Dec 2007
      • 4

      #3
      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

      Comment

      • oler1s
        Recognized Expert Contributor
        • Aug 2007
        • 671

        #4
        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".

        Comment

        Working...