LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise
User Name
Password
Linux - Enterprise This forum is for all items relating to using Linux in the Enterprise.

Notices


Reply
  Search this Thread
Old 10-13-2010, 04:13 PM   #1
larold
Member
 
Registered: Jan 2010
Posts: 42

Rep: Reputation: 15
Using net-snmp with custom MIB.


Here is what I am trying to do, and the problem I am having.

Blackberry Enterprise Server (BES) 5.0.2 was recently installed at our site. They asked me, the Linux and "monitoring" guy, to "monitor" it.

So I pulled down the MIB file from the Blackberry folks (They're called Resarch In Motion, FYI). Also, the SNMP server component of BES was enabled and configured by the Windows / Blackberry admins.

I can successfully use snmpget and snmpwalk to retrieve values from our BES server. Excellent.

The bad news is that I am not getting very useful descriptions of the OIDs being returned. Let me show you the difference in output when I do vs. when I don't use the -M and -m options:

Without vendor-specific MIB:
# snmpwalk -c COMMUNITY -v 2c SERVER 1.3.6.1.4.1.3530 -Of |head -4
.iso.org.dod.internet.private.enterprises.3530.5.1.0 = INTEGER: 5
.iso.org.dod.internet.private.enterprises.3530.5.2.0 = INTEGER: 0
.iso.org.dod.internet.private.enterprises.3530.5.3.0 = INTEGER: 16682
.iso.org.dod.internet.private.enterprises.3530.5.4.0 = INTEGER: 350608

WITH vendor-specific MIB:
# snmpwalk -M +./mibs -m +BLACKBERRYSERVERMIB-SMIV2 -c COMMUNITY -v 2c SERVER 1.3.6.1.4.1.3530 -Of |head -4
.iso.org.dod.internet.private.enterprises.rim.5.1.0 = INTEGER: 5
.iso.org.dod.internet.private.enterprises.rim.5.2.0 = INTEGER: 0
.iso.org.dod.internet.private.enterprises.rim.5.3.0 = INTEGER: 16682
.iso.org.dod.internet.private.enterprises.rim.5.4.0 = INTEGER: 350608

My question is this:

How do I get more of the numerical OID replaced with useful, descriptive text? I don't want to see 'rim.5.4.0', I want to see 'rim.something.text.moretext.evenmoretext'

I'm not super familiar with net-snmp so I'm not sure which of the following are valid:

- Learn about MIB formats in the RFC and manually dig through the 31,000+ entries to find things that could be useful
- Contact the vendor. Something is wrong with the MIB file
- Change the syntax of the command - it is not being invoked correctly to convert the entire OID to text.
- Something else I haven't thought of?

Thanks!!!
 
Old 10-14-2010, 06:00 AM   #2
sem007
Member
 
Registered: Nov 2006
Distribution: RHEL, CentOS, Debian Lenny, Ubuntu
Posts: 638

Rep: Reputation: 113Reputation: 113
Quote:
Originally Posted by larold View Post
My question is this:

How do I get more of the numerical OID replaced with useful, descriptive text? I don't want to see 'rim.5.4.0', I want to see 'rim.something.text.moretext.evenmoretext'

Thanks!!!
It is depend on how you MIB developed.You can see description(text) if defined in MIB.

i.e

Code:
snmpwalk -v2c -c public Test-HOST hrMemory -Of
.iso.org.dod.internet.mgmt.mib-2.host.hrStorage.hrMemorySize.0 = INTEGER: 2096584 KBytes
if you want to see numeric value
Code:
 snmpwalk -v2c -c public Test-HOST hrMemory -On
.1.3.6.1.2.1.25.2.2.0 = INTEGER: 2096584 KBytes
let us know if you have any doubts
Regards,
 
Old 10-14-2010, 10:23 AM   #3
larold
Member
 
Registered: Jan 2010
Posts: 42

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by sem007 View Post
It is depend on how you MIB developed.You can see description(text) if defined in MIB.

i.e

Code:
snmpwalk -v2c -c public Test-HOST hrMemory -Of
.iso.org.dod.internet.mgmt.mib-2.host.hrStorage.hrMemorySize.0 = INTEGER: 2096584 KBytes
if you want to see numeric value
Code:
 snmpwalk -v2c -c public Test-HOST hrMemory -On
.1.3.6.1.2.1.25.2.2.0 = INTEGER: 2096584 KBytes
let us know if you have any doubts
Regards,
As you can see, I already included a -Of flag, and a portion of the OID still appears as numeric. Does this indicate a likely deficiency in the MIB file?
 
Old 10-15-2010, 05:02 AM   #4
sem007
Member
 
Registered: Nov 2006
Distribution: RHEL, CentOS, Debian Lenny, Ubuntu
Posts: 638

Rep: Reputation: 113Reputation: 113
Quote:
Originally Posted by larold View Post
As you can see, I already included a -Of flag, and a portion of the OID still appears as numeric. Does this indicate a likely deficiency in the MIB file?
yes, it depend on MIBs.

In default snmpwalk command you can see result with numbers and text.
As i am trailing i am not able to paste examples.But you can verify snmpwalk result

Code:
snmpwalk -v2c -c community ip_address
Regards,
 
  


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
SNMP IF-MIB counters Ken Chapman Linux - Networking 11 02-19-2013 12:41 PM
MIB and SNMP allomeen Programming 2 01-17-2006 10:23 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
net snmp and host resource mib kumaran5 Linux - Networking 0 05-03-2004 01:33 AM

LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise

All times are GMT -5. The time now is 09:21 AM.

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