github.com/influxdata/telegraf@v1.30.3/internal/snmp/testdata/gosmi/serverImports (about) 1 fooImports DEFINITIONS ::= BEGIN 2 3 -- the path to the root 4 5 org OBJECT IDENTIFIER ::= { iso 1 } -- "iso" = 1 6 dod OBJECT IDENTIFIER ::= { org 1 } 7 internet OBJECT IDENTIFIER ::= { dod 1 } 8 9 directory OBJECT IDENTIFIER ::= { internet 1 } 10 11 mgmt OBJECT IDENTIFIER ::= { internet 1 } 12 mib-2 OBJECT IDENTIFIER ::= { mgmt 1 } 13 14 ExtUTCTime ::= OCTET STRING(SIZE(11 | 13)) 15 -- format is YYMMDDHHMMZ or YYYYMMDDHHMMZ 16 17 -- where: YY - last two digits of year (only years 18 -- between 1900-1999) 19 -- YYYY - last four digits of the year (any year) 20 -- MM - month (01 through 12) 21 -- DD - day of month (01 through 31) 22 -- HH - hours (00 through 23) 23 -- MM - minutes (00 through 59) 24 -- Z - denotes GMT (the ASCII character Z) 25 -- 26 -- For example, "9502192015Z" and "199502192015Z" represent 27 -- 8:15pm GMT on 19 February 1995. Years after 1999 must use 28 -- the four digit year format. Years 1900-1999 may use the 29 -- two or four digit format. 30 31 -- definitions for information modules 32 33 MODULE-IDENTITY MACRO ::= 34 BEGIN 35 TYPE NOTATION ::= 36 "LAST-UPDATED" value(Update ExtUTCTime) 37 "ORGANIZATION" Text 38 "CONTACT-INFO" Text 39 "DESCRIPTION" Text 40 RevisionPart 41 42 VALUE NOTATION ::= 43 value(VALUE OBJECT IDENTIFIER) 44 45 RevisionPart ::= 46 Revisions 47 | empty 48 Revisions ::= 49 Revision 50 | Revisions Revision 51 Revision ::= 52 "REVISION" value(Update ExtUTCTime) 53 "DESCRIPTION" Text 54 55 -- a character string as defined in section 3.1.1 56 Text ::= value(IA5String) 57 END 58 59 OBJECT-IDENTITY MACRO ::= 60 BEGIN 61 TYPE NOTATION ::= 62 "STATUS" Status 63 "DESCRIPTION" Text 64 65 ReferPart 66 67 VALUE NOTATION ::= 68 value(VALUE OBJECT IDENTIFIER) 69 70 Status ::= 71 "current" 72 | "deprecated" 73 | "obsolete" 74 75 ReferPart ::= 76 "REFERENCE" Text 77 | empty 78 79 -- a character string as defined in section 3.1.1 80 Text ::= value(IA5String) 81 END 82 83 -- names of objects 84 -- (Note that these definitions of ObjectName and NotificationName 85 -- are not to be IMPORTed by MIB modules.) 86 87 ObjectName ::= 88 OBJECT IDENTIFIER 89 90 NotificationName ::= 91 OBJECT IDENTIFIER 92 93 94 -- indistinguishable from INTEGER, but never needs more than 95 -- 32-bits for a two's complement representation 96 Integer32 ::= 97 INTEGER (-2147483648..2147483647) 98 99 100 101 -- definition for objects 102 103 OBJECT-TYPE MACRO ::= 104 BEGIN 105 TYPE NOTATION ::= 106 UnitsPart 107 "MAX-ACCESS" Access 108 "STATUS" Status 109 "DESCRIPTION" Text 110 ReferPart 111 112 IndexPart 113 DefValPart 114 115 VALUE NOTATION ::= 116 value(VALUE ObjectName) 117 118 NamedBits ::= NamedBit 119 | NamedBits "," NamedBit 120 121 NamedBit ::= identifier "(" number ")" -- number is nonnegative 122 123 UnitsPart ::= 124 "UNITS" Text 125 | empty 126 127 Access ::= 128 "not-accessible" 129 | "accessible-for-notify" 130 | "read-only" 131 | "read-write" 132 | "read-create" 133 134 Status ::= 135 "current" 136 | "deprecated" 137 | "obsolete" 138 139 ReferPart ::= 140 "REFERENCE" Text 141 | empty 142 143 IndexPart ::= 144 "INDEX" "{" IndexTypes "}" 145 | "AUGMENTS" "{" Entry "}" 146 | empty 147 IndexTypes ::= 148 IndexType 149 | IndexTypes "," IndexType 150 IndexType ::= 151 "IMPLIED" Index 152 | Index 153 154 Entry ::= 155 -- use the INDEX value of the 156 -- correspondent OBJECT-TYPE invocation 157 value(ObjectName) 158 159 DefValPart ::= "DEFVAL" "{" Defvalue "}" 160 | empty 161 162 BitsValue ::= BitNames 163 | empty 164 165 BitNames ::= BitName 166 | BitNames "," BitName 167 168 BitName ::= identifier 169 170 -- a character string as defined in section 3.1.1 171 Text ::= value(IA5String) 172 END 173 174 END