LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-14-2014, 12:47 PM   #1
viswakarna
LQ Newbie
 
Registered: Sep 2014
Posts: 6

Rep: Reputation: Disabled
Regarding Installation of Mannasim in UBuntu 13.10 and patching with NS2


Hi all,
While installing the mannasim I did nt get any errors, but while running the following to commands

ns mannasim-rede-plana.tcl
ns mannasim-rede-hierarquica.tcl

I got error something like this/.....
num_nodes is set 12
warning: Please use -channel as shown in tcl/ex/wireless-mitf.tcl
INITIALIZE THE LIST xListHead
invalid command name "EnergyModel/Battery"
while executing
"EnergyModel/Battery create _o33 _o15 100.0 0.5 0.2"
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 $energyModel_ $node $initialEnergy_ $l1 $l2"
invoked from within
"if [info exists energyModel_] {
if [info exists level1_] {
set l1 $level1_
} else {
set l1 0.5
}
if [info exists level2_] {
set l2 $level2_
} else {..."
(procedure "_o3" line 115)
(Simulator create-wireless-node line 115)
invoked from within
"_o3 create-wireless-node"
("eval" body line 1)
invoked from within
"eval $self create-wireless-node $args"
(procedure "_o3" line 23)
(Simulator node line 23)
invoked from within
"$ns_ node"
(procedure "create_sink" line 8)
invoked from within
"create_sink"
(file "mannasim-rede-plana.tcl" line 350)
viswa@viswa-Vostro1510:~/Downloads$ ns mannasim-rede-hierarquica.tcl
num_nodes is set 14
warning: Please use -channel as shown in tcl/ex/wireless-mitf.tcl
INITIALIZE THE LIST xListHead
invalid command name "EnergyModel/Battery"
while executing
"EnergyModel/Battery create _o33 _o15 100.0 0.5 0.2"
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 $energyModel_ $node $initialEnergy_ $l1 $l2"
invoked from within
"if [info exists energyModel_] {
if [info exists level1_] {
set l1 $level1_
} else {
set l1 0.5
}
if [info exists level2_] {
set l2 $level2_
} else {..."
(procedure "_o3" line 115)
(Simulator create-wireless-node line 115)
invoked from within
"_o3 create-wireless-node"
("eval" body line 1)
invoked from within
"eval $self create-wireless-node $args"
(procedure "_o3" line 23)
(Simulator node line 23)
invoked from within
"$ns_ node"
(procedure "create_sink" line 8)
invoked from within
"create_sink"
(file "mannasim-rede-hierarquica.tcl" line 351)


Can anyone plzz help me regarding this?




Thanks in Advance.



Best Regards,
Viswavardhan
 
Old 09-14-2014, 01:05 PM   #2
viswakarna
LQ Newbie
 
Registered: Sep 2014
Posts: 6

Original Poster
Rep: Reputation: Disabled
Regarding Installation of Mannasim in UBuntu 13.10 and patching with NS2

Hi all,
While installing the mannasim I did nt get any errors, but while running the following two commands

ns mannasim-rede-plana.tcl
ns mannasim-rede-hierarquica.tcl

I got error something like this/.....


num_nodes is set 12
warning: Please use -channel as shown in tcl/ex/wireless-mitf.tcl
INITIALIZE THE LIST xListHead
invalid command name "EnergyModel/Battery"
while executing
"EnergyModel/Battery create _o33 _o15 100.0 0.5 0.2"
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 $energyModel_ $node $initialEnergy_ $l1 $l2"
invoked from within
"if [info exists energyModel_] {
if [info exists level1_] {
set l1 $level1_
} else {
set l1 0.5
}
if [info exists level2_] {
set l2 $level2_
} else {..."
(procedure "_o3" line 115)
(Simulator create-wireless-node line 115)
invoked from within
"_o3 create-wireless-node"
("eval" body line 1)
invoked from within
"eval $self create-wireless-node $args"
(procedure "_o3" line 23)
(Simulator node line 23)
invoked from within
"$ns_ node"
(procedure "create_sink" line 8)
invoked from within
"create_sink"
(file "mannasim-rede-plana.tcl" line 350)



viswa@viswa-Vostro1510:~/Downloads$ ns mannasim-rede-hierarquica.tcl

num_nodes is set 14
warning: Please use -channel as shown in tcl/ex/wireless-mitf.tcl
INITIALIZE THE LIST xListHead
invalid command name "EnergyModel/Battery"
while executing
"EnergyModel/Battery create _o33 _o15 100.0 0.5 0.2"
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 $energyModel_ $node $initialEnergy_ $l1 $l2"
invoked from within
"if [info exists energyModel_] {
if [info exists level1_] {
set l1 $level1_
} else {
set l1 0.5
}
if [info exists level2_] {
set l2 $level2_
} else {..."
(procedure "_o3" line 115)
(Simulator create-wireless-node line 115)
invoked from within
"_o3 create-wireless-node"
("eval" body line 1)
invoked from within
"eval $self create-wireless-node $args"
(procedure "_o3" line 23)
(Simulator node line 23)
invoked from within
"$ns_ node"
(procedure "create_sink" line 8)
invoked from within
"create_sink"
(file "mannasim-rede-hierarquica.tcl" line 351)


Can anyone plzz help me regarding this




Thanks in Advance.



Best Regards,
Viswavardhan
 
Old 09-14-2014, 03:12 PM   #3
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016 CentOS6.9 CentOS7.3 + 50+ other Linux OS, for test only.
Posts: 16,654

Rep: Reputation: 3280Reputation: 3280Reputation: 3280Reputation: 3280Reputation: 3280Reputation: 3280Reputation: 3280Reputation: 3280Reputation: 3280Reputation: 3280Reputation: 3280
@viswakarna : Welcome to LQ.
Quote:
invalid command name "EnergyModel/Battery"
See post #1 - #2 here http://www.linuxquestions.org/questi...-a-4175490296/
"" A failed build, or you are simply using the wrong executable 'ns'.
.... run the commands this way : $ ns-mannasim mannasim-rede-plana.tcl ""


-

Last edited by knudfl; 09-15-2014 at 12:16 AM.
 
Old 09-15-2014, 08:59 AM   #4
viswakarna
LQ Newbie
 
Registered: Sep 2014
Posts: 6

Original Poster
Rep: Reputation: Disabled
Unhappy Regarding Mannasim in NS

Dear knudfl,


I would like to thank you for the reply, but When I run the command ns-mannasim mannasim-rede-plana.tcl I got the following error:

viswa@viswa-Vostro1510:~/Downloads$ ns-mannasim mannasim-rede-plana.tcl
ns-mannasim: command not found




Best Regards,
Viswavardhan
 
Old 09-15-2014, 10:54 AM   #5
viswakarna
LQ Newbie
 
Registered: Sep 2014
Posts: 6

Original Poster
Rep: Reputation: Disabled
Smile Regarding Mannasim in NS

Dear knudfl,
I have successfully intalled and I ran the following commands to know whether mannasim is installed successfully.


Make a copy of that one : 1) $ cp ns ns235-mannasim
2) $ sudo cp ns235-mannasim /usr/local/bin/

Then please do :
a) $ ns235-mannasim mannasim-rede-plana.tcl
b) $ ns235-mannasim mannasim-rede-hierarquica.tcl

