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

NS Error Message



Hi everybody,
 
    I encountered some problem while I used a newly
created agent on ns. I've use the ping agent in Marc Greis's
tutorial to show the problem.
 
    The script file (ping.tcl) is similiar to the one in
tutorial except I run the following line after simulator
object have been created.
 
   
set p0 [new Agent/Ping]
 
 
The error message after running the following command
   
   > ns ping.tcl
 
The output is as follows :-
 
invalid command name "Agent/Ping"
    while executing
"Agent/Ping create _o56 "
    invoked from within
"catch "$className create $o $args" msg"
    (procedure "new" line 3)
    invoked from within
"new Agent/Ping"
    (file "ping.tcl" line 27)
 
 
    The platform I run ns is FreeBSD ver 3.2. If I run ns with the ping agent
from the debugger, gdb, the problem does not exist. 
 
    Can anyone suggest the probable cause of the problem.
 
Best Regards,
Pek Yew