Le jeudi 07 avril 2011 à 16:51 +0100, Dave Shield a écrit : > 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! > 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
signature.asc
Description: This is a digitally signed message part
------------------------------------------------------------------------------ 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