cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
4001
Views
0
Helpful
5
Replies

which programming language has the best library for ssh into Cisco Router/Switch

homephoneone
Level 1
Level 1

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

5 Replies 5

Joe Clarke
Cisco Employee
Cisco Employee

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.

isn't Expect limited compare to like PHP or Perl?

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.

hugozaggo
Level 1
Level 1

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.

I will try Paramiko