LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 05-08-2010, 09:11 AM   #1
sarajevo
Member
 
Registered: Apr 2005
Distribution: Debian, OpenBSD,Fedora,RedHat
Posts: 228
Blog Entries: 1

Rep: Reputation: 31
Installing additional MIBs for specific HW od debian based SNMP server


Hi everybody,

I have debian Lenny as an server I would like for monitoring of some network components ( switches, printers, routers ... ) and at
/usr/share/snmp/mibs I have

/usr/share/snmp/mibs# ls -l
total 1844
-rw-r--r-- 1 root root 17455 2008-12-16 18:22 AGENTX-MIB.txt
-rw-r--r-- 1 root root 36576 2008-12-16 18:23 BGP4-MIB.txt
-rw-r--r-- 1 root root 36959 2008-12-16 18:23 BRIDGE-MIB.txt
....
....
ls -l | wc -l shows 66, what means 66 differen mibs.
snmp related packages I have installed are as :
dpkg -l | grep ii | grep snmp
ii libgsnmp0 0.2.0-2.1 an SNMP library implementation based on glib and gnet
ii libsnmp-base 5.4.1~dfsg-12 SNMP (Simple Network Management Protocol) MIBs and documentati
ii libsnmp-perl 5.4.1~dfsg-12 SNMP (Simple Network Management Protocol) Perl5 support
ii libsnmp15 5.4.1~dfsg-12 SNMP (Simple Network Management Protocol) library
ii snmp 5.4.1~dfsg-12 SNMP (Simple Network Management Protocol) applications
ii snmpd 5.4.1~dfsg-12 SNMP (Simple Network Management Protocol) agents


My question is, how I can install additional mibs ( for Cisco, Procurve, etc ) for other hw I could have ? What is procedure. I browsed debian package base and I could not find some more packages related to snmp that could supply more mibs.

Comments are more than welcome and thank you in advance,

Kind regards,

...

Last edited by sarajevo; 05-08-2010 at 09:16 AM.
 
Old 05-09-2010, 07:08 PM   #2
jlinkels
LQ Guru
 
Registered: Oct 2003
Location: Bonaire, Leeuwarden
Distribution: Debian /Jessie/Stretch/Sid, Linux Mint DE
Posts: 5,195

Rep: Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043
MIBs for additional hardware are usually supplied by your hardware vendor, not by the distro.

You can place them in /usr/share/snmp/mibs/ and then snmp will find them. In addition you can write into /etc/snmp/snmp.conf additional directories which should be searched for MIB files or you can explicitely add MIBs to be loaded whenever snmp is called like in the example below.
Code:
mibdirs /usr/share/snmp/mibs/
mibs THALES-SMI:THALES-ECOS2-MIB
Note however that you can always traverse down the SNMP tree by using snmpwalk, and a MIB is nothing else but a translation from numeric codes to text. You can even write your own MIB or not use one at all.

jlinkels
 
Old 05-10-2010, 07:02 AM   #3
sarajevo
Member
 
Registered: Apr 2005
Distribution: Debian, OpenBSD,Fedora,RedHat
Posts: 228

Original Poster
Blog Entries: 1

Rep: Reputation: 31
Quote:
Originally Posted by jlinkels View Post
MIBs for additional hardware are usually supplied by your hardware vendor, not by the distro.

You can place them in /usr/share/snmp/mibs/ and then snmp will find them. In addition you can write into /etc/snmp/snmp.conf additional directories which should be searched for MIB files or you can explicitely add MIBs to be loaded whenever snmp is called like in the example below.
Code:
mibdirs /usr/share/snmp/mibs/
mibs THALES-SMI:THALES-ECOS2-MIB
Note however that you can always traverse down the SNMP tree by using snmpwalk, and a MIB is nothing else but a translation from numeric codes to text. You can even write your own MIB or not use one at all.

jlinkels
Thank you for reply. That is exaclty how I understand it, I know that MIBs are provided by vendor and that is clear. I am only struggling once download MIB in .mib format how to push my debian machine to read and use it.
All MIBs I have found in internet are in .mib format, the ones delivered by debian are in .txt format...

Best regards,
 
Old 05-10-2010, 09:44 PM   #4
jlinkels
LQ Guru
 
Registered: Oct 2003
Location: Bonaire, Leeuwarden
Distribution: Debian /Jessie/Stretch/Sid, Linux Mint DE
Posts: 5,195

Rep: Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043
How does .mib look like? Human readable?

Debian should really read all those files in the mibs directory, but you can also explicitely specify as a parameter of your snmp command.

Test with snmptranslate.

There is also a debug option with snmp commands, with if set high enough, it will output all directories and mib files have been read. Forgot the exact parameter for debugging, but man snmpcmd (snmpcommand?) or man snmpget should tell you that.

jlinkels
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
HP Proliant and SNMP MIBS i_nomad Linux - Server 7 03-18-2009 09:34 AM
Installing MIBs for IPMonitor jeffg1 Linux - Server 0 09-04-2007 10:28 AM
Installing MIBS Faiza Linux - Networking 1 12-11-2006 11:27 PM
Installing and Configuring Debian-based distros Defenestrator Linux - Newbie 4 02-24-2005 03:52 PM
SNMP: compiling MIBS WiWa Linux - Networking 0 08-25-2003 07:15 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 05:12 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration