github.com/influxdata/telegraf@v1.30.3/internal/snmp/testdata/gosmi/ifPhysAddressImports (about)

     1  SNMPv2-SMI DEFINITIONS ::= BEGIN
     2  
     3  -- the path to the root
     4  
     5  org            OBJECT IDENTIFIER ::= { iso 3 }  --  "iso" = 1
     6  dod            OBJECT IDENTIFIER ::= { org 6 }
     7  internet       OBJECT IDENTIFIER ::= { dod 1 }
     8  
     9  directory      OBJECT IDENTIFIER ::= { internet 1 }
    10  
    11  mgmt           OBJECT IDENTIFIER ::= { internet 2 }
    12  mib-2          OBJECT IDENTIFIER ::= { mgmt 1 }
    13  transmission   OBJECT IDENTIFIER ::= { mib-2 10 }
    14  
    15  experimental   OBJECT IDENTIFIER ::= { internet 3 }
    16  
    17  private        OBJECT IDENTIFIER ::= { internet 4 }
    18  enterprises    OBJECT IDENTIFIER ::= { private 1 }
    19  
    20  security       OBJECT IDENTIFIER ::= { internet 5 }
    21  
    22  snmpV2         OBJECT IDENTIFIER ::= { internet 6 }
    23  
    24  -- transport domains
    25  snmpDomains    OBJECT IDENTIFIER ::= { snmpV2 1 }
    26  
    27  -- transport proxies
    28  snmpProxys     OBJECT IDENTIFIER ::= { snmpV2 2 }
    29  
    30  -- module identities
    31  snmpModules    OBJECT IDENTIFIER ::= { snmpV2 3 }
    32  
    33  -- Extended UTCTime, to allow dates with four-digit years
    34  -- (Note that this definition of ExtUTCTime is not to be IMPORTed
    35  --  by MIB modules.)
    36  ExtUTCTime ::= OCTET STRING(SIZE(11 | 13))
    37      -- format is YYMMDDHHMMZ or YYYYMMDDHHMMZ
    38  
    39      --   where: YY   - last two digits of year (only years
    40      --                 between 1900-1999)
    41      --          YYYY - last four digits of the year (any year)
    42      --          MM   - month (01 through 12)
    43      --          DD   - day of month (01 through 31)
    44      --          HH   - hours (00 through 23)
    45      --          MM   - minutes (00 through 59)
    46      --          Z    - denotes GMT (the ASCII character Z)
    47      --
    48      -- For example, "9502192015Z" and "199502192015Z" represent
    49      -- 8:15pm GMT on 19 February 1995. Years after 1999 must use
    50      -- the four digit year format. Years 1900-1999 may use the
    51      -- two or four digit format.
    52  
    53  -- definitions for information modules
    54  
    55  MODULE-IDENTITY MACRO ::=
    56  BEGIN
    57      TYPE NOTATION ::=
    58                    "LAST-UPDATED" value(Update ExtUTCTime)
    59                    "ORGANIZATION" Text
    60                    "CONTACT-INFO" Text
    61                    "DESCRIPTION" Text
    62                    RevisionPart
    63  
    64      VALUE NOTATION ::=
    65                    value(VALUE OBJECT IDENTIFIER)
    66  
    67      RevisionPart ::=
    68                    Revisions
    69                  | empty
    70      Revisions ::=
    71                    Revision
    72                  | Revisions Revision
    73      Revision ::=
    74                    "REVISION" value(Update ExtUTCTime)
    75                    "DESCRIPTION" Text
    76  
    77      -- a character string as defined in section 3.1.1
    78      Text ::= value(IA5String)
    79  END
    80  
    81  OBJECT-IDENTITY MACRO ::=
    82  BEGIN
    83      TYPE NOTATION ::=
    84                    "STATUS" Status
    85                    "DESCRIPTION" Text
    86  
    87                    ReferPart
    88  
    89      VALUE NOTATION ::=
    90                    value(VALUE OBJECT IDENTIFIER)
    91  
    92      Status ::=
    93                    "current"
    94                  | "deprecated"
    95                  | "obsolete"
    96  
    97      ReferPart ::=
    98                    "REFERENCE" Text
    99                  | empty
   100  
   101      -- a character string as defined in section 3.1.1
   102      Text ::= value(IA5String)
   103  END
   104  
   105  -- names of objects
   106  -- (Note that these definitions of ObjectName and NotificationName
   107  --  are not to be IMPORTed by MIB modules.)
   108  
   109  ObjectName ::=
   110      OBJECT IDENTIFIER
   111  
   112  NotificationName ::=
   113      OBJECT IDENTIFIER
   114  
   115  -- syntax of objects
   116  
   117  -- the "base types" defined here are:
   118  --   3 built-in ASN.1 types: INTEGER, OCTET STRING, OBJECT IDENTIFIER
   119  --   8 application-defined types: Integer32, IpAddress, Counter32,
   120  --              Gauge32, Unsigned32, TimeTicks, Opaque, and Counter64
   121  
   122  ObjectSyntax ::=
   123      CHOICE {
   124          simple
   125              SimpleSyntax,
   126            -- note that SEQUENCEs for conceptual tables and
   127            -- rows are not mentioned here...
   128  
   129          application-wide
   130              ApplicationSyntax
   131      }
   132  
   133  -- built-in ASN.1 types
   134  
   135  SimpleSyntax ::=
   136      CHOICE {
   137          -- INTEGERs with a more restrictive range
   138          -- may also be used
   139          integer-value               -- includes Integer32
   140              INTEGER (-2147483648..2147483647),
   141          -- OCTET STRINGs with a more restrictive size
   142          -- may also be used
   143          string-value
   144              OCTET STRING (SIZE (0..65535)),
   145          objectID-value
   146              OBJECT IDENTIFIER
   147      }
   148  
   149  -- indistinguishable from INTEGER, but never needs more than
   150  -- 32-bits for a two's complement representation
   151  Integer32 ::=
   152          INTEGER (-2147483648..2147483647)
   153  
   154  
   155  
   156  -- definition for objects
   157  
   158  OBJECT-TYPE MACRO ::=
   159  BEGIN
   160      TYPE NOTATION ::=
   161                    "SYNTAX" Syntax
   162                    UnitsPart
   163                    "MAX-ACCESS" Access
   164                    "STATUS" Status
   165                    "DESCRIPTION" Text
   166                    ReferPart
   167  
   168                    IndexPart
   169                    DefValPart
   170  
   171      VALUE NOTATION ::=
   172                    value(VALUE ObjectName)
   173  
   174      Syntax ::=   -- Must be one of the following:
   175                         -- a base type (or its refinement),
   176                         -- a textual convention (or its refinement), or
   177                         -- a BITS pseudo-type
   178                     type
   179                  | "BITS" "{" NamedBits "}"
   180  
   181      NamedBits ::= NamedBit
   182                  | NamedBits "," NamedBit
   183  
   184      NamedBit ::=  identifier "(" number ")" -- number is nonnegative
   185  
   186      UnitsPart ::=
   187                    "UNITS" Text
   188                  | empty
   189  
   190      Access ::=
   191                    "not-accessible"
   192                  | "accessible-for-notify"
   193                  | "read-only"
   194                  | "read-write"
   195                  | "read-create"
   196  
   197      Status ::=
   198                    "current"
   199                  | "deprecated"
   200                  | "obsolete"
   201  
   202      ReferPart ::=
   203                    "REFERENCE" Text
   204                  | empty
   205  
   206      IndexPart ::=
   207                    "INDEX"    "{" IndexTypes "}"
   208                  | "AUGMENTS" "{" Entry      "}"
   209                  | empty
   210      IndexTypes ::=
   211                    IndexType
   212                  | IndexTypes "," IndexType
   213      IndexType ::=
   214                    "IMPLIED" Index
   215                  | Index
   216  
   217      Index ::=
   218                      -- use the SYNTAX value of the
   219                      -- correspondent OBJECT-TYPE invocation
   220                    value(ObjectName)
   221      Entry ::=
   222                      -- use the INDEX value of the
   223                      -- correspondent OBJECT-TYPE invocation
   224                    value(ObjectName)
   225  
   226      DefValPart ::= "DEFVAL" "{" Defvalue "}"
   227                  | empty
   228  
   229      Defvalue ::=  -- must be valid for the type specified in
   230                    -- SYNTAX clause of same OBJECT-TYPE macro
   231                    value(ObjectSyntax)
   232                  | "{" BitsValue "}"
   233  
   234      BitsValue ::= BitNames
   235                  | empty
   236  
   237      BitNames ::=  BitName
   238                  | BitNames "," BitName
   239  
   240      BitName ::= identifier
   241  
   242      -- a character string as defined in section 3.1.1
   243      Text ::= value(IA5String)
   244  END
   245  
   246  PhysAddress ::= TEXTUAL-CONVENTION
   247      DISPLAY-HINT "1x:"
   248      STATUS       current
   249      DESCRIPTION
   250              "Represents media- or physical-level addresses."
   251      SYNTAX       OCTET STRING
   252  
   253  
   254  END