On 7 April 2011 14:45, Alexandre Chapellon <a.chapel...@horoa.net> wrote:
> I guess this question has been asked thousands of times...
> How to add a mib to the net-snmp clients?

Yes - this is a common question, and is covered in the FAQ entry
   "How do I add a MIB to the clients?"

However, looking at the rest of your post, you seem to be doing
the right things.  So it ought to be working!


> I downloaded the MIB for DGS-1210-16 switches from the DLINK website
> (got a file named DGS-1210-16_AX_2_00_004.mib)

Where did you find this file?
I've had a quick look, and can't immediately locate it.


> and stored this mibfile to ~/.snmp/mibs

Presumably this directory is  /home/alxgomz/.snmp/mibs   ?


> I also addedthe following line to ~/.snmp/snmp.conf:
> mibs +DGS-1210-16_AX
>
> the string "DGS-1210-16_AX" being taken from the begining of the mib
> file (after comments):
>        DGS-1210-16_AX DEFINITIONS ::= BEGIN

That looks right, yes.



> when trying the walk the MIB....
> I only get numeric OIDs and the following message:
>
> MIB search
> path: 
> /home/alxgomz/.snmp/mibs:/usr/share/mibs/site:/usr/share/snmp/mibs:/usr/share/mibs/iana:/usr/share/mibs/ietf:/usr/share/mibs/netsnmp
> Cannot find module (DGS-1210-16_AX): At line 1 in (none)

That certainly looks as if the tools are trying to do the right thing.

The only thing that springs to mind is if there's a "old" index file
for your personal mibs directory,  which isn't getting updated.
Try deleting the file

    /home/alxgomz/.snmp/mibs/.index

               and re-run the query.

If that doesn't work, please post the MIB file, so that I can try
to reproduce the problem.

Dave

------------------------------------------------------------------------------
Xperia(TM) PLAY
It's a major breakthrough. An authentic gaming
smartphone on the nation's most reliable network.
And it wants your games.
http://p.sf.net/sfu/verizon-sfdev
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

Reply via email to