LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   invalid command command "agent/myudp"during using ns2 and evalvid (https://www.linuxquestions.org/questions/linux-newbie-8/invalid-command-command-agent-myudp-during-using-ns2-and-evalvid-4175572564/)

milina 02-18-2016 02:45 AM

invalid command command "agent/myudp"during using ns2 and evalvid
 
Hi,
I am using evalvid and ns2 and i use ubuntu 14.04 to evaluate video traffic ,I am using ns2.35 and evalvid 2.7.but when I run the tcl script be.tcl the following error is coming..

invalid command name "Agent/myUDP"
while executing
"Agent/myUDP create _o82 "
invoked from within
"catch "$className create $o $args" msg"
invoked from within
"if [catch "$className create $o $args" msg] {
if [string match "__FAILED_SHADOW_OBJECT_" $msg] {
delete $o
return ""
}
global errorInfo
error "class $..."
(procedure "new" line 3)
invoked from within
"new Agent/myUDP"
invoked from within
"set udp1 [new Agent/myUDP]"
(file "be.tcl" line 24)

does anyone has a solution to this problem..Any sort of help will be appreciated
plz reply to me..Knowing that I am beginner
Thanks & Regards

milina 02-21-2016 04:47 AM

please reply

hydrurga 02-21-2016 06:33 AM

This appears to be set course work for a course in India and people have posted about this problem in the past.

Have a search around for "Agent/myUDP create _o82" (a string I selected because I figured it would be unique enough to lead to info on people having encountered the same problem). You will find at least one potential solution.

milina 02-22-2016 06:01 AM

tcl8.5.10 installation failed.
 
Hi
I have taken this step:
cd ns-allinone-2.35/
patch -p0 < myevalvid2_ns235.patch
https://drive.google.com/file/d/0B7S...ew?usp=sharing
export CC=gcc-4.4 CXX=g++-4.4 && ./install
cd ns-2.35/
sudo make install
cp ns ns235-evalvid2
sudo cp ns235-evalvid2 /usr/local/bin/


but when i run export CC=gcc-4.4 CXX=g++-4.4 && ./install
the following error is coming..


tcl8.5.10 make succeeded.
Installing libtcl8.5.a to /home/messaouda/ns-allinone-2.35/lib/
Installing tclsh as /home/messaouda/ns-allinone-2.35/bin/tclsh8.5
Installing tclConfig.sh to /home/messaouda/ns-allinone-2.35/lib/
Installing libtclstub8.5.a to /home/messaouda/ns-allinone-2.35/lib/
Installing message catalogs
Creating msgs
error deleting "/home/messaouda/ns-allinone-2.35/lib/tcl8.5/msgs/it_ch.msg": not owner
while executing
"file delete -force -- $d2"
(procedure "copyDir" line 5)
invoked from within
"copyDir [file normalize [lindex $argv 0]] [file normalize [lindex $argv 1]]"
(file "/home/messaouda/ns-allinone-2.35/tcl8.5.10/unix/../tools/installData.tcl" line 50)
make: *** [install-msgs] Error 1
tcl8.5.10 installation failed.
Tcl is not part of the ns project. Please see www.Scriptics.com
to see if they have a fix for your platform.


does anyone has a solution to this problem...plz reply to me..
thanks

milina 02-23-2016 04:39 AM

plz reply to me,does anyone has a solution to this problem.

knudfl 02-27-2016 07:53 AM

Re #5.

? May be you used 'sudo' (or a GUI tool) for the unpack of ns-allinone-2.35.tar.gz ?
( No sudo for any ns2 command.
EDIT : (Except 'sudo cp [ns-name] /usr/local/bin/' and 'sudo make install' ).


Please delete all ns-allinone-2.35/ and do :
$ tar xvf ns-allinone-2.35.tar.gz


-

milina 02-27-2016 04:11 PM

Dear knudfl,
Thanks sir,i do this command:$ tar xvf ns-allinone-2.35.tar.gz
and after doing "make install"
i am getting this
for d in /usr/local/man/man1; do \
if [ ! -d $d ]; then \
mkdir -p $d ;\
fi;\
done
/usr/bin/install -c -m 755 ns /usr/local/bin
/usr/bin/install: cannot remove ‘/usr/local/bin/ns’: Permission denied
make: *** [install-ns] Error 1
what will i do?

knudfl 02-28-2016 02:58 PM

Re #7.

The 'make install' command is $ sudo make install : See #4.

As post #6 suggests, it's recommended to do like $ sudo cp ns-evalvid2 /usr/local/bin/
Also included in post #4.

milina 02-28-2016 03:14 PM

Dear knudfl,thanks for reply
i run $ sudo make install
but i am getting this
for d in /usr/local/man/man1; do \
if [ ! -d $d ]; then \
mkdir -p $d ;\
fi;\
done
/usr/bin/install -c -m 755 ns /usr/local/bin
/usr/bin/install -c -m 644 ns.1 /usr/local/man/man1
what will i do??!!!!

milina 02-29-2016 02:23 PM

Dear knudfl,
Although following the above steps, but it remained the same error "invalid command agent/myudp" when i run ns235-evalvid2 be.tcl
I do not know what to do, please I want some advice to solve this problem.
thanks and Best regards

BW-userx 02-29-2016 04:53 PM

Quote:

Originally Posted by milina (Post 5502103)
Hi,
I am using evalvid and ns2 and i use ubuntu 14.04 to evaluate video traffic ,I am using ns2.35 and evalvid 2.7.but when I run the tcl script be.tcl the following error is coming..

.......
"new Agent/myUDP"
invoked from within
"set udp1 [new Agent/myUDP]"
(file "be.tcl" line 24)

does anyone has a solution to this problem..Any sort of help will be appreciated
plz reply to me..Knowing that I am beginner
Thanks & Regards

I can tell you this much,

the file named "be.tcl" at line 24 is causing the problem. perhaps a bad naming or invalid prams being passed into function, OR a bad function call itself.

Code:

invalid command name "Agent/myUDP"
    while executing
"Agent/myUDP create _o82 "
    invoked from within
"catch "$className create $o $args" msg"
    invoked from within
"if [catch "$className create $o $args" msg] {
if [string match "__FAILED_SHADOW_OBJECT_" $msg] {
delete $o

key words that indicate this are highlighted but that is just me giving you my best guess.

BW-userx 02-29-2016 05:00 PM

Quote:

Originally Posted by hydrurga (Post 5503712)
This appears to be set course work for a course in India and people have posted about this problem in the past.

Have a search around for "Agent/myUDP create _o82" (a string I selected because I figured it would be unique enough to lead to info on people having encountered the same problem). You will find at least one potential solution.


you weren't kidding about it being from the PAST. this was posted in 2008 same exact problem. LMAO


Quote:

[ns] plzz help me with soln for invalid command name "Agent/myUDP"
subhasis choudhury subhasis_raja at rediffmail.com
Wed Aug 13 18:49:43 PDT 2008

Previous message: [ns] WNS2 workshop programme - 23 October, Athens, Greece
Next message: [ns] Help Movement Trace Output
Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]


Hi,
I am using the smallko method to evaluate multimedia traffic and followed each step...but when I run the tcl script be.tcl the following error is coming..

invalid command name "Agent/myUDP"
while executing
"Agent/myUDP create _o82 "
invoked from within
"catch "$className create $o $args" msg"
invoked from within
"if [catch "$className create $o $args" msg] {
if [string match "__FAILED_SHADOW_OBJECT_" $msg] {
delete $o
return ""
}
global errorInfo
error "class $..."
(procedure "new" line 3)
invoked from within
"new Agent/myUDP"
invoked from within
"set udp1 [new Agent/myUDP]"
(file "be.tcl" line 24)

does anyone has a solution to this problem..Any sort of help will be appreciated

Thanks & Regards
Subhasis


All times are GMT -5. The time now is 10:36 PM.