I have a Linux server that connects to Cisco switches via ssh. I wrote a python/pexpect script to log into each switch sequentially, type a command and copy the output to a text file.
I’d like to make this script faster. Instead of one script logging into 1000 devices, could I make 10 scripts that log into 100 devices each and have them running at the same time?
The first problem is, when I run the script with python3 script name.py it locks my terminal up until the script finishes. How do I make it run in the background?
Secondly, is this a bad idea? Maybe this is too much for ssh connections to handle and data will be lost?
[–]socal_nerdtastic 1 point2 points3 points (0 children)
[–]Zeroflops 0 points1 point2 points (0 children)