LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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 03-01-2019, 04:40 AM   #16
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641

Re #16.

Location of examples : Anywhere in /home/name/.
E.g. /home/name/ns2/mobiwan/mobiwan-ex-1/

The simulation command is ...
Code:
$ cd ns2/mobiwan/mobiwan-ex-1/mobiwan/ex/ && ns233-mobiwan-el6 2-Basic-Mobile-IPv6-example.tcl
I.e. if your current location isn't "mobiwan-ex-1/mobiwan/ex/", the message is :
Quote:
couldn't read file "2-Basic-Mobile-IPv6-example.tcl": no such file or directory
If any doubt about your current location, please do
Code:
$ pwd
 
1 members found this post helpful.
Old 03-01-2019, 07:59 AM   #17
M.Aman
LQ Newbie
 
Registered: Feb 2019
Posts: 23

Original Poster
Rep: Reputation: Disabled
Thanks knudfl. I successfully ran the simulation. It generated mip2.nam 5MB and mip2.tr 2.8MB. Many Thanks for all your help and guidance.
 
Old 03-01-2019, 08:58 AM   #18
M.Aman
LQ Newbie
 
Registered: Feb 2019
Posts: 23

Original Poster
Rep: Reputation: Disabled
But when i try to run nam, it doesn't open the simulator. I get the following:

zayan@localhost ex]$ nam
nam:
[code omitted because of length]
: no event type or button # or keysym
while executing
"bind Listbox <MouseWheel> {
%W yview scroll [expr {- (%D / 120) * 4}] units
}"
invoked from within
"if {[tk windowingsystem] eq "classic" || [tk windowingsystem] eq "aqua"} {
bind Listbox <MouseWheel> {
%W yview scroll [expr {- (%D)}] units
}
bind Li..."
[zayan@localhost ex]$

What does this mean?
 
Old 03-01-2019, 09:28 AM   #19
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Re #19.

First : Delete the corrupt 'nam', nam-1.1x/, and entries to .bashrc (if any.)

CentOS 7 : Download 'nam-1.15-1.SL7.x86_64.rpm'
https://www.linuxquestions.org/quest...-4175524760/#2

Install, as root
Code:
yum install Downloads/nam-1.15-1.SL7.x86_64.rpm
 
2 members found this post helpful.
Old 03-01-2019, 09:50 AM   #20
M.Aman
LQ Newbie
 
Registered: Feb 2019
Posts: 23

Original Poster
Rep: Reputation: Disabled
Thankyou Knudfl. Installed nam 1.15 successfully. NAM generated successfully.
 
Old 03-01-2019, 10:16 AM   #21
M.Aman
LQ Newbie
 
Registered: Feb 2019
Posts: 23

Original Poster
Rep: Reputation: Disabled
Many Thanks.

Last edited by M.Aman; 03-01-2019 at 10:57 AM.
 
Old 03-01-2019, 11:27 AM   #22
M.Aman
LQ Newbie
 
Registered: Feb 2019
Posts: 23

Original Poster
Rep: Reputation: Disabled
I have downloaded gt-itm.tar.gz following the link in the thread https://www.linuxquestions.org/quest...ml#post5460640. Kindly guide me how to install it on centos 7.
 
Old 03-01-2019, 03:58 PM   #23
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Re #23.

http://www.isi.edu/nsnam/ns/ns-topogen.html → time stamp = 08 Dec 2001
→ ancient version.

Please use ns-allinone-2.35_gcc5.tar.gz (With gt-itm from ns-allinone-2.36)
https://drive.google.com/file/d/0B7S...ew?usp=sharing = 2017 update.

Depends on ctangle, sgb/libgb.a , but libgb.a can fail to build.

Code:
The build is
tar xvf ns-allinone-2.35_gcc5.tar.gz
cd ns-allinone-2.35/
./install
If you are missing gt-itm/bin/{edriver, itm, sgb2alt, sgb2comns, sgb2hierns, sgb2ns},
you can get my result from CentOS 7.

