File: SIT-NT

package info (click to toggle)
libsnmp-mib-compiler-perl 0.06-4
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, sid, trixie
  • size: 1,036 kB
  • sloc: perl: 2,656; makefile: 7
file content (233 lines) | stat: -rw-r--r-- 7,868 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
-- file: sit-nt.mib
--

SIT-NT DEFINITIONS ::= BEGIN

IMPORTS
    MODULE-IDENTITY, OBJECT-TYPE, Opaque, enterprises
        FROM SNMPv2-SMI
    TEXTUAL-CONVENTION, DisplayString
        FROM SNMPv2-TC
    OBJECT-GROUP, MODULE-COMPLIANCE
        FROM SNMPv2-CONF;


sitNtModule MODULE-IDENTITY
    LAST-UPDATED        "9805060000Z"
    ORGANIZATION        "SNMPinfo"
    CONTACT-INFO
        "Email: info@snmpinfo.com"
    DESCRIPTION
        "This module defines objects to test out
        the following new types:
           Unsigned64
           Int64
           Float
           Double"
    ::= { sitModules 3 }


siRoot OBJECT IDENTIFIER ::= { enterprises  1194 }
sitRoot OBJECT IDENTIFIER ::= { siRoot 2 }
sitReg OBJECT IDENTIFIER ::= { sitRoot 1 }
sitModules OBJECT IDENTIFIER ::= { sitReg 1 }
sitItems OBJECT IDENTIFIER ::= { sitRoot 2 }

-- root for items in the Counter MIB module
sitNtMIB OBJECT IDENTIFIER ::= { sitItems 2 }

-- conformance area containing group and compliance specifications
sitNtConfs OBJECT IDENTIFIER ::= { sitNtMIB 1 }
  sitNtGroups OBJECT IDENTIFIER ::= { sitNtConfs 1 } 
  sitNtCompls OBJECT IDENTIFIER ::= { sitNtConfs 2 }

-- sub-tree for objects, and for each functional area
sitNtObjs OBJECT IDENTIFIER ::= { sitNtMIB 2 }
  sitNtTest1Objs OBJECT IDENTIFIER ::= { sitNtObjs 1 }

-- sub-tree for events
sitNtEvents OBJECT IDENTIFIER ::= { sitNtMIB 3 }
  sitNtEventsV2 OBJECT IDENTIFIER ::= { sitNtEvents 0 }

-- Some TCs for the Types
Integer64 ::= TEXTUAL-CONVENTION
    STATUS      current
    DESCRIPTION
        "A 64-bit signed integer.  The value is restricted to
        the BER serialization of the following ASN.1 type:
           I64TYPE ::= [122] IMPLICIT I64Type
        (note: the value 122 is the sum of '30'h and '4a'h)
        The BER serialization of the length for values of
        this type must use the definite length, short
        encoding form.

        For example, the BER serialization of value 129
        of type I64TYPE is '9f7a020081'h.  (The tag is '9f7a'h;
        the length is '02'h; and the value is '0081'h.) The
        BER serialization of value '9f7a020081'h of data
        type Opaque is '44059f7a020081'h. (The tag is '44'h;
        the length is '05'h; and the value is '9f7a020081'h.)
        Also for example, the BER serialization of value -129
        of type I64TYPE is '9f7a02ff7f'h.  (The tag is '9f7a'h;
        the length is '02'h; and the value is 'ff7f'h.) The
        BER serialization of value '9f7a02ff7f'h of data
        type Opaque is '44059f7a02ff7f'h. (The tag is '44'h;
        the length is '05'h; and the value is '9f7a02ff7f'h.)"
    SYNTAX      Opaque (SIZE(4..11))

Unsigned64 ::= TEXTUAL-CONVENTION
    STATUS      current
    DESCRIPTION
        "A 64-bit unsigned signed integer.  The value is
        restricted to the BER serialization of the following
        ASN.1 type:
            U64TYPE ::= [123] IMPLICIT U64Type
        (note: the value 123 is the sum of '30'h and '4b'h)
        The BER serialization of the length for values of
        this type must use the definite length, short
        encoding form.
        For example, the BER serialization of value 129
        of type U64TYPE is '9f7b020081'h.  (The tag is '9f7b'h;
        the length is '02'h; and the value is '0081'h.) The
        BER serialization of value '9f7b020081'h of data
        type Opaque is '44059f7b020081'h. (The tag is '44'h;
        the length is '05'h; and the value is '9f7b020081'h.)"
    SYNTAX      Opaque (SIZE(4..12))

