[smokeping-users] Re: parsing standard cisco ping

Niko Tyni ntyni+smokeping-users at mappi.helsinki.fi
Sat May 13 12:33:28 MEST 2006


On Fri, May 12, 2006 at 08:46:54PM +0200, Mark wrote:
 
> thanks a lot for your code! I 'm testing it right now.
> I need to parse standard output because I need the ATM option and its 
> output is only the standard one.

Ah, ATM SVCs. We used to run LAN emulation on ATM years ago...

> Success rate is 100 percent (10/10), round-trip min/avg/max = 84/86/92 ms

Be sure to fix the average calculations in the suggested code. I think
the right thing would be

for my $i (1..$number) {
	if ($i == 1) {
		push @times, $min;
	} elsif ($i == $number) {
		push @times, $max;
	} else
		push @times, ($number * $avg - $min - $max) / ($number - 2);
	}
}

Cheers,
-- 
Niko

--
Unsubscribe mailto:smokeping-users-request at list.ee.ethz.ch?subject=unsubscribe
Help        mailto:smokeping-users-request at list.ee.ethz.ch?subject=help
Archive     http://lists.ee.ethz.ch/smokeping-users
WebAdmin    http://lists.ee.ethz.ch/lsg2.cgi



More information about the smokeping-users mailing list