Re: Fwd: socket: Too many open files

2018-10-14 Thread Cameron Simpson
On 14Oct2018 20:24, Shakti Kumar wrote: On 13Oct2018 14:10, Shakti Kumar wrote: I’m running a script which basically does a traceroute to the list of hosts provided, and then pulls up some info by logging in to gateways in the path. I am running this script for a list of almost 40k hosts in

Fwd: socket: Too many open files

2018-10-14 Thread Shakti Kumar
>On 13Oct2018 14:10, Shakti Kumar wrote: >>I’m running a script which basically does a traceroute to the list of >>hosts >>provided, and then pulls up some info by logging in to gateways in the path. >>I am running this script for a list of almost 40k hosts in our data centers. >>Also, I am using

Re: socket: Too many open files

2018-10-13 Thread Cameron Simpson
On 13Oct2018 14:10, Shakti Kumar wrote: I’m running a script which basically does a traceroute to the list of hosts provided, and then pulls up some info by logging in to gateways in the path. I am running this script for a list of almost 40k hosts in our data centers. Also, I am using commands

Re: socket: Too many open files

2018-10-13 Thread jfine2358
Hi Shakti You wrote: > out = commands.getstatusoutput('traceroute ' + ip) The page https://docs.python.org/3/library/subprocess.html#legacy-shell-invocation-functions describes subprocess.getstatusoutput as one of the "legacy functions from the 2.x commands module. These operations implicitly

Fwd: socket: Too many open files

2018-10-13 Thread Shakti Kumar
>Hello, >I’m running a script which basically does a traceroute to the list of hosts provided, and then pulls up some info by logging in to gateways in the path. >I am running this script for a list of almost 40k hosts in our data centers. >Also, I am using commands module to get the traceroute out

socket: Too many open files

2018-10-13 Thread Shakti Kumar
Hello, I’m running a script which basically does a traceroute to the list of hosts provided, and then pulls up some info by logging in to gateways in the path. I am running this script for a list of almost 40k hosts in our data centers. Also, I am using commands module to get the traceroute output.