ANNOUNCEMENT: Live Wireshark University & Allegro Packets online APAC Wireshark Training Session
April 17th, 2024 | 14:30-16:00 SGT (UTC+8) | Online

Wireshark-users: Re: [Wireshark-users] Ubuntu Linux: How to load SNMP mibs?

From: "Peter Valdemar Mørch (Lists)" <4ux6as402@xxxxxxxxxxxxxx>
Date: Wed, 08 Jul 2009 10:40:59 +0200
Aarrrhhh, I wish I'd read my prior post through one more time. Sorry.

Peter Valdemar Mørch (Lists) wrote:
Building wireshark *with* SMI made it work. I therefore suggest that there is a bug in SNMP preferences:
, that currently say: "MIB settings can be changed in the Name Resolution preferences". If not built with SMI, I suggest that message should be: "MIB settings are not possible, because Wireshark was not built with SMI support"

The rest is ubuntu/debian specific:

For future reference: To build a local version of wireshark *with* SMI support on ubuntu intrepid, I did the following:

$ sudo apt-get install libsmi2-common libsmi2-dev libsmi2ldbl
$ sudo apt-get build-dep wireshark
$ mkdir wireshark
$ cd wireshark
$ apt-get source wireshark
$ cd wireshark-1.0.3

At this point, i had to bump the version of the package. Otherwise ubuntu would insist on upgrading my newly built package.

So I patched debian/changelog with (proper patch as attachement):

--- orig.changelog	2009-07-08 09:50:38.000000000 +0200
+++ changelog	2009-07-08 09:50:16.000000000 +0200
@@ -1,3 +1,9 @@
+wireshark (1.0.3-1ubuntu2.2.0.1) intrepid; urgency=low
+
+  * Built with libsmi
+
+ -- Peter Valdemar Mørch <peter@xxxxxxxxx>  Wed, 8 Jul 2009 09:29:40 +0100
+
 wireshark (1.0.3-1ubuntu2.2) intrepid-security; urgency=low

   * SECURITY UPDATE: packet-usb.c in the USB dissector in Wireshark 0.99.7

$ dpkg-buildpackage -rfakeroot -b -uc
$ cd ..
$ sudo dpkg -i tshark_1.0.3-1ubuntu2.2_i386.deb \
     wireshark-common_1.0.3-1ubuntu2.2_i386.deb \
     wireshark_1.0.3-1ubuntu2.2_i386.deb

Now, the record should be straight! :-)

Peter
--
Peter Valdemar Mørch
http://www.morch.com
--- orig.changelog	2009-07-08 09:50:38.000000000 +0200
+++ changelog	2009-07-08 09:50:16.000000000 +0200
@@ -1,3 +1,9 @@
+wireshark (1.0.3-1ubuntu2.2.0.1) intrepid; urgency=low
+
+  * Built with libsmi
+
+ -- Peter Valdemar Mørch <peter@xxxxxxxxx>  Wed, 8 Jul 2009 09:29:40 +0100
+
 wireshark (1.0.3-1ubuntu2.2) intrepid-security; urgency=low
 
   * SECURITY UPDATE: packet-usb.c in the USB dissector in Wireshark 0.99.7