Float ::= TEXTUAL-CONVENTION
    STATUS      current
    DESCRIPTION
        "A single precision floating-point number.  The semantics
        and encoding are identical for type 'single' defined in
        IEEE Standard for Binary Floating-Point,
        ANSI/IEEE Std 754-1985.
        The value is restricted to the BER serialization of
        the following ASN.1 type:
            FLOATTYPE ::= [120] IMPLICIT FloatType
        (note: the value 120 is the sum of '30'h and '48'h)
        The BER serialization of the length for values of
        this type must use the definite length, short
        encoding form.

        For example, the BER serialization of value 123
        of type FLOATTYPE is '9f780442f60000'h.  (The tag
        is '9f78'h; the length is '04'h; and the value is
        '42f60000'h.) The BER serialization of value
        '9f780442f60000'h of data type Opaque is
        '44079f780442f60000'h. (The tag is '44'h; the length
        is '07'h; and the value is '9f780442f60000'h."
	    SYNTAX      Opaque (SIZE(7))

Double ::= TEXTUAL-CONVENTION
    STATUS      current
    DESCRIPTION
        "A double precision floating-point number.  The semantics
        and encoding are identical for type 'double' defined in
        IEEE Standard for Binary Floating-Point,
        ANSI/IEEE Std 754-1985.

        The value is restricted to the BER serialization of
        the following ASN.1 type:
            DOUBLETYPE ::= [121] IMPLICIT DoubleType
        (note: the value 121 is the sum of '30'h and '49'h)
        The BER serialization of the length for values of
        this type must use the definite length, short
        encoding form.

        For example, the BER serialization of value 123
        of type DOUBLETYPE is '9f7908405ec00000000000'h.
        (The tag is '9f79'h; the length is '08'h; and the
        value is '405ec00000000000'h.)  The BER serialization
        of value '9f7908405ec00000000000'h of data type Opaque
        is '440b9f7908405ec00000000000'h.  (The tag is '44'h;
        the length is '07'h; and the value is
        '9f7908405ec00000000000'h.)"
    SYNTAX      Opaque (SIZE(11))
  
-- the test objects

sitNtI64 OBJECT-TYPE
    SYNTAX      Integer64
    MAX-ACCESS  read-write
    STATUS      current
    DESCRIPTION
        "A test object that is a 64-bit signed integer."
    ::= { sitNtTest1Objs 1 }

sitNtI64A OBJECT-TYPE
    SYNTAX      DisplayString
    MAX-ACCESS  read-only
    STATUS      current
    DESCRIPTION
        "The value of object sitNtI64 in ASCII."
    ::= { sitNtTest1Objs 2 }

sitNtU64 OBJECT-TYPE
    SYNTAX      Unsigned64
    MAX-ACCESS  read-write
    STATUS      current
    DESCRIPTION
        "A test object that is a 64-bit unsigned integer."
    ::= { sitNtTest1Objs 3 }

sitNtU64A OBJECT-TYPE
    SYNTAX      DisplayString
    MAX-ACCESS  read-only
    STATUS      current
    DESCRIPTION
        "The value of object sitNtU64 in ASCII."
    ::= { sitNtTest1Objs 4 }

sitNtFloat OBJECT-TYPE
    SYNTAX      Float
    MAX-ACCESS  read-write
    STATUS      current
    DESCRIPTION
        "A test object that is a 'single' floating point number."
    ::= { sitNtTest1Objs 5 }

sitNtFloatA OBJECT-TYPE
    SYNTAX      DisplayString
    MAX-ACCESS  read-only
    STATUS      current
    DESCRIPTION
        "The value of object sitNtFloat in ASCII."
    ::= { sitNtTest1Objs 6 }

sitNtDouble OBJECT-TYPE
    SYNTAX      Double
    MAX-ACCESS  read-write
    STATUS      current
    DESCRIPTION
        "A test object that is a 'double' floating point number."
    ::= { sitNtTest1Objs 7 }

sitNtDoubleA OBJECT-TYPE
    SYNTAX      DisplayString
    MAX-ACCESS  read-only
    STATUS      current
    DESCRIPTION
        "The value of object sitNtDouble in ASCII."
    ::= { sitNtTest1Objs 8 }


-- object and event groups
sitNt1Group OBJECT-GROUP
    OBJECTS     { sitNtI64, sitNtI64A,
                sitNtU64, sitNtU64A,
                sitNtFloat, sitNtFloatA,
                sitNtDouble, sitNtDoubleA }
    STATUS      current
    DESCRIPTION
        "Objects for the first test."
    ::= { sitNtGroups 1 }

-- compliance specifications
sitNtComplV1 MODULE-COMPLIANCE
    STATUS      current
    DESCRIPTION "All objects are required."
    MODULE      -- this module
        MANDATORY-GROUPS { sitNt1Group }
    ::= { sitNtCompls 1 }

END