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-- HISTORY 28-- 5-20-96 Jerry Yeung fix the mib for sun net manager 29 30-- **jerry** using command v2mib2schema 31 32 DEMO-MIB DEFINITIONS ::= BEGIN 33 34 35 IMPORTS 36 OBJECT-TYPE, Counter32, Gauge32 37 FROM SNMPv2-SMI 38 39-- **jerry** not recognized mib-2 ??? 40-- mib-2 41-- FROM RFC1213-MIB 42 DisplayString, TimeStamp 43 FROM SNMPv2-TC; 44 45 mib-2 OBJECT IDENTIFIER ::= { mgmt 1 } 46 sun OBJECT IDENTIFIER ::= { enterprises 42 } 47 demo OBJECT IDENTIFIER ::= { sun 1000 } 48 49-- **jerry** using MODULE-IDENTITY, no group table generated 50-- demo MODULE-IDENTITY 51-- LAST-UPDATED "9503310000Z" 52-- ORGANIZATION "SunSoft" 53-- CONTACT-INFO 54-- "" 55-- DESCRIPTION 56-- "An demo MIB module" 57-- ::= { sun 1000 } 58 59 60-- 61-- Some objects 62-- 63 64 demoString OBJECT-TYPE 65 SYNTAX DisplayString 66 MAX-ACCESS read-write 67 STATUS current 68 DESCRIPTION 69 "A read-write object of type String." 70 ::= {demo 1} 71 72 demoInteger OBJECT-TYPE 73 SYNTAX INTEGER { 74 up(1), 75 down(2) 76 } 77 MAX-ACCESS read-write 78 STATUS current 79 DESCRIPTION 80 "A read-write object of type Integer." 81 ::= {demo 2} 82 83 demoOid OBJECT-TYPE 84 SYNTAX OBJECT IDENTIFIER 85 MAX-ACCESS read-write 86 STATUS current 87 DESCRIPTION 88 "A read-write object of type Oid." 89 ::= {demo 3} 90 91 92-- 93-- A table composed of some columns 94-- 95 96 demoTable OBJECT-TYPE 97 SYNTAX SEQUENCE OF DemoEntry 98 MAX-ACCESS not-accessible 99 STATUS current 100 DESCRIPTION 101 "A table." 102 ::= {demo 10} 103 104 demoEntry OBJECT-TYPE 105 SYNTAX DemoEntry 106 MAX-ACCESS not-accessible 107 STATUS current 108 DESCRIPTION 109 "An entry in the table demoTable." 110 INDEX {demoEntryIndex} 111 112 ::= {demoTable 1} 113 114 DemoEntry ::= SEQUENCE { 115 demoEntryIndex 116 INTEGER, 117 demoEntryString 118 DisplayString, 119 demoEntryInteger 120 INTEGER, 121 demoEntryOid 122 OBJECT IDENTIFIER 123 } 124 125 demoEntryIndex OBJECT-TYPE 126 SYNTAX INTEGER (1..2147483647) 127 MAX-ACCESS not-accessible 128 STATUS current 129 DESCRIPTION 130 "An index to uniquely identify the entry." 131 ::= {demoEntry 1} 132 133 demoEntryString OBJECT-TYPE 134 SYNTAX DisplayString 135 MAX-ACCESS read-write 136 STATUS current 137 DESCRIPTION 138 "A read-write column of type String." 139 ::= {demoEntry 2} 140 141 demoEntryInteger OBJECT-TYPE 142 SYNTAX INTEGER { 143 up(1), 144 down(2) 145 } 146 MAX-ACCESS read-write 147 STATUS current 148 DESCRIPTION 149 "A read-write column of type Integer." 150 ::= {demoEntry 3} 151 152 demoEntryOid OBJECT-TYPE 153 SYNTAX OBJECT IDENTIFIER 154 MAX-ACCESS read-write 155 STATUS current 156 DESCRIPTION 157 "A read-write column of type Oid." 158 ::= {demoEntry 4} 159 160 161 END 162 163