Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hello everyone!
I'm new in NS2, I installed ns2.35. when run code simulate handoff between wifi and wimax, I got some error:
Wrong Number of Arguments! No arguments in this topology
ns wifi_wimax.tcl seed gd_threshold shutdown
expected integer but got "(1)"
while executing
"exit (1)"
invoked from within
"if {$argc != 3} {
puts ""
puts "Wrong Number of Arguments! No arguments in this topology"
puts "ns wifi_wimax.tcl seed gd_threshold shutdown"
puts..."
(file "wifi_wimax.tcl" line 29)
Are there any missing tools? if right! please guide me!
thanks in advanced!
Hello everyone!
I'm new in NS2, I installed ns2.35. when run code simulate handoff between wifi and wimax, I got some error:
Wrong Number of Arguments! No arguments in this topology
ns wifi_wimax.tcl seed gd_threshold shutdown
expected integer but got "(1)"
while executing
"exit (1)"
invoked from within
"if {$argc != 3} {
puts ""
puts "Wrong Number of Arguments! No arguments in this topology"
puts "ns wifi_wimax.tcl seed gd_threshold shutdown"
puts..."
(file "wifi_wimax.tcl" line 29)
Are there any missing tools? if right! please guide me!thanks in advanced!
You need to read the documentation that came with the scripts/code you downloaded. It's plainly telling you that you have the wrong number of arguments...that is, it's needing 3 (and tells you that), and you're not GIVING it 3.
Give the script the correct arguments and it will run.
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511
Rep:
@designermp : Some information is missing :
1. The patch / the changes added to ns-2.35 . There are multiple wimax versions.
2. The OS you are using. Name, version, architecture, please.
.. This command will reply i686 or x86_64 : $ uname -m
The command for wifi_wimax.tcl is e.g. $ ns wifi_wimax.tcl 1 2 4
@knudfl
my OS version:ubuntu 12.4.5, X86-64. Ns2.35 version. when i command: $ ns wifi_wimax.tcl 1 2 4 Notification:
invalid command name "Agent/ND"
while executing
"Agent/ND set debug_ 1"
(file "wifi_wimax.tcl" line 40)
i follow some thread of you and i install MIH criteria tool + patch wimax ns2.35
@TBOne
Thank you! but i can't understand how i "giving 3" as you tell me!can you tell me more detail? please
Not sure how much more clear it needs to be. The script is asking for 3 arguments...so give it 3. knudfl gave you an example in post #3...did you not read/understand it?
But you can install the identical functioning ns-2.29-nist-mob-022707.tgz + pmip6-for-ns-2.29-nist.patch to ns-2.29.3 http://www.linuxquestions.org/questi...-4175539795/#2
And then you can run all NIST examples, and also the examples in NS-MIH-MULTI-CRITERIA.
The Wimax for NIST isn't working, AFAIK. EDIT. See post #15.
EDIT. The issues concerns a pre patch for ns-2.31 .
Wimax : Suggest wimax-awg → wimax-awg26_ns235.patch.gz .
I.e. you can have as many ns-allinone-2.x as you want, installed at the same time.
But do never add any *PATH text to .bashrc . Not required.
thanks knudfl for guiding me!
this mean:
I have to install a new OS CentOS 6.9 - i386 as your link: http://ftp.funet.fi/pub/mirrors/cent...86-LiveDVD.iso
then install the identical functioning ns-2.29-nist-mob-022707.tgz + pmip6-for-ns-2.29-nist.patch to ns-2.29.3, Am I right?
what verison ns2 should i install? is ns2.29.3 right?
Last edited by designermp; 04-21-2017 at 12:44 AM.
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511
Rep:
Re #8.
Yes. One choice only. CentOS 6.9 - i386.
If you insist in building the application yourself, it is ns-allinone-2.29.3.tar.gz .
This will do :
Install the package "nist-pmip6-ns_229-ubuntu12_i386", and no other ns2 is required.
The few files needed to run $ ns ($ ns229-nist-pmip6-el6) are included :
/usr/local/lib/nistmob/ns-allinone-2.29/{ lib/*/*, bin/tcsh8* }.
The examples are required : nist-examples-Oct2015.tar.gz
( Can be unpacked and can be run in any location in /home/[user name]/ ).
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.