DX NetOps

  • 1.  RFC1155_SMI error to add in MIB's

    Posted Feb 09, 2016 12:56 AM

    Hi,

    CA Netvoyant MC : When I try to add Mcafee Mibs' I need to add other required mIbs like RFC1213, RFC1315 and RFC1155_SMI. Every time I try to add RFC1155_SMI give me an error about " [ASN1} redefinition of module RFC1155_SMI ON LINE 11 at token DEFINITIONS.

    Kindly, share any solution to resolve the issue.

    Thanks,

     



  • 2.  Re: RFC1155_SMI error to add in MIB's

    Posted Feb 09, 2016 04:21 AM

    You should check the file mentioned. It might have problems in the definition. Check specifically for the line mentioned. I came across situation where I had to modify a faulty MIB. A comma was placed where it shouldn't been. It was not an RFC one, but from a vendor specific.



  • 3.  Re: RFC1155_SMI error to add in MIB's

    Posted Feb 09, 2016 04:49 AM

    Thanks for your reply. Below is the RFC1155-SMI

     

     

     

    -- ===========================================================================

     

    -- Copyright (C) 1998-2005 by HUAWEI TECHNOLOGIES. All rights reserved.

     

    --

     

    -- Description: SMI

     

    -- Reference:   Module(RFC1155-SMI) Extracted from RFC1155.TXT,from 31310 to 35715.Obsoletes: 1065

     

    -- Version:      V1.00

     

    -- History:

     

    --         

     

    -- ===========================================================================

     

               RFC1155-SMI DEFINITIONS ::= BEGIN

     

               EXPORTS -- EVERYTHING

     

                       internet, directory, mgmt,

     

                       experimental, private, enterprises,

     

                       OBJECT-TYPE, ObjectName, ObjectSyntax, SimpleSyntax,

     

                       ApplicationSyntax, NetworkAddress, IpAddress,

     

                       Counter, Gauge, TimeTicks, Opaque;

     

                -- the path to the root

     

                internet      OBJECT IDENTIFIER ::= { iso org(3) dod(6) 1 }

     

                directory     OBJECT IDENTIFIER ::= { internet 1 }

     

                mgmt          OBJECT IDENTIFIER ::= { internet 2 }

     

                experimental  OBJECT IDENTIFIER ::= { internet 3 }

     

                private       OBJECT IDENTIFIER ::= { internet 4 }

     

                enterprises   OBJECT IDENTIFIER ::= { private 1 }

     

      

     

                -- definition of object types

     

                OBJECT-TYPE MACRO ::=

     

                BEGIN

     

                    TYPE NOTATION ::= "SYNTAX" type (TYPE ObjectSyntax)

     

                                      "ACCESS" Access

     

                                      "STATUS" Status

     

                    VALUE NOTATION ::= value (VALUE ObjectName)

     

                    Access ::= "read-only"

     

                                    | "read-write"

     

                                    | "write-only"

     

                                    | "not-accessible"

     

                    Status ::= "mandatory"

     

                                    | "optional"

     

                                    | "obsolete"

     

                END

     

                   -- names of objects in the MIB

     

                   ObjectName ::=

     

                       OBJECT IDENTIFIER

     

                   -- syntax of objects in the MIB

     

                   ObjectSyntax ::=

     

                       CHOICE {

     

                           simple

     

                               SimpleSyntax,

     

                   -- note that simple SEQUENCEs are not directly

     

                   -- mentioned here to keep things simple (i.e.,

     

                   -- prevent mis-use).  However, application-wide

     

                   -- types which are IMPLICITly encoded simple

     

                   -- SEQUENCEs may appear in the following CHOICE

     

                           application-wide

     

                               ApplicationSyntax

     

                       }

     

                      SimpleSyntax ::=

     

                          CHOICE {

     

                              number

     

                                  INTEGER,

     

                              string

     

                                  OCTET STRING,

     

                              object

     

                                  OBJECT IDENTIFIER,

     

                              empty

     

                                  NULL

     

                          }

     

                      ApplicationSyntax ::=

     

                          CHOICE {

     

                              address

     

                                  NetworkAddress,

     

                              counter

     

                                  Counter,

     

                              gauge

     

                                  Gauge,

     

                              ticks

     

                                  TimeTicks,

     

                              arbitrary

     

                                  Opaque

     

                      -- other application-wide types, as they are

     

                      -- defined, will be added here

     

                          }

     

      

     

                      -- application-wide types

     

                      NetworkAddress ::=

     

                          CHOICE {

     

                              internet

     

                                  IpAddress

     

                          }

     

                      IpAddress ::=

     

                          [APPLICATION 0]          -- in network-byte order

     

                              IMPLICIT OCTET STRING (SIZE (4))

     

                      Counter ::=

     

                          [APPLICATION 1]

     

                              IMPLICIT INTEGER (0..4294967295)

     

                      Gauge ::=

     

                          [APPLICATION 2]

     

                              IMPLICIT INTEGER (0..4294967295)

     

                      TimeTicks ::=

     

                          [APPLICATION 3]

     

                              IMPLICIT INTEGER (0..4294967295)

     

                      Opaque ::=

     

                          [APPLICATION 4]          -- arbitrary ASN.1 value,

     

                              IMPLICIT OCTET STRING   --   "double-wrapped"

     

                      END

     

    -- ===========================================================================



  • 4.  Re: RFC1155_SMI error to add in MIB's

    Posted Feb 09, 2016 05:17 AM

    What a coincidence... Same vendor, Huawei. Try removing the comma after "enterprises," and reloading your mib.



  • 5.  Re: RFC1155_SMI error to add in MIB's
    Best Answer

    Posted Feb 09, 2016 05:30 AM

    CatalinF,

    Finally resolve:

     

     

    EXPORTS -- EVERYTHING,

     

    Need comma after word " EVERYTHING"

     

    Thanks for your kind support.

    Thanks,