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 08:55:15 +0200
Jaap Keuter jaap.keuter-at-xs4all.nl |Lists| wrote:
Is your version of Wireshark build with libsmi support? You can check that on the about wireshark dialog.

Thanks for the reply.

Yup. That was it. About says: "Compiled ... without SMI"

Building wireshark *with* SMI made it work. I therefore suggest that there is a bug in SNMP preferences:

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
$ 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

(I did get it to work, and looking through my shell history, these are the relevant commands. It is possible I forgot to mention something, though)


Thanx,
Jaap

Sent from my iPhone

On 7 jul 2009, at 08:43, "Peter Valdemar Mørch (Lists)" <4ux6as402@xxxxxxxxxxxxx m> wrote:

I'd like to display SNMP information symbolically, and so I'll need to
load mibs.

But I haven't found where to do that in Wireshark 1.0.3 on Ubuntu
Intrepid (i386).

"Preferences -> Protocols -> SNMP" says: "MIB settings can be changed in
the Name Resolution preferences"

However

"Preferences -> Name Resolution" has no mention of SNMP or SMI at all.
(Even though numerous mailing list posts also suggest this is where to
configure it)

Does anybody know how I can get wireshark to show ifInOctets.34 instead
of .1.3.1<bla bla bla> by loading MIBs under ubuntu?

Peter

More information:

All my MIBs are in /usr/share/snmp/mibs (the standard place on
ubuntu/debian for SNMP MIBs). I've tried installing all these packages:

libsmi2-common    0.4.7+dfsg-0.1
libsmi2-dev    0.4.7+dfsg-0.1
libsmi2ldbl    0.4.7+dfsg-0.1
libsnmp-base    5.4.1~dfsg-7.1ubuntu6.1
libsnmp15    5.4.1~dfsg-7.1ubuntu6.1
snmp    5.4.1~dfsg-7.1ubuntu6.1

Which means I should have both NET-SNMP and libsmi installed.

This article suggests libsmi.
http://article.gmane.org/gmane.network.wireshark.user/4330/match=mibs
So I installed libsmi2-common libsmi2-dev and libsmi2ldbl. No joy.

This post also mentions "Preferences->Name Resolution->SMI (MIB and PIB) paths" and suggests putting mibs in C:\Program Files\Wireshark\snmp \mibs:
http://article.gmane.org/gmane.network.wireshark.user/6039/match=mibs
So I tried:
$ mkdir -p ~/.wireshark/snmp/mibs
$ cp /usr/share/snmp/mibs/* ~/.wireshark/snmp/mibs/
No joy. (Don't know where else to try)

--
Peter Valdemar Mørch
http://www.morch.com
___________________________________________________________________________
Sent via: Wireshark-users mailing list <wireshark-users@xxxxxxxxxxxxx Archives: http://www.wireshark.org/lists/wireshark-users
Unsubscribe: https://wireshark.org/mailman/options/wireshark-users
mailto:wireshark-users-request@xxxxxxxxxxxxx? subject=unsubscribe

___________________________________________________________________________
Sent via:    Wireshark-users mailing list <wireshark-users@xxxxxxxxxxxxx>
Archives:    http://www.wireshark.org/lists/wireshark-users
Unsubscribe: https://wireshark.org/mailman/options/wireshark-users
             mailto:wireshark-users-request@xxxxxxxxxxxxx?subject=unsubscribe


--
Peter Valdemar Mørch
http://www.morch.com