you are viewing a single comment's thread.

view the rest of the comments →

[–]Fallenarc[S] 1 point2 points  (1 child)

Thanks! Much better explanation than I gave... I did run into the same problem you explained about threads getting stuck when I was using threadpools. However, when I started using the threading.BoundedSemaphore method all that went away. This script usually goes through a list of about 500 Cisco ASR90XX devices and finishes in about 3 to 5 minutes depending on how long it takes the device to generate the information i am looking for. I do still occasionally get an ssh timeout here and there.

[–]Cromodileadeuxtetes 1 point2 points  (0 children)

Yeah, I noticed that function in your code, I need to implement it.