LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 01-06-2006, 05:38 PM   #1
allomeen
Member
 
Registered: Dec 2005
Posts: 83

Rep: Reputation: 15
MIB and SNMP


Hello,
Do you know how can I parse an MIB file for OID and their values ? I'm using SNMP++ with C++. I have an MIB file and i get the OID from SNMP agent, but i get numbers like (.1.2.3.4.5.6.0 = value). How can I get what is this number represent in my MIB file?. Do you have any recommendation for library to do this? Or can I use SNMP++ to do this?

Thanks
Alaa G
 
Old 01-07-2006, 12:42 AM   #2
paulsm4
LQ Guru
 
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
As I'm sure you know, the OIDs are the only thing that's stored in the SNMP agent's database, and the only thing that's transmitted in the SNMP datagrams. What the OID's actually "mean" (in human readable text) is stored elsewhere (e.g. a text file that you import nito your SNMP manager, so you can supplement the standard MIB with your site-specific OIDs).

I've worked with SNMP in the past (distant past ;-)), but I'm unfamiliar with SNMP++ per se.

I'm sure you've already Read The Fine Manual for SNMP++, and it didn't tell you.

If your SNMP++ library is a purchased product, definitely ask your vendor's tech support (that's what they're paid for ;-).

Otherwise, here's a package, an "SMI MIB compiler" you might be able to integrate in to your SNMP++ based application:

http://www.ibr.cs.tu-bs.de/projects/libsmi/
 
Old 01-17-2006, 10:23 AM   #3
allomeen
Member
 
Registered: Dec 2005
Posts: 83

Original Poster
Rep: Reputation: 15
Thanks for the help. I brute force it since I only need few oid, so I didn't have to go the MIB file

Alaa G
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
tkmib... snmp mib browser alaios Linux - Networking 0 08-29-2005 07:29 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 browser glock19 Linux - Networking 1 03-28-2003 03:26 AM
SNMP MIB question arffer Linux - Networking 2 10-30-2000 04:44 PM


All times are GMT -5. The time now is 10:22 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration