RE: mib file configuration issue

"Martz, Peter" <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <76EA980B393A584084B397FCA1D25519124AEF28@NJCHLEXCMB01.cable.comcast.com>
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:[email protected]] 
Sent: Friday, March 19, 2010 12:06 PM
To: Martz, Peter
Cc: [email protected]
Subject: Re: mib file configuration issue

 

 

On Fri, Mar 19, 2010 at 10:51 AM, Martz, Peter
<[email protected]> 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&#174; 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
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
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.