LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 02-01-2006, 01:00 PM   #1
marozsas
Senior Member
 
Registered: Dec 2005
Location: Campinas/SP - Brazil
Distribution: SuSE, RHEL, Fedora, Ubuntu
Posts: 1,499
Blog Entries: 2

Rep: Reputation: 68
How to use a MIB ?


Hi there !

I have a network printer that has SMNP support.
Doing a "snmpbulkwalk -c public -v 2c 192.168.155.226 ." return a lot of data, some in plain english (SNMPv2-MIB::snmpOutGetResponses.0) but the most interesting part is something obscure (SNMPv2-SMI::enterprises.11.2.3.9.4.2.1.1.2.21.0 = INTEGER: 100663296 ). For the last, I just figure out it is the installed memory on device, 96MBytes.

I got a MIB from HP's site, in plain ascii text. The comments on the header of file says:
-- This MIB file is the Master MIB file for the JetDirect SNMP implementation.
-- It includes all objects defined for both internal cards and external boxes.
--
-- This MIB successfully compiles with mosty 7.1. (as of 7/25/95)
--
-- Last Updated: April 24, 1998
--
-- HP OBJECT IDENTIFIER ::= { iso org(3) dod(6) internet(1) private(4) enterprises(1) 11 }

The question is: How can I use this file to translate those numeric identifiers in something I can understand, like "installedMemory" or whatever ?

any hints will be welcome,
 
Old 02-01-2006, 01:54 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
just place the file in your system mib directory, e.g. /usr/local/share/snmp/mibs then use the -m option to explicitly use them. there are a LOT of mibs and they aren't all loaded by default. you can use the MIBLIST environmental variable to set which additional ones are always loaded by the snmp tools. check the snmpwalk / snmpget / snmpcmd manpages for additional information.
 
Old 02-01-2006, 01:56 PM   #3
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
also you can use ~/.snmp/snmp.conf to save configuration details like this.
 
Old 02-02-2006, 05:04 AM   #4
marozsas
Senior Member
 
Registered: Dec 2005
Location: Campinas/SP - Brazil
Distribution: SuSE, RHEL, Fedora, Ubuntu
Posts: 1,499

Original Poster
Blog Entries: 2

Rep: Reputation: 68
Thanks guys !
all hints worked. I missed the snmpcmd man page where all common options are described. Sorry for that !

thanks a lot,
 
  


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
MIB and SNMP allomeen Programming 2 01-17-2006 10:23 AM
Why can't I get the MIB information from my Linux? davyzhang Programming 2 03-07-2005 01:44 AM
Retrieving SNMP MIB basu_arani Programming 0 02-09-2005 06:21 AM
snmp mib ody1 Programming 0 01-09-2005 09:31 AM
SNMP MIB question arffer Linux - Networking 2 10-30-2000 04:44 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 07:57 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