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

Capturing SNMP Traces to MYSQL Database or CSV file at RunTime

0

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%


One Answer:

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.

answered 19 Feb '11, 01:43

izopizo's gravatar image

izopizo
2024714
accept rate: 0%

edited 19 Feb '11, 01:47