Re: DLINK MIB

Dave Shield <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
On 7 April 2011 17:21, Alexandre Chapellon <[email protected]> wrote:
>> > 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)

> ftp://ftp.dlink.com/Switch/dgs121016/Apps/dgs121016_MIB_200004.zip


OK - I've found three sets of problem with this MIB file,
which means that the Net-SNMP library fails to parse it.

Firstly, the name of the MIB module contains an underscore character.
This is not allowed, and confuses the library parser.
    I'd suggest that you change this to be   DGS-1210-16-AX

Secondly,  the comment block at the top of the file is topped and tailed
with lines of the form:
          --------------------------
          -- -------- Revision ------

          -- -------- Revision End ------
          --------------------------

The developers have made the mistake of assuming that SNMP
uses the Java-style comment syntax    -   i.e. two hyphens introduces
a comment that runs to the end of the line.
   This is wrong.

The simplest fix is to change all the hyphens (except the first two)
to be the '=' character.    This still serves to delimit this block, but
doesn't rely on getting the correct number of hyphens in the line!

   (The Net-SNMP library is meant to accept a flag '-Pc' to use the
Java-style comment behaviour instead, but that's currently triggering
a crash for me!)

The third problem is that there are a number of enumeration labels
that contain an underscore character   (the objects aclProfileType
autoSurveillanceVlanOUIComponentType, and aclL3RuleTcpXxxBit)
Again, this is not allowed.
   Either change the underscore to a hyphen, or use the -Pu option
(which *does* work).


There are numerous other problems with this MIB file, as reported
by 'smilint',  but these are the ones that confuse the Net-SNMP
MIB parser.


I'm attaching a revised version of the MIB file which seems to work
with out parser.

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
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
DGS-1210-16_AX_2_00_004.mib.Works (application/octet-stream, 224 KB) - not displayed
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.