1--
2-- CDDL HEADER START
3--
4-- The contents of this file are subject to the terms of the
5-- Common Development and Distribution License, Version 1.0 only
6-- (the "License").  You may not use this file except in compliance
7-- with the License.
8--
9-- You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10-- or http://www.opensolaris.org/os/licensing.
11-- See the License for the specific language governing permissions
12-- and limitations under the License.
13--
14-- When distributing Covered Code, include this CDDL HEADER in each
15-- file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16-- If applicable, add the following below this CDDL HEADER, with the 
17-- fields enclosed by brackets "[]" replaced with your own identifying
18-- information: Portions Copyright [yyyy] [name of copyright owner]
19--
20-- CDDL HEADER END
21--
22-- Copyright 1996 Sun Microsystems, Inc.  All Rights Reserved.
23-- Use is subject to license terms.
24--
25-- #ident	"%Z%%M%	%I%	%E% SMI"
26--
27
28-- **jerry** using command v2mib2schema
29
30   DEMO-MIB DEFINITIONS ::= BEGIN
31
32
33   IMPORTS
34       OBJECT-TYPE, Counter32, Gauge32
35         FROM SNMPv2-SMI
36
37-- **jerry** not recognized mib-2 ???
38--       mib-2
39--	 FROM RFC1213-MIB
40       DisplayString, TimeStamp
41         FROM SNMPv2-TC;
42
43   mib-2	OBJECT IDENTIFIER ::= { mgmt 1 }
44   sun	OBJECT IDENTIFIER ::= { enterprises 42 }
45   demo	OBJECT IDENTIFIER ::= { sun 1000 }
46
47-- **jerry** using MODULE-IDENTITY, no group table generated
48--   demo MODULE-IDENTITY
49--       LAST-UPDATED "9503310000Z"
50--       ORGANIZATION "SunSoft"
51--       CONTACT-INFO
52--         ""
53--       DESCRIPTION
54--         "An demo MIB module"
55--       ::= { sun 1000 }
56
57
58--
59-- Some objects
60--
61
62   demoString OBJECT-TYPE
63       SYNTAX DisplayString
64       MAX-ACCESS read-write
65       STATUS current
66       DESCRIPTION
67         "A read-write object of type String."
68       ::= {demo 1}
69
70   demoInteger OBJECT-TYPE
71       SYNTAX INTEGER {
72         up(1),
73         down(2)
74       }
75       MAX-ACCESS read-write
76       STATUS current
77       DESCRIPTION
78         "A read-write object of type Integer."
79       ::= {demo 2}
80
81   demoOid OBJECT-TYPE
82       SYNTAX OBJECT IDENTIFIER
83       MAX-ACCESS read-write
84       STATUS current
85       DESCRIPTION
86         "A read-write object of type Oid."
87       ::= {demo 3}
88
89
90--
91-- A table composed of some columns
92--
93
94   demoTable OBJECT-TYPE
95       SYNTAX SEQUENCE OF DemoEntry
96       MAX-ACCESS not-accessible
97       STATUS current
98       DESCRIPTION
99           "A table."
100       ::= {demo 10}
101
102   demoEntry OBJECT-TYPE
103       SYNTAX DemoEntry
104       MAX-ACCESS not-accessible
105       STATUS current
106       DESCRIPTION
107         "An entry in the table demoTable."
108       INDEX {demoEntryIndex}
109
110       ::= {demoTable 1}
111
112   DemoEntry ::= SEQUENCE {
113       demoEntryIndex
114           INTEGER,
115       demoEntryString
116           DisplayString,
117       demoEntryInteger
118           INTEGER,
119       demoEntryOid
120	   OBJECT IDENTIFIER
121   }
122
123   demoEntryIndex OBJECT-TYPE
124       SYNTAX INTEGER (1..2147483647)
125       MAX-ACCESS not-accessible
126       STATUS current
127       DESCRIPTION
128         "An index to uniquely identify the entry."
129       ::= {demoEntry 1}
130
131   demoEntryString OBJECT-TYPE
132       SYNTAX DisplayString
133       MAX-ACCESS read-write
134       STATUS current
135       DESCRIPTION
136         "A read-write column of type String."
137       ::= {demoEntry 2}
138
139   demoEntryInteger OBJECT-TYPE
140       SYNTAX INTEGER {
141         up(1),
142         down(2)
143       }
144       MAX-ACCESS read-write
145       STATUS current
146       DESCRIPTION
147         "A read-write column of type Integer."
148       ::= {demoEntry 3}
149
150   demoEntryOid OBJECT-TYPE
151       SYNTAX OBJECT IDENTIFIER
152       MAX-ACCESS read-write
153       STATUS current
154       DESCRIPTION
155         "A read-write column of type Oid."
156       ::= {demoEntry 4}
157
158   demoTrap TRAP-TYPE
159	ENTERPRISE sun
160	VARIABLES { demoInteger , demoString, demoOid}
161	DESCRIPTION
162	" Trap for testing."
163	::= 2
164
165   demoColdLinkTrap TRAP-TYPE
166	ENTERPRISE snmp
167	DESCRIPTION
168	" Trap for testing."
169	::= 0
170   END
171
172