LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Regarding Installation of Mannasim in UBuntu 13.10 and patching with NS2 (https://www.linuxquestions.org/questions/linux-newbie-8/regarding-installation-of-mannasim-in-ubuntu-13-10-and-patching-with-ns2-4175518564/)

viswakarna 09-14-2014 12:47 PM

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

viswakarna 09-14-2014 01:05 PM

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

knudfl 09-14-2014 03:12 PM

@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 ""


-

viswakarna 09-15-2014 08:59 AM

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

viswakarna 09-15-2014 10:54 AM

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

knudfl 09-15-2014 10:56 AM

← #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/

-


All times are GMT -5. The time now is 08:25 AM.