Python Forum

Full Version: Network scripting
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi- Im trying to find a way to create a script that can go out to all of my Devices, log in and collect some output to a file that I can dump into excel.

SSH to the router (I have hundreds of them, so I can provide a list of IPs but have no idea how to tell python to automatically go through the list.
Run a command like this: show configuration | match ike

Take the output and send to a file on my network

Go on to the next one...

Thanks in advance!
Bryan
It will be slow. Awaiting one response to do another request... You say that you have hundreds of devices?
You may want to see aiohttp module.
And for example this on SO: https://stackoverflow.com/questions/3592...th-aiohttp

I didn't use aiohttp yet so I can just make suggestions.

How familiar are you with Python?