RE: Problem/Issue importing MIB net-snmp

"Brazell, Nate (CTR)" <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
Thanks for your response Dave,

More comments below **

N
-----Original Message-----
From: Dave Shield [mailto:[email protected]] 
Sent: Wednesday, February 01, 2006 12:33 PM
To: Brazell, Nate (CTR)
Cc: [email protected]
Subject: Re: Problem/Issue importing MIB net-snmp

On Wed, 2006-02-01 at 11:50 -0500, Brazell, Nate (CTR) wrote:

> 1.  Is net-snmp able to use the FIBRE-CHANNEL-FE-MIB
>     or the FCMGMT-MIB?

What do you mean by "use" ?
**  I guess what I mean is can it query the objects in the MIB without
writing custom code.  Since this is a popular MIB it seems someone would
have done the code writing already.  <Cringing at the thought of writing
code>

If you've got an agent that you know implements these
MIBs, then the Net-SNMP tools should be able to recognise
the MIB object names, and retrieve the appropriate values
with no real changes.
**  Isn't snmpd the agent?  Could it be as easy as compiling snmpd with
a --with-module=xxx.  How do I know what MIB's snmpd implements?

If you want the Net-SNMP agent to *report* these values,
then this involves a significant amount of work.
**  Could you explain this a little more?  I am not a code writer but I
understand code writing if that makes any sense?


> 3.  I've read several posts of web sites where you can download
>     new MIBS and install them but does it always require a rebuild
>     of the net-snmp suite or custom code writing?

If you already have a suitable agent, then no.
If you need to *extend* the agent to support this new MIB, then yes.



> I then use the snmptranslate -m +FIBRE-CHANNEL-FE-MIB -IR fcFxPortName
> This returns:
>       FIBRE-CHANNEL-FE-MIB::fcFxPortName 

> (Not a OID as the FAQ for adding MIBS suggests) Is this correct?

The default output format has changed since the FAQ was written.
Try
    snmptranslate -m +FIBRE-CHANNEL-FE-MIB -IR -On fcFxPortName
or
    snmptranslate -m +FIBRE-CHANNEL-FE-MIB -IR -Of fcFxPortName

That should work OK.


**  And it did in fact work ok.  Thanks.  Baby steps huh?

> Also snmpwalk -v2c -c readonlystringhere -localhost fcFxPortName
> Returns
> 
>      FIBRE-CHANNEL-FE-MIB::fcFxPortName = No Such Object

Because the agent does not implement this object.
You'll need to write code for that.

** Thanks Dave.


Dave


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid3432&bid#0486&dat1642
_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.