On 19/07/2013 5:47 AM, O'hara, Joseph (Contractor) wrote: > Hi net-snmp-coders, > I am having trouble compiling the NET-SNMP-EXTEND-MIB which I just > downloaded > from your website. I am using the latest version of the MB-Soft MIB > Browser with Compiler. > The indicated errors are here: > NsExtendOutput1Entry ::= SEQUENCE { > nsExtendOutput1Line DisplayString, > nsExtendOutputFull DisplayString, > nsExtendOutNumLines INTEGER, <----compiler says Item > "nsExtendOutNumLines" in sequence "NsExtendOutput1Entry" has > conflicting syntax specified > nsExtendResult INTEGER <---compiler says Item "nsExtendResult" in > sequence "NsExtendOutput1Entry" has conflicting syntax specified > } > I’m no expert in ASN.1 but I can’t find what the problem is. I even > looked in the imports > files to see if those names were defined there. nsExtendOutNumLinesand nsExtendResult are described here as INTEGER but are later defined as Integer32. Interestingly smilint doesn't pick this one up. It does pick up a number of objects defined as INTEGER when they should be Integer32
Diff after I cleaned it up. $ diff ./NET-SNMP-EXTEND-MIB.txt /usr/local/share/mibs/site/NET-SNMP-EXTEND-MIB.txt 39c39 < SYNTAX INTEGER --- > SYNTAX Integer32 115c115 < SYNTAX INTEGER --- > SYNTAX Integer32 214,215c214,215 < nsExtendOutNumLines INTEGER, < nsExtendResult INTEGER --- > nsExtendOutNumLines Integer32, > nsExtendResult Integer32 280c280 < SYNTAX INTEGER(1..1024) --- > SYNTAX Integer32(1..1024) which still leaves: NET-SNMP-EXTEND-MIB:144: warning: named number `run-on-read' must not include a hyphen in SMIv2 NET-SNMP-EXTEND-MIB:145: warning: named number `run-on-set' must not include a hyphen in SMIv2 NET-SNMP-EXTEND-MIB:146: warning: named number `run-command' must not include a hyphen in SMIv2 NET-SNMP-EXTEND-MIB:54: warning: index of row `nsExtendConfigEntry' can exceed OID size limit by 141 subidentifier(s) NET-SNMP-EXTEND-MIB:265: warning: index of row `nsExtendOutput2Entry' can exceed OID size limit by 142 subidentifier(s) NET-SNMP-EXTEND-MIB:301: warning: current group `nsExtendConfigGroup' is not referenced in this module NET-SNMP-EXTEND-MIB:312: warning: current group `nsExtendOutputGroup' is not referenced in this module NET-SNMP-EXTEND-MIB:10: warning: identifier `NOTIFICATION-TYPE' imported from module `SNMPv2-SMI' is never used NET-SNMP-EXTEND-MIB:13: warning: identifier `NOTIFICATION-GROUP' imported from module `SNMPv2-CONF' is never used -- There's no point in being grown up if you can't be childish sometimes. -- Dr. Who ------------------------------------------------------------------------------ See everything from the browser to the database with AppDynamics Get end-to-end visibility with application monitoring from AppDynamics Isolate bottlenecks and diagnose root cause in seconds. Start your free trial of AppDynamics Pro today! http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk _______________________________________________ Net-snmp-coders mailing list Net-snmp-coders@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/net-snmp-coders