Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: monitor iperf from perl

by dasgar (Deacon)
on Nov 14, 2013 at 18:57 UTC ( #1062642=note: print w/ replies, xml ) Need Help??


in reply to monitor iperf from perl

One approach would be to leverage the tasklist command from the command prompt. Your script can call that every so often to check to see if iperf.exe is running and then restart it if it isn't. Not sure what iperf.exe is, but you also might want to add a check to see if properly completed its work and cleanly exited.


Comment on Re: monitor iperf from perl
Re^2: monitor iperf from perl
by Anonymous Monk on Nov 14, 2013 at 20:44 UTC
    Just a guess:
    IPERF(1)                         User Manuals                         IPERF(1)
    
    NAME
           iperf - perform network throughput tests
    
    ...
    
    DESCRIPTION
           iperf is a tool for performing network throughput measurements.  It can
           test either TCP or UDP throughput.  To perform an iperf test  the  user
           must establish both a server (to discard traffic) and a client (to gen‐
           erate traffic).
    

    It doesn't seem like something that would crash often...

      Ordinarily it doesn't, but I'm operating it using a processor who's core voltage is intentionally lower than spec, I occasionally get "stack overflow" and it's ko'd at that point.
Re^2: monitor iperf from perl
by mark4444az (Sexton) on Nov 17, 2013 at 20:19 UTC
    I think that may be the correct approach, I am going to try that.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1062642]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (5)
As of 2014-08-23 07:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (172 votes), past polls