in reply to Re: Re: Netstat summary and Perl?
in thread Netstat summary and Perl?
And you aren't giving me much to work with.
However, let's look at retransmissons for a second. Just like I taught myself how to translate or search for what information I need in the output of the command I am going to do the same for Perl:
is going to yeild me something like:: : some handwaving... : open PIPE,"netstat -s |" or die $!; my @slurp=<PIPE>; close PIPE; chomp @slurp; grep /Retran/,@slurp; printf "%s\n",join("\n",@slurp); : :
TCPLostRetransmit: 0 TCPFastRetrans: 0 TCPForwardRetrans: 0 TCPSlowStartRetrans: 0
What you do beyond that depends on your requirements. I recommend you sit down and develop your requirements thoroughly and then plan your attack rather than fit your requirements to your attack. :-)
I hope this isn't homework!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Re: Netstat summary and Perl?
by u235sentinel (Hermit) on Apr 07, 2004 at 17:58 UTC | |
by blue_cowdawg (Monsignor) on Apr 07, 2004 at 18:35 UTC |