[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: AW: AW: Attaching more than 1 agent to a Node



If you don't have too many nodes and agents, use trace-all; then extract the 
events corresponding to the arrivals at the receiver. awk is nice tool for that, 
here is a simple script :

{
	if ($10 == dst) print $2, ++x
}

$10 is the field witch contains (node & agent) dst address; $2 is the time 
field, and x is just a counter. You pass dst as an arg to the script.

> X-Authentication-Warning: mash.CS.Berkeley.EDU: majrdomo set sender to 
[email protected] using -f
> From: Chan Kwang Mien <[email protected]>
> To: "'Tarik Alj'" <[email protected]>
> Cc: [email protected]
> Subject: AW: AW: Attaching more than 1 agent to a Node
> Date: Thu, 10 Feb 2000 13:26:33 +0100
> MIME-Version: 1.0
> Content-Transfer-Encoding: 8bit
> X-MIME-Autoconverted: from quoted-printable to 8bit by mash.CS.Berkeley.EDU id 
EAA50141
> 
> hi tarik,
> 
>     i would like to obtained the number of TCP packets received at the
> receiver. is there anyway i could do that ? i.e. to generate a tracefile for
> the receiver ?
> 
>    thanks.
> 
> rgds,
> Kwang Mien
> 

Tarik