This is our old Q&A Site. Please post any new questions and answers at ask.wireshark.org.

Is it possible via Wireshark to capture SNMP traces to mysql database or any csv file at runtime?

asked 18 Feb '11, 01:51

piyush's gravatar image

piyush
1222
accept rate: 0%


There's nothing out of the box that will work as far as I know, but with a bit of scripting you can do just that.

You have a choice of perl,python or lua For perl you'd have to parse output of tshark either via pdml or text directly

Python and lua allow you to write extensions/plugins in wireshark, give you access to filters and dissectors which is pretty cool.

My personal preference would be lua as it's been in wireshark longer and there are more examples out there.

Checkout "Dump VoIP calls into separate files" on wireshark wiki Lua Examples In this example you can see how SIP call records are being dumped into MySQL database. That should get you started.

permanent link

answered 19 Feb '11, 01:43

izopizo's gravatar image

izopizo
2024714
accept rate: 0%

edited 19 Feb '11, 01:47

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×1,620
×43
×40
×12

question asked: 18 Feb '11, 01:51

question was seen: 5,602 times

last updated: 19 Feb '11, 01:47

p​o​w​e​r​e​d by O​S​Q​A