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

Re: [ns] Queue Monitor



There has certainly been some problem with the pasting to and from the
email...  this should have resulted in an extra carriage return in some
line, thus causing syntax problems.

I apologize for the incovenience.  This time I enclose the file with two tcl
scripts.  Example2.tcl shows an example of determining the maximum queue
size, adapting code from Marc Greis' tutorial.

Portnoi


----- Original Message -----
From: "hai22" <[email protected]>
To: ""Marcos \"Locksmith\" Portnoi"" <[email protected]>
Sent: Tuesday, 18 de September de 2001 20:28
Subject: Re: [ns] Queue Monitor


> Hi,
> I tried to run the script posted by you, but i am getting the following
> error,,,,
> Can you please look at the script again and tell me how to remove the
> error.
> Thanks,
> Aun
> ********************************************************************
> pc137:~/tempi$ ns queue_monitor_statistics.tcl
> Simulation Start...
> End Simulation.  Simulation Time:  100 s
>                                  =====
>
> Stats:
>                           Arrived                Lost
> Departed
>                     Packets      Bytes    Packets     Bytes
> Packets     Bytes
> ns: finish: wrong # args: should be "puts ?-nonewline? ?channelId?
> string"
>     while executing
> "puts"
>     (procedure "finish" line 22)
>     invoked from within
> "finish"
>
############################################################################
#
>
>

tclscripts.zip