Other gt-itm info https://stackoverflow.com/questions/...corruption-top → my answer, and comments.

-
 
Old 03-02-2019, 01:42 AM   #24
M.Aman
LQ Newbie
 
Registered: Feb 2019
Posts: 23

Original Poster
Rep: Reputation: Disabled
Thanks knudfl. I just checked, ns2.33 already has the gt-itm folder.

Last edited by M.Aman; 03-02-2019 at 02:44 AM.
 
Old 03-02-2019, 08:46 AM   #25
M.Aman
LQ Newbie
 
Registered: Feb 2019
Posts: 23

Original Poster
Rep: Reputation: Disabled
What version of extended NAM will be compatible with ns2.33 on centos 7? Will it be a good idea to use extended nam instead of the traditional nam?

Last edited by M.Aman; 03-02-2019 at 09:02 AM.
 
Old 03-02-2019, 09:44 AM   #26
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Re #26.

Nam or 'ext-nam' can be used independently of ns2. The ns2 version doesn't matter.

Once there was a version of 'ext-nam' usable with old OSīs.
https://www.linuxquestions.org/quest...-4175436274/#2

I have the http://www.grid.unina.it/grid/Extend...oad/ext-nam.gz version available.
Seems it's still works. Anyway with a simple trace file. Animation only ! ( PCLinuxOS 2019.)
  • Depends on the year 2006 libstdc++-libc6.2-2.so.3 :
  • /usr/lib/libstdc++-libc6.2-2.so.3 -> libstdc++-3-libc6.2-2-2.10.0.so

-

Last edited by knudfl; 03-02-2019 at 09:48 AM.
 
Old 03-03-2019, 11:48 PM   #27
M.Aman
LQ Newbie
 
Registered: Feb 2019
Posts: 23

Original Poster
Rep: Reputation: Disabled
Thanks Knudfl. What is the command for using xgraph? I tried opening an out.tr file generated from ns-simple-trace.tcl with xgraph. I gave the following command at the terminal,

exec xgraph out.tr -geometry 800x800

But instead of generating an xgraph it shows some errors and within second exits the terminal. Can you guide me here.
Attached Thumbnails
Click image for larger version

Name:	Screenshot from 2019-03-04 10-40-35.png
Views:	12
Size:	76.3 KB
ID:	30014  
 
Old 03-04-2019, 06:35 AM   #28
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Re #28.

Please read xgraph-12.2/examples/, to know the Xgraph file syntax.

Xgraph examples : xgraph_ns2-files-tcl_01.18.tar.gz
https://drive.google.com/file/d/1wa9...ew?usp=sharing

HOWTO : "VIII. Creating Output Files for Xgraph"
http://www.isi.edu/nsnam/ns/tutorial/nsscript4.html
Index http://www.isi.edu/nsnam/ns/tutorial/nsindex.html

-
 
Old 03-04-2019, 08:33 AM   #29
M.Aman
LQ Newbie
 
Registered: Feb 2019
Posts: 23

Original Poster
Rep: Reputation: Disabled
Thankyou Knudfl.
 
  


Reply

Tags
mobiwan, ns2



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
mobiwan patch download link for ns2.33 M.Aman Linux - Newbie 3 03-01-2019 10:28 AM
Mobiwan patch file in NS-2.31 for Ubuntu 12.04 hohweisiang Linux - Newbie 19 05-06-2015 12:21 PM
mobiwan patch for ns2.35 engr.fahad Linux - Wireless Networking 3 04-02-2015 06:48 PM
Mobiwan for NS2.29 yotta15 Linux - Newbie 1 07-28-2012 05:18 AM
Mobiwan for Ns2.33 bsyew Linux - Newbie 37 01-22-2012 05:16 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:00 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
Open Source Consulting | Domain Registration