Hi If you would like to add a new module into NS2, please read
http://www.ns2ultimate.com/post/454001969/including-new-modules-into-ns-2 You might want to check out the reasons behind Tcl error messages from the link below: - General error message interpretation: http://www.ns2ultimate.com/post/419191200/tcl-error-message-in-ns2 To fix the error, please read the following posts: - Invalid command name: http://www.ns2ultimate.com/post/995668627/error-message-invalid-command - To add new OTcl class: http://www.ns2ultimate.com/post/689847378/c-and-otcl-linkage-binding-c-and-otcl-classes - To add an OTcl command: http://www.ns2ultimate.com/post/801303612/c-and-otcl-linkage-otcl-commands-getting-started - To add a new module: http://www.ns2ultimate.com/post/454001969/including-new-modules-into-ns-2 I hope this will help. Best Wishes, Teerawat Issariyakul http://www.ns2ultimate.com/ http://www.ece.ubc.ca/~teerawat http://www.t-issariyakul.blogspot.com http://www.facebook.com/pages/Teerawat-Issariyakul/358240861417 http://twitter.com/T_Bear On Apr 9, 2012, at 5:28 AM, savan kiran wrote: > > i have followed the steps given in the Marc Greis tutorial to the last word > and put the renamed ping files into a directory named > ns-allinone-2.35/ns2-2.35/eammh/ > > i've made the necessary changes in files like packet.h etc... > my files are eammh.cc and eammh.h > after doing make clean,make depend,make > the eammh.o file is being created successfully. > but even then i get the following error whenever i try to include > Agent/Eammh in a tcl file. > > error: > > invalid command name "Agent/Eammh" > while executing > "Agent/Eammh instproc recv {from rtt} { > $self instvar node_ > puts "node [$node_ id] received ping answer from \ > $from with round-trip-ti..." > (file "eammh.tcl" line 32) > > what is the problem? > > -- > $@V@N >