First time here? Check out the FAQ!

Ask Your Question
0

Export to text with tshark

asked May 21 '19

tantal gravatar image

updated May 21 '19

Hi guys, how can I export with tshark to text with all the Packet details expanded?

Prtscr of how I do it in Wireshark. http://ibb.co/k2Qp00q

Preview: (hide)

Comments

It looks like tshark can't read the disection:
Unknown - aborting dissection Extraneous Data

GSM A-I/F DTAP - Identity Response Protocol Discriminator: Mobility Management messages .... 0101 = Protocol discriminator: Mobility Management messages (0x05) 0000 .... = Skip Indicator: 0 10.. .... = Sequence number: 2 ..01 1001 = DTAP Mobility Management Message Type: Identity Response (0x19) Unknown - aborting dissection Extraneous Data

tantal gravatar imagetantal ( May 22 '19 )

Arrrrrgh, after upgrade the tshark output is identitcal.

tantal gravatar imagetantal ( May 22 '19 )

2 Answers

Sort by » oldest newest most voted
1

answered May 21 '19

grahamb gravatar image

From the tshark Man Page (and as output by tshark -h):

-V Cause TShark to print a view of the packet details.

There's quite a bit more about controlling output in the Man page.

Preview: (hide)
link

Comments

-V is not as detailed as export from wireshark. I read the MAN, but just cant find an answer.

tantal gravatar imagetantal ( May 21 '19 )

Arrrrrgh, after upgrade the tshark output is identitcal.

tantal gravatar imagetantal ( May 22 '19 )

Note that you will probably need to add two-pass processing, -2, to tshark to get absolutely identical output as Wireshark always does two-pass, but it's an extra option for tshark.

grahamb gravatar imagegrahamb ( May 22 '19 )
0

answered May 21 '19

Guy Harris gravatar image

Use

tshark -P -V -x -r {filename}
Preview: (hide)
link

Comments

Still not as detailed as export from wireshark. :(

tantal gravatar imagetantal ( May 22 '19 )

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: May 21 '19

Seen: 999 times

Last updated: May 21 '19