mib file configuration issue
I am trying to clean up a 3rd party MIB file so that it compiles correctly. The only error I am now getting is: Did not find 'DisplayString' in module RFC1213-MIB (/usr/share/snmp/mibs/mib.txt.002) All the DisplayString settings *appear* correct to me, but as a newbie there is obviously something I am missing. Would someone please illuminate my dull brain please? The RFC1213-MIB block in the mib.txt.002 is ~ 2600 lines long, so here is a grep -n DisplayString mib.txt.002 output for that block: 4453: SYNTAX DisplayString (SIZE (0..255)) 4495: SYNTAX DisplayString (SIZE (0..255)) 4505: SYNTAX DisplayString (SIZE (0..255)) 4517: SYNTAX DisplayString (SIZE (0..255)) 4605: DisplayString, 4664: SYNTAX DisplayString (SIZE (0..255)) And line numbers surrounding 4605 to giver better context. 4600 IfEntry ::= 4601 SEQUENCE { 4602 ifIndex 4603 INTEGER, 4604 ifDescr 4605 DisplayString, 4606 ifType 4607 INTEGER, 4608 ifMtu 4609 INTEGER, Pete Martz Comcast Cable NE&TO Security Response Center: (877) 249-7306 Desk: (856) 675-5145 Cell: (856) 651-8497 Fax: (856) 638-0216 Who is John Galt? 2+2=4! -- Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev___ 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
Re: mib file configuration issue
On Fri, Mar 19, 2010 at 10:28 AM, Martz, Peter < peter_ma...@cable.comcast.com> wrote: > I am trying to clean up a 3rd party MIB file so that it compiles > correctly. > > The only error I am now getting is: > > > > Did not find 'DisplayString' in module RFC1213-MIB > (/usr/share/snmp/mibs/mib.txt.002) > > > > All the DisplayString settings **appear** correct to me, but as a newbie > there is obviously something I am missing. > > Would someone please illuminate my dull brain please? > Your 3rd party MIB file should have the statement: IMPORTS ... DisplayString FROM RFC1213-MIB --- ; And of course, your MIB compiler should be able to find the file that contains 'RFC1213-MIB' -- Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev___ 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
RE: mib file configuration issue
Made the addition as suggested: .. RFC1213-MIB DEFINITIONS ::= BEGIN IMPORTS mgmt, NetworkAddress, IpAddress, Counter, Gauge, TimeTicks FROM RFC1155-SMI DisplayString FROM RFC1213-MIB OBJECT-TYPE FROM RFC-1212; -- This MIB module uses the extended OBJECT-TYPE macro as -- defined in [14]; -- MIB-II (same prefix as MIB-I) .. "Doubled the error" - so not I get: snmpd[21517]: Did not find 'DisplayString' in module RFC1213-MIB (/usr/share/snmp/mibs/mib.txt.002) snmpd[21517]: Did not find 'DisplayString' in module RFC1213-MIB (/usr/share/snmp/mibs/mib.txt.002) Does that mean the issue is in the RFC1213-MIB.txt file (it is accessible) or am I still not defining something correctly? From: Fulko Hew [mailto:fulko@gmail.com] Sent: Friday, March 19, 2010 10:43 AM To: Martz, Peter Cc: net-snmp-users@lists.sourceforge.net Subject: Re: mib file configuration issue On Fri, Mar 19, 2010 at 10:28 AM, Martz, Peter wrote: I am trying to clean up a 3rd party MIB file so that it compiles correctly. The only error I am now getting is: Did not find 'DisplayString' in module RFC1213-MIB (/usr/share/snmp/mibs/mib.txt.002) All the DisplayString settings *appear* correct to me, but as a newbie there is obviously something I am missing. Would someone please illuminate my dull brain please? Your 3rd party MIB file should have the statement: IMPORTS ... DisplayString FROM RFC1213-MIB --- ; And of course, your MIB compiler should be able to find the file that contains 'RFC1213-MIB' -- Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev___ 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
Re: mib file configuration issue
I would guess that you do not have a copy of RFC1213-MIB.txt in /usr/share/snmp/mibs or your MIB path for some reason does not include /usr/share/snmp/mibs. - Max On Fri, Mar 19, 2010 at 10:51 AM, Martz, Peter wrote: > Made the addition as suggested: > > > > …… > > > > RFC1213-MIB DEFINITIONS ::= BEGIN > > > > IMPORTS > > mgmt, NetworkAddress, IpAddress, Counter, Gauge, > > TimeTicks > > FROM RFC1155-SMI > > DisplayString FROM RFC1213-MIB > > OBJECT-TYPE > > FROM RFC-1212; > > > > -- This MIB module uses the extended OBJECT-TYPE macro as > > -- defined in [14]; > > > > -- MIB-II (same prefix as MIB-I) > > > > …… > > > > “Doubled the error” – so not I get: > > > > snmpd[21517]: Did not find 'DisplayString' in module RFC1213-MIB > (/usr/share/snmp/mibs/mib.txt.002) > > snmpd[21517]: Did not find 'DisplayString' in module RFC1213-MIB > (/usr/share/snmp/mibs/mib.txt.002) > > > > Does that mean the issue is in the RFC1213-MIB.txt file (it is accessible) > or am I still not defining something correctly? > > > > > > From: Fulko Hew [mailto:fulko@gmail.com] > Sent: Friday, March 19, 2010 10:43 AM > To: Martz, Peter > Cc: net-snmp-users@lists.sourceforge.net > Subject: Re: mib file configuration issue > > > > > > On Fri, Mar 19, 2010 at 10:28 AM, Martz, Peter > wrote: > > I am trying to clean up a 3rd party MIB file so that it compiles correctly. > > The only error I am now getting is: > > > > Did not find 'DisplayString' in module RFC1213-MIB > (/usr/share/snmp/mibs/mib.txt.002) > > > > All the DisplayString settings *appear* correct to me, but as a newbie there > is obviously something I am missing. > > Would someone please illuminate my dull brain please? > > Your 3rd party MIB file should have the statement: > > IMPORTS > > ... > > DisplayString FROM RFC1213-MIB > > > > > > --- > > ; > > And of course, your MIB compiler should be able to find the file that > contains 'RFC1213-MIB' > > > > -- > Download Intel® Parallel Studio Eval > Try the new software tools for yourself. Speed compiling, find bugs > proactively, and fine-tune applications for parallel performance. > See why Intel Parallel Studio got high marks during beta. > http://p.sf.net/sfu/intel-sw-dev > ___ > 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 > > -- Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ 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
RE: mib file configuration issue
That is the crazy part is that I do have RFC1213-MIB.txt in /usr/share/snmp/mibs. In /usr/share/snmp/mibs/.index there is the entry: RFC1213-MIB RFC1213-MIB.txt > -Original Message- > From: max.schub...@gmail.com [mailto:max.schub...@gmail.com] On Behalf Of > Max > Sent: Friday, March 19, 2010 11:04 AM > To: Martz, Peter > Cc: net-snmp-users@lists.sourceforge.net > Subject: Re: mib file configuration issue > > I would guess that you do not have a copy of RFC1213-MIB.txt in > /usr/share/snmp/mibs or your MIB path for some reason does not include > /usr/share/snmp/mibs. > > - Max > > On Fri, Mar 19, 2010 at 10:51 AM, Martz, Peter > wrote: > > Made the addition as suggested: > > > > > > > > .. > > > > > > > > RFC1213-MIB DEFINITIONS ::= BEGIN > > > > > > > > IMPORTS > > > > mgmt, NetworkAddress, IpAddress, Counter, Gauge, > > > > TimeTicks > > > > FROM RFC1155-SMI > > > > DisplayString FROM RFC1213-MIB > > > > OBJECT-TYPE > > > > FROM RFC-1212; > > > > > > > > -- This MIB module uses the extended OBJECT-TYPE macro as > > > > -- defined in [14]; > > > > > > > > -- MIB-II (same prefix as MIB-I) > > > > > > > > .. > > > > > > > > "Doubled the error" - so not I get: > > > > > > > > snmpd[21517]: Did not find 'DisplayString' in module RFC1213-MIB > > (/usr/share/snmp/mibs/mib.txt.002) > > > > snmpd[21517]: Did not find 'DisplayString' in module RFC1213-MIB > > (/usr/share/snmp/mibs/mib.txt.002) > > > > > > > > Does that mean the issue is in the RFC1213-MIB.txt file (it is accessible) > > or am I still not defining something correctly? > > > > > > > > > > > > From: Fulko Hew [mailto:fulko@gmail.com] > > Sent: Friday, March 19, 2010 10:43 AM > > To: Martz, Peter > > Cc: net-snmp-users@lists.sourceforge.net > > Subject: Re: mib file configuration issue > > > > > > > > > > > > On Fri, Mar 19, 2010 at 10:28 AM, Martz, Peter > > wrote: > > > > I am trying to clean up a 3rd party MIB file so that it compiles correctly. > > > > The only error I am now getting is: > > > > > > > > Did not find 'DisplayString' in module RFC1213-MIB > > (/usr/share/snmp/mibs/mib.txt.002) > > > > > > > > All the DisplayString settings *appear* correct to me, but as a newbie there > > is obviously something I am missing. > > > > Would someone please illuminate my dull brain please? > > > > Your 3rd party MIB file should have the statement: > > > > IMPORTS > > > > ... > > > > DisplayString FROM RFC1213-MIB > > > > > > > > > > > > --- > > > > ; > > > > And of course, your MIB compiler should be able to find the file that > > contains 'RFC1213-MIB' > > > > > > > > -- > > Download Intel® Parallel Studio Eval > > Try the new software tools for yourself. Speed compiling, find bugs > > proactively, and fine-tune applications for parallel performance. > > See why Intel Parallel Studio got high marks during beta. > > http://p.sf.net/sfu/intel-sw-dev > > ___ > > 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 > > > > -- Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ 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
Re: mib file configuration issue
On Fri, Mar 19, 2010 at 10:51 AM, Martz, Peter < peter_ma...@cable.comcast.com> wrote: > Made the addition as suggested: > > …… > > RFC1213-MIB DEFINITIONS ::= BEGIN > > IMPORTS > mgmt, NetworkAddress, IpAddress, Counter, Gauge, > TimeTicks > FROM RFC1155-SMI > DisplayString FROM RFC1213-MIB > OBJECT-TYPE > FROM RFC-1212; > ... snip ... No. I said add the import to your 3rd party MIB. What you show above was that you added it to RFC1213 ('RFC1213-MIB DEFFINITIONS ::= BEGIN' gives that away) (Turning it into sort of an infinite include loop.) what you should have are 2 files: Your '3rd party' file that looks like this: THIRD-PARTY-MIB DEFINITIONS ::= BEGIN ... IMPORTS DisplayString FROM RFC1213-MIB; ... myvar OBJECT-TYPE SYNTAX DisplayString ... And you also have a file for rfc1213 (which actually does contain): RFC1213-MIB DEFINITIONS ::= BEGIN ... DisplayString ::= OCTET STRING -- This data type is used to model textual information taken -- from the NVT ASCII character set. By convention, objects -- with this syntax are declared as having -- -- SIZE (0..255) ... -- Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev___ 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
RE: mib file configuration issue
Actually, I did add it to the 3rd party vendor file (my snipit). Yes I do have 2 files for this. It looks like the 3rd party copied parts of other files (RFC1213 and others) - which I can kinda understand (long story). But this is the only error I get with the 3rd party vendor file, which is what I find strange. From: Fulko Hew [mailto:fulko@gmail.com] Sent: Friday, March 19, 2010 12:06 PM To: Martz, Peter Cc: net-snmp-users@lists.sourceforge.net Subject: Re: mib file configuration issue On Fri, Mar 19, 2010 at 10:51 AM, Martz, Peter wrote: Made the addition as suggested: .. RFC1213-MIB DEFINITIONS ::= BEGIN IMPORTS mgmt, NetworkAddress, IpAddress, Counter, Gauge, TimeTicks FROM RFC1155-SMI DisplayString FROM RFC1213-MIB OBJECT-TYPE FROM RFC-1212; ... snip ... No. I said add the import to your 3rd party MIB. What you show above was that you added it to RFC1213 ('RFC1213-MIB DEFFINITIONS ::= BEGIN' gives that away) (Turning it into sort of an infinite include loop.) what you should have are 2 files: Your '3rd party' file that looks like this: THIRD-PARTY-MIB DEFINITIONS ::= BEGIN ... IMPORTS DisplayString FROM RFC1213-MIB; ... myvar OBJECT-TYPE SYNTAX DisplayString ... And you also have a file for rfc1213 (which actually does contain): RFC1213-MIB DEFINITIONS ::= BEGIN ... DisplayString ::= OCTET STRING -- This data type is used to model textual information taken -- from the NVT ASCII character set. By convention, objects -- with this syntax are declared as having -- -- SIZE (0..255) ... -- Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev___ 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
RE: mib file configuration issue
> From: Martz, Peter [mailto:peter_ma...@cable.comcast.com] > Sent: Friday, March 19, 2010 8:11 AM > That is the crazy part is that I do have RFC1213-MIB.txt in > /usr/share/snmp/mibs. > In /usr/share/snmp/mibs/.index there is the entry: RFC1213-MIB RFC1213- > MIB.txt > > > snmpd[21517]: Did not find 'DisplayString' in module RFC1213-MIB > > > (/usr/share/snmp/mibs/mib.txt.002) Delete file /usr/share/snmp/mibs/mib.txt.002 HTH, Mike -- Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ 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
Re: mib file configuration issue
On Fri, Mar 19, 2010 at 3:28 PM, Martz, Peter wrote: > I am trying to clean up a 3rd party MIB file so that it compiles > correctly. > > The only error I am now getting is: > > > > Did not find 'DisplayString' in module RFC1213-MIB > (/usr/share/snmp/mibs/mib.txt.002) > > > > All the DisplayString settings **appear** correct to me, but as a newbie > there is obviously something I am missing. > > Would someone please illuminate my dull brain please? > Are you familiar with smilint ? The smilint tool can be very helpful when writing a MIB. See also http://net-snmp.sourceforge.net/wiki/index.php/Writing_your_own_MIBs. Bart. -- Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev___ 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