LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This 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

Reply
 
Search this Thread
Old 03-25-2011, 08:16 AM   #1
tootz
Member
 
Registered: Feb 2011
Posts: 47

Rep: Reputation: 1
avgstats.awk


hi, any1 have simple program which run avgstats.awk succuessfully? coz i cannot obtain any result when i run avgstats.awk. it shows

####################################################################
# Warning: no packets were received, simulation may be too short #
####################################################################


flowID: 0
flowType:
srcNode1: 0
srcNode2: 0
destNode: 0
startTime: 1000000
stopTime: 0
receivedPkts: 0
avgTput[kbps]: -0
avgDelay[ms]: 0
avgJitter1[ms]: 0
avgJitter2[ms]: 0
avgJitter3[ms]: 0
avgJitter4[ms]: 0

does any1 know why?
 
Old 03-26-2011, 04:11 AM   #2
corp769
Guru
 
Registered: Apr 2005
Posts: 5,807

Rep: Reputation: 996Reputation: 996Reputation: 996Reputation: 996Reputation: 996Reputation: 996Reputation: 996Reputation: 996
Hmm, where to start.... Can you give us the code to your program? By just posting output and no other information about what you are trying to exactly accomplish, we can not help you. And what is this avgstats.awk file you are talking about?
 
Old 03-26-2011, 04:40 AM   #3
unSpawn
Moderator
 
Registered: May 2001
Posts: 27,457
Blog Entries: 54

Rep: Reputation: 2897Reputation: 2897Reputation: 2897Reputation: 2897Reputation: 2897Reputation: 2897Reputation: 2897Reputation: 2897Reputation: 2897Reputation: 2897Reputation: 2897
Quote:
Originally Posted by tootz View Post
does any1 know why?
Doesn't it say "Warning: no packets were received, simulation may be too short"? BTW why start another thread on the same topic as you have one going here? In this case keeping things together is more efficient.


Quote:
Originally Posted by corp769 View Post
Hmm, where to start.... Can you give us the code to your program?
Probably in knudfl's post here: http://www.linuxquestions.org/questi...4/#post4299515 ?
 
Old 03-26-2011, 04:43 AM   #4
corp769
Guru
 
Registered: Apr 2005
Posts: 5,807

Rep: Reputation: 996Reputation: 996Reputation: 996Reputation: 996Reputation: 996Reputation: 996Reputation: 996Reputation: 996
Ahh look at that.... And that's why we always tell these new guys to keep everything in one thread..... Thanks for that man.
 
Old 03-26-2011, 05:46 AM   #5
David the H.
Bash Guru
 
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Debian sid + kde 3.5 & 4.4
Posts: 6,823

Rep: Reputation: 1948Reputation: 1948Reputation: 1948Reputation: 1948Reputation: 1948Reputation: 1948Reputation: 1948Reputation: 1948Reputation: 1948Reputation: 1948Reputation: 1948
And please use [code][/code] tags around your code, to preserve formatting and to improve readability. In this case it would keep those overly-long hash lines from forcing the page to side-scroll my browser window.
 
1 members found this post helpful.
Old 03-27-2011, 10:03 AM   #6
tootz
Member
 
Registered: Feb 2011
Posts: 47

Original Poster
Rep: Reputation: 1
sorry guys, i know i am a newbie, attached is my tcl, scenerio, trace files.
thanks alot guys.
Attached Files
File Type: txt trace.txt (3.0 KB, 30 views)
File Type: txt scenweiliang.txt (8.9 KB, 15 views)
File Type: txt movementweiliang.txt (57.1 KB, 18 views)

Last edited by tootz; 03-27-2011 at 10:13 AM.
 
Old 03-27-2011, 12:52 PM   #7
corp769
Guru
 
Registered: Apr 2005
Posts: 5,807

Rep: Reputation: 996Reputation: 996Reputation: 996Reputation: 996Reputation: 996Reputation: 996Reputation: 996Reputation: 996
Looks like you are running NS. You need to specify these kind of things in your post when describing your problem. I will wait for knudfl to look at this thread, he is the master with NS.
 
Old 04-02-2011, 08:25 AM   #8
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014.08, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,939

Rep: Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601
First : Edit post # 1 to use code tags !
Write [/code] at code end, and [code] at code start.

And do not write long words like : ###########################
It spoils the formatting : 1) Difficult to read on small monitors.
2) Difficult for all us, who don't use the smallest types in the browser.


'avgstats.awk' is not supposed to do anything with your file.tr .
Read #10 http://www.linuxquestions.org/questi...aph-869865/#10

Besides that, your code works perfect : 'ns trace.tcl' will create :
694demo.nam 694demo.tr

The program is probably too complex to use a single plot :
Probably to be sequenced into "many" plots like the thirteen files
<file>.eps in ns-allinone-2.34/ns-2.34/tcl/ex/wireless-scripts/ : runall.cmd.

..

Last edited by knudfl; 04-02-2011 at 08:55 AM.
 
1 members found this post helpful.
Old 04-08-2011, 09:18 AM   #9
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014.08, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,939

Rep: Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601
Some interesting information here : "instantThroughputStll.awk"

http://www.linuxquestions.org/questi...ations-873644/
 
1 members found this post helpful.
Old 05-04-2011, 11:44 AM   #10
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014.08, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,939

Rep: Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601
More files / hints, "awk scripts" :


1) http://mohit.ueuo.com/AWK_Scripts.html
>
droppackets.awk totalpacketssent.awk totalpacketsreceived.awk
p-d-f.awk instantJitter.awkcwnd.awk

http://mohittahiliani.blogspot.com/2...n-ns-2_06.html

2) http://www.linuxquestions.org/questi....php?p=4334166
 
1 members found this post helpful.
  


Reply

Tags
awk-ns2, ns2-awk


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
awk question on handling *.CSV "text fields" in awk jschiwal Programming 8 05-27-2010 06:23 AM
[SOLVED] awk: how can I assign value to a shell variable inside awk? quanba Programming 6 03-23-2010 02:18 AM
awk , I need help for awk, just a display function mcandy General 1 12-15-2008 12:21 PM
shell command using awk fields inside awk one71 Programming 6 06-26-2008 04:11 PM
Some comments on awk and awk scripts makyo Programming 4 03-02-2008 05:39 PM


All times are GMT -5. The time now is 05:36 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration