|
1 -- |
|
2 -- Copyright (c) 2003, 2011, Oracle and/or its affiliates. All rights reserved. |
|
3 -- |
|
4 -- U.S. Government Rights - Commercial software. Government users are subject to |
|
5 -- the Sun Microsystems, Inc. standard license agreement and applicable |
|
6 -- provisions of the FAR and its supplements. |
|
7 -- |
|
8 -- |
|
9 -- This distribution may include materials developed by third parties. Sun, Sun |
|
10 -- Microsystems, the Sun logo and Solaris are trademarks or registered |
|
11 -- trademarks of Sun Microsystems, Inc. in the U.S. and other countries. |
|
12 -- |
|
13 -- |
|
14 |
|
15 ---------------------------------------------------------- |
|
16 -- Systems Management Agent (SMA) SDK module example-12 MIB |
|
17 ---------------------------------------------------------- |
|
18 |
|
19 EXAMPLE-MIB DEFINITIONS ::= BEGIN |
|
20 |
|
21 IMPORTS |
|
22 MODULE-IDENTITY, OBJECT-TYPE, NOTIFICATION-TYPE, |
|
23 TimeTicks, Counter32, experimental, IpAddress, |
|
24 Integer32, Gauge32, Counter64, Opaque |
|
25 FROM SNMPv2-SMI |
|
26 DisplayString, TimeStamp |
|
27 FROM SNMPv2-TC |
|
28 MODULE-COMPLIANCE, OBJECT-GROUP, NOTIFICATION-GROUP |
|
29 FROM SNMPv2-CONF; |
|
30 |
|
31 exampleMIB MODULE-IDENTITY |
|
32 LAST-UPDATED "200303110000Z" |
|
33 ORGANIZATION "Sun Microsystems, Inc." |
|
34 CONTACT-INFO "None" |
|
35 DESCRIPTION |
|
36 "An example MIB used for source code-generating tools. |
|
37 " |
|
38 ::= { experimental 3000 } |
|
39 |
|
40 scalarTypes OBJECT IDENTIFIER ::= { exampleMIB 1 } |
|
41 tableType OBJECT IDENTIFIER ::= { exampleMIB 2 } |
|
42 |
|
43 scalarOpaque OBJECT-TYPE |
|
44 SYNTAX Opaque |
|
45 MAX-ACCESS read-write |
|
46 STATUS current |
|
47 DESCRIPTION |
|
48 "Scalar datatype" |
|
49 ::= { scalarTypes 1 } |
|
50 |
|
51 scalarIpAddr OBJECT-TYPE |
|
52 SYNTAX IpAddress |
|
53 MAX-ACCESS read-only |
|
54 STATUS current |
|
55 DESCRIPTION |
|
56 "IP Address datatype" |
|
57 ::= { scalarTypes 2 } |
|
58 |
|
59 |
|
60 |
|
61 rwTable OBJECT-TYPE |
|
62 SYNTAX SEQUENCE OF rwTableEntry |
|
63 MAX-ACCESS not-accessible |
|
64 STATUS current |
|
65 DESCRIPTION |
|
66 "A conceptual row" |
|
67 ::= { tableType 1 } |
|
68 |
|
69 rwTableEntry OBJECT-TYPE |
|
70 SYNTAX rwTableEntry |
|
71 MAX-ACCESS not-accessible |
|
72 STATUS current |
|
73 DESCRIPTION |
|
74 "An entry (conceptual row) in the exampleTable." |
|
75 INDEX { rwTableIndex } |
|
76 ::= { rwTable 1 } |
|
77 |
|
78 rwTableEntry ::= SEQUENCE { |
|
79 rwTableIndex INTEGER, |
|
80 rwTableOID OBJECT IDENTIFIER, |
|
81 rwTableDisplayString DisplayString, |
|
82 rwTableCounter32 Counter32 |
|
83 } |
|
84 |
|
85 rwTableIndex OBJECT-TYPE |
|
86 SYNTAX INTEGER |
|
87 MAX-ACCESS read-only |
|
88 STATUS current |
|
89 DESCRIPTION |
|
90 "Integer" |
|
91 ::= { rwTableEntry 1 } |
|
92 |
|
93 rwTableOID OBJECT-TYPE |
|
94 SYNTAX OBJECT IDENTIFIER |
|
95 MAX-ACCESS read-write |
|
96 STATUS current |
|
97 DESCRIPTION |
|
98 "OID" |
|
99 ::= { rwTableEntry 2 } |
|
100 |
|
101 rwTableDisplayString OBJECT-TYPE |
|
102 SYNTAX DisplayString (SIZE (0..255)) |
|
103 MAX-ACCESS read-write |
|
104 STATUS current |
|
105 DESCRIPTION |
|
106 "DisplayString" |
|
107 ::= { rwTableEntry 3 } |
|
108 |
|
109 rwTableCounter32 OBJECT-TYPE |
|
110 SYNTAX Counter32 |
|
111 MAX-ACCESS read-only |
|
112 STATUS current |
|
113 DESCRIPTION |
|
114 "Counter32" |
|
115 ::= { rwTableEntry 4 } |
|
116 |
|
117 END |