Re: DLINK MIB

Alexandre Chapellon <[email protected]>
Newsgroups gmane.network.net-snmp.user
Organization horoa
Message-ID <[email protected]>
Le jeudi 07 avril 2011 à 16:51 +0100, Dave Shield a écrit :
> On 7 April 2011 14:45, Alexandre Chapellon <[email protected]> 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!
> 
Yes I avoid bothering people as long as I can. (not always true) :)

> 
> > 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.
ftp://ftp.dlink.com/Switch/dgs121016/Apps/dgs121016_MIB_200004.zip

> 
> > and stored this mibfile to ~/.snmp/mibs
> 
> Presumably this directory is  /home/alxgomz/.snmp/mibs   ?
> 
Indeed:
ls -l /home/alxgomz/.snmp/mibs
total 228
-rw-r--r-- 1 alxgomz alxgomz 229382 30 août   2010
DGS-1210-16_AX_2_00_004.mib

Is the .txt extension mandatory for this to work?

> 
> > 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.

I had an index file that was empty:
ls -l /home/alxgomz/.snmp/mibs/.index
-rw-r--r-- 1 alxgomz alxgomz 0  7 avril
16:24 /home/alxgomz/.snmp/mibs/.index

Deleted it and re-run the query but get the same result.
And the .index file re-appear empty.

You'll find the MIB file in the link above.

Alex

> 
> Dave

-- 
horoa: la voie est libre

------------------------------------------------------------------------------
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
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
signature.asc (application/pgp-signature, 490 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)

iQEcBAABAgAGBQJNneScAAoJEMuhwhtaANZfewwIAN9FSktat/ASvuD6Q9r4f1E4
rPmi8iySZlig5s8PCfX20VfxsXaYNmP0NxNhXeO9HYduTuOnQMWZSt/yFUU8cRZh
OefmLPBxIE9aKWlS5lQLEwBA8pzAdYVllTrfRpfoWScasgl8F65cMWOUyaLzuGW7
v1ibg+DuTUqskD65EDYfd/xldOY/8h9Aqf/cBgs3iRxnFV6tx5JjiKc1tGSV0arj
XyG+zwVJvNkBguo8UHw5E7GSglXIuHW4Hd6WAplpniHtG9vMO+8yOR5ix/Fof31P
PV57zg9DiKB4QS4NOIKdU7mw3ClDeccd9loM7+PzSN7MgcddFeStz11AkdQ2J7M=
=HSoF
-----END PGP SIGNATURE-----
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.