Running commands on cisco routers using python

Mike Driscoll kyosohma at gmail.com
Mon May 19 11:40:38 EDT 2008


On May 19, 10:18 am, SPJ <mail2... at yahoo.com> wrote:
> 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 feasible and the best way to achieve this.
>
> Thanks,
> SPJ

I think it depends on how you're connecting to the routers.
Theoretically, you should be able to use Python's socket or ssh
modules to connect to them, send commands and capture the output.

Just experiment with one or two routers until you get it.

Mike



More information about the Python-list mailing list