Thanks a lot.. Bcoz I have used ur commands from the link

http://www.linuxquestions.org/questi...5-a-4175504221

Now I would like to know how is it working? what is the difference between ns-mannasim mannasim-rede-plana.tcl and ns235-mannasim mannasim-rede-plana.tcl.

And in future do I need to use the command ns235-mannasim <file name.tcl> ?



Best Regards,
Viswavardhan

Last edited by viswakarna; 09-15-2014 at 10:57 AM.
 
Old 09-15-2014, 10:56 AM   #6
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016 CentOS6.9 CentOS7.3 + 50+ other Linux OS, for test only.
Posts: 16,654

Rep: Reputation: 3280Reputation: 3280Reputation: 3280Reputation: 3280Reputation: 3280Reputation: 3280Reputation: 3280Reputation: 3280Reputation: 3280Reputation: 3280Reputation: 3280
← #4 , @viswakarna.

Repeat Repeat : You will have to read post #2 here ...
http://www.linuxquestions.org/questi...-4175490296/#2
→ "" make a copy of the "mannasim ns" to 'ns-mannasim',
and do $ sudo cp ns-mannasim /usr/local/bin/
.. then run the commands this way: $ ns-mannasim mannasim-rede-plana.tcl ""

If it doesn't work you have a failed build.
Then please read some of the latest build instructions, e.g. #2 here:
http://www.linuxquestions.org/questi...-4175515923/#2
>>> $ git clone https://github.com/paultsr/ns-allinone-2.35

Mannasim info http://www.linuxquestions.org/questions/tags/mannasim/

-

Last edited by knudfl; 09-15-2014 at 10:58 AM.
 
1 members found this post helpful.
  


Reply

Tags
mannasim, ns2


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
mannasim ns2.34 thikathika Linux - Software 7 10-09-2014 06:35 AM
mannasim on ns2.35 Riaz Khan Linux - Newbie 15 09-02-2014 06:45 AM
installing mannasim in ns2-2.35 and ubuntu 12 hamta Linux - Software 4 03-05-2014 04:04 PM
[SOLVED] Install mannasim path in ns2.34 in ubuntu 10.04 Aska123 Linux - Software 1 02-16-2014 10:58 AM
want to install ns2.29.3 along with mannasim patch for ns2.29 jeevanpinto Linux - Software 4 10-02-2013 12:09 AM


All times are GMT -5. The time now is 02:46 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration