LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Closed Thread
  Search this Thread
Old 05-17-2012, 03:59 AM   #1
omega341991
Member
 
Registered: May 2012
Posts: 39

Rep: Reputation: Disabled
how to store the statistics of a tcpdump command to a file


the output of the tcp command is given below

/root/# tcpdump -X -nnvv -i wlan0 -c2 >filename.txt
tcpdump: WARNING: wlan0: no IPv4 address assigned
tcpdump: listening on wlan0, link-type IEEE802_11_RADIO (802.11 plus radiotap header), capture size 65535 bytes
13:10:22.588102 1.0 Mb/s 2412 MHz 11b -75dB signal antenna 1 0us Probe Request () [1.0 2.0 5.5 11.0 6.0 9.0 12.0 18.0 Mbit]
0x0000: 0000 0108 0204 0b16 0c12 1824 3204 3048 ...........$2.0H
0x0010: 606c 2d1a 3009 17ff ff00 0000 0000 0000 `l-.0...........
0x0020: 0000 0000 0000 0000 0000 0000 0000 ..............
13:10:22.682585 1.0 Mb/s 2412 MHz 11b -61dB signal antenna 1 336us Probe Request (mukund) [1.0* 2.0* 5.5* 11.0* Mbit]
0x0000: 0006 6d75 6b75 6e64 0104 8284 8b96 3208 ..mukund......2.
0x0010: 8c12 9824 b048 606c ...$.H`l
2 packets captured
2 packets received by filter
0 packets dropped by kernel


apart from the last 3 lines, all the rest are written to the file.
i want to write the last 3 lines also. so what shud i do?
pls reply
 
Old 05-17-2012, 04:03 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
Please post your thread in only one forum. Posting a single thread in the most relevant forum will make it easier for members to help you and will keep the discussion in one place. This thread is being closed because it is a duplicate.
 
  


Closed Thread


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
[SOLVED] how to store the statistics of a tcpdump command to a file omega341991 Linux - Newbie 4 05-17-2012 05:42 AM
use tcpdump command . pswen Linux - Networking 1 08-27-2010 08:32 AM
tcpdump command vikasgupta Linux - General 1 12-10-2009 04:02 AM
how to use tcpdump command jagdishpsp Linux - Newbie 4 10-15-2008 11:19 PM
tcpdump -w command doesn't write to file andykerouac Linux - Networking 2 03-03-2004 07:10 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 01:08 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