Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Network scripting
#1
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
Reply
#2
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?
"As they say in Mexico 'dosvidaniya'. That makes two vidaniyas."
https://freedns.afraid.org
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Blender scripting the_jl_zone 0 471 Jul-10-2023, 08:48 PM
Last Post: the_jl_zone
  Python Scripting Environment jpotter0 1 1,726 Nov-19-2022, 03:07 PM
Last Post: snippsat
  Scripting: Multiple Votes With a Single Click or Button Ovidiu 0 1,396 Jul-07-2020, 10:51 AM
Last Post: Ovidiu
  Need help in python scripting rajrishi990 17 5,787 Nov-27-2019, 12:04 PM
Last Post: buran
  Abaqus Python Scripting..Key error maddy 0 4,800 May-19-2018, 08:05 AM
Last Post: maddy

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020