Re: mib file configuration issue

Fulko Hew <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
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.