Thanks Magnus, It works now with the new MIB file. -Zimmer
On Sun, Apr 3, 2011 at 6:56 PM, Magnus Fromreide <[email protected]>wrote: > On Sun, 2011-04-03 at 08:33 -0400, Zimmer Hu wrote: > > Hi, > > > > I'm a beginner in netsnmp, and working on table right now. I get > > hindered in tabel loading. > > > > I have made a very simple table MIB file (see attachment). This MIB > > file has passed the compilation of unbrowse > > (http://www.unleashnetworks.com) so it is compliant with MIB standard > > in some way. > > Possibly, but not compliant enough. > > $ smilint /tmp/MyTable-MIB.my > /tmp/MyTable-MIB.my:7: syntax error, unexpected MODULE_IDENTITY, expecting > FROM or ',' > > This means you are missing a semicolon after the imports. > Adding that and rechecking gives > > $ smilint /tmp/MyTable-MIB.my > /tmp/MyTable-MIB.my:16: warning: date specification `201108130800Z' is in > the future > /tmp/MyTable-MIB.my:16: revision date after last update > /tmp/MyTable-MIB.my:19: revision for last update is missing > /tmp/MyTable-MIB.my:26: syntax error, unexpected LOWERCASE_IDENTIFIER, > expecting UPPERCASE_IDENTIFIER > /tmp/MyTable-MIB.my:30: illegal character `�' (0xe2) in quoted string > /tmp/MyTable-MIB.my:30: illegal character `�' (0x80) in quoted string > /tmp/MyTable-MIB.my:30: illegal character `�' (0xa6) in quoted string > /tmp/MyTable-MIB.my:31: warning: flushing recent incorrect declaration, see > previous error(s) > /tmp/MyTable-MIB.my:35: syntax error, unexpected LOWERCASE_IDENTIFIER > /tmp/MyTable-MIB.my:39: illegal character `�' (0xe2) in quoted string > /tmp/MyTable-MIB.my:39: illegal character `�' (0x80) in quoted string > /tmp/MyTable-MIB.my:39: illegal character `�' (0xa6) in quoted string > /tmp/MyTable-MIB.my:40: warning: flushing recent incorrect declaration, see > previous error(s) > /tmp/MyTable-MIB.my:41: syntax error, unexpected COLON_COLON_EQUAL > /tmp/MyTable-MIB.my:41: warning: flushing recent incorrect declaration, see > previous error(s) > /tmp/MyTable-MIB.my:44: syntax error, unexpected COLON_COLON_EQUAL, > expecting OBJECT > /tmp/MyTable-MIB.my:47: warning: flushing recent incorrect declaration, see > previous error(s) > /tmp/MyTable-MIB.my:60: warning: use Integer32 instead of INTEGER in SMIv2 > /tmp/MyTable-MIB.my:56: unknown object identifier label `myTableEntry' > /tmp/MyTable-MIB.my:58: warning: node `myStatus' must be contained in at > least one conformance group > /tmp/MyTable-MIB.my:4: warning: identifier `NOTIFICATION-TYPE' imported > from module `SNMPv2-SMI' is never used > > So I'd say you have some work to do. > > You can download smilint from > http://www.ibr.cs.tu-bs.de/projects/libsmi/download.html > > /MF > >
MYTABLE-MIB.my
Description: Binary data
------------------------------------------------------------------------------ Create and publish websites with WebMatrix Use the most popular FREE web apps or write code yourself; WebMatrix provides all the features you need to develop and publish your website. http://p.sf.net/sfu/ms-webmatrix-sf
_______________________________________________ Net-snmp-coders mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/net-snmp-coders
