07-12-2013 10:09 PM
I need to create a web app to load config for routers and switches
interace with TCL.
which programming language has the best library ssh into Cisco Router/Switch.
Run commands to loading config files and etc...
07-12-2013 10:16 PM
Just about any language can be made to work. Perl, for example, has a number of modules that make SSH and telnet access to Cisco devices easy. However, I find the Expect language easiest to just do simple automations with devices since you don't need any additional libraries. All you need is a command line ssh client.
07-12-2013 10:26 PM
isn't Expect limited compare to like PHP or Perl?
07-12-2013 10:28 PM
I guess that depends on what you mean by "limited." I find it very functional for being able to grab data off of Cisco devices as well as make configuration changes.
07-15-2013 07:24 AM
I've had great success with Python+Paramiko (http://www.lag.net/paramiko/).
Python is a programmer-friendly language, and Paramiko is very easy to use.
I found it much easier to work with than Expect, and you can use the whole Python language + extensive standard and non-standard libraries to solve your problems.
Give it a try.
07-15-2013 07:04 PM
I will try Paramiko
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide