home *** CD-ROM | disk | FTP | other *** search
/ DP Tool Club 8 / CDASC08.ISO / VRAC / SNMPKT.ZIP / SMI.MIB < prev    next >
Text File  |  1992-08-04  |  4KB  |  135 lines

  1.            RFC1155-SMI DEFINITIONS ::= BEGIN
  2.  
  3.            --
  4.            -- Microsoft extracted from RFC1155 and made no changes.
  5.            --
  6.  
  7.            EXPORTS -- EVERYTHING
  8.                    internet, directory, mgmt,
  9.                    experimental, private, enterprises,
  10.                    OBJECT-TYPE, ObjectName, ObjectSyntax, SimpleSyntax,
  11.                    ApplicationSyntax, NetworkAddress, IpAddress,
  12.                    Counter, Gauge, TimeTicks, Opaque;
  13.  
  14.             -- the path to the root
  15.  
  16.             internet      OBJECT IDENTIFIER ::= { iso org(3) dod(6) 1 }
  17.  
  18.             directory     OBJECT IDENTIFIER ::= { internet 1 }
  19.  
  20.             mgmt          OBJECT IDENTIFIER ::= { internet 2 }
  21.  
  22.             experimental  OBJECT IDENTIFIER ::= { internet 3 }
  23.  
  24.             private       OBJECT IDENTIFIER ::= { internet 4 }
  25.             enterprises   OBJECT IDENTIFIER ::= { private 1 }
  26.  
  27.  
  28.             -- definition of object types
  29.  
  30.             OBJECT-TYPE MACRO ::=
  31.             BEGIN
  32.                 TYPE NOTATION ::= "SYNTAX" type (TYPE ObjectSyntax)
  33.                                   "ACCESS" Access
  34.                                   "STATUS" Status
  35.                 VALUE NOTATION ::= value (VALUE ObjectName)
  36.  
  37.                 Access ::= "read-only"
  38.                                 | "read-write"
  39.                                 | "write-only"
  40.                                 | "not-accessible"
  41.                 Status ::= "mandatory"
  42.                                 | "optional"
  43.                                 | "obsolete"
  44.             END
  45.  
  46.                -- names of objects in the MIB
  47.  
  48.                ObjectName ::=
  49.                    OBJECT IDENTIFIER
  50.  
  51.  
  52.                -- syntax of objects in the MIB
  53.  
  54.                ObjectSyntax ::=
  55.                    CHOICE {
  56.                        simple
  57.                            SimpleSyntax,
  58.  
  59.                -- note that simple SEQUENCEs are not directly
  60.                -- mentioned here to keep things simple (i.e.,
  61.                -- prevent mis-use).  However, application-wide
  62.                -- types which are IMPLICITly encoded simple
  63.                -- SEQUENCEs may appear in the following CHOICE
  64.  
  65.                        application-wide
  66.                            ApplicationSyntax
  67.                    }
  68.  
  69.                   SimpleSyntax ::=
  70.                       CHOICE {
  71.                           number
  72.                               INTEGER,
  73.  
  74.                           string
  75.                               OCTET STRING,
  76.  
  77.                           object
  78.                               OBJECT IDENTIFIER,
  79.  
  80.                           empty
  81.                               NULL
  82.                       }
  83.  
  84.                   ApplicationSyntax ::=
  85.                       CHOICE {
  86.                           address
  87.                               NetworkAddress,
  88.  
  89.                           counter
  90.                               Counter,
  91.  
  92.                           gauge
  93.                               Gauge,
  94.  
  95.                           ticks
  96.                               TimeTicks,
  97.  
  98.                           arbitrary
  99.                               Opaque
  100.  
  101.                   -- other application-wide types, as they are
  102.                   -- defined, will be added here
  103.                       }
  104.  
  105.  
  106.                   -- application-wide types
  107.  
  108.                   NetworkAddress ::=
  109.                       CHOICE {
  110.                           internet
  111.                               IpAddress
  112.                       }
  113.  
  114.                   IpAddress ::=
  115.                       [APPLICATION 0]          -- in network-byte order
  116.                           IMPLICIT OCTET STRING (SIZE (4))
  117.  
  118.                   Counter ::=
  119.                       [APPLICATION 1]
  120.                           IMPLICIT INTEGER (0..4294967295)
  121.  
  122.                   Gauge ::=
  123.                       [APPLICATION 2]
  124.                           IMPLICIT INTEGER (0..4294967295)
  125.  
  126.                   TimeTicks ::=
  127.                       [APPLICATION 3]
  128.                           IMPLICIT INTEGER (0..4294967295)
  129.  
  130.                   Opaque ::=
  131.                       [APPLICATION 4]          -- arbitrary ASN.1 value,
  132.                           IMPLICIT OCTET STRING   --   "double-wrapped"
  133.  
  134.                   END
  135.