~ubuntu-branches/ubuntu/gutsy/net-snmp/gutsy-security

« back to all changes in this revision

Viewing changes to mibs/NET-SNMP-EXAMPLES-MIB.txt

  • Committer: Bazaar Package Importer
  • Author(s): Martin Pitt
  • Date: 2004-09-13 12:06:21 UTC
  • Revision ID: james.westby@ubuntu.com-20040913120621-g952ntonlleihcvm
Tags: upstream-5.1.1
ImportĀ upstreamĀ versionĀ 5.1.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
NET-SNMP-EXAMPLES-MIB DEFINITIONS ::= BEGIN
 
2
 
 
3
--
 
4
-- Example MIB objects for agent module example implementations
 
5
--
 
6
 
 
7
IMPORTS
 
8
    MODULE-IDENTITY, OBJECT-TYPE, Integer32 FROM SNMPv2-SMI
 
9
    SnmpAdminString                         FROM SNMP-FRAMEWORK-MIB
 
10
    netSnmp                                 FROM NET-SNMP-MIB
 
11
    RowStatus, StorageType                  FROM SNMPv2-TC
 
12
    InetAddressType, InetAddress            FROM INET-ADDRESS-MIB
 
13
;
 
14
 
 
15
netSnmpExamples MODULE-IDENTITY
 
16
    LAST-UPDATED "200202060000Z"
 
17
    ORGANIZATION "www.net-snmp.org"
 
18
    CONTACT-INFO    
 
19
         "postal:   Wes Hardaker
 
20
                    P.O. Box 382
 
21
                    Davis CA  95617
 
22
 
 
23
          email:    net-snmp-coders@lists.sourceforge.net"
 
24
    DESCRIPTION
 
25
        "Example MIB objects for agent module example implementations"
 
26
    REVISION     "200202060000Z"
 
27
    DESCRIPTION
 
28
        "First draft"
 
29
    ::= { netSnmp 2 }
 
30
 
 
31
--
 
32
-- top level structure
 
33
--
 
34
netSnmpExampleScalars       OBJECT IDENTIFIER ::= { netSnmpExamples 1 }
 
35
netSnmpExampleTables        OBJECT IDENTIFIER ::= { netSnmpExamples 2 }
 
36
netSnmpExampleNotifications OBJECT IDENTIFIER ::= { netSnmpExamples 3 }
 
37
-- netSnmpTutorial          OBJECT IDENTIFIER ::= { netSnmpExamples 4 }
 
38
 
 
39
--
 
40
-- Example scalars
 
41
--
 
42
 
 
43
netSnmpExampleInteger OBJECT-TYPE
 
44
    SYNTAX      Integer32
 
45
    MAX-ACCESS  read-write
 
46
    STATUS      current
 
47
    DESCRIPTION
 
48
        "This is a simple object which merely houses a writable
 
49
         integer.  It's only purposes is to hold the value of a single
 
50
         integer.  Writing to it will simply change the value for
 
51
         subsequent GET/GETNEXT/GETBULK retrievals.
 
52
 
 
53
         This example object is implemented in the
 
54
         agent/mibgroup/examples/scalar_int.c file."
 
55
    DEFVAL { 42 }
 
56
    ::= { netSnmpExampleScalars 1 }
 
57
 
 
58
netSnmpExampleSleeper OBJECT-TYPE
 
59
    SYNTAX      Integer32
 
60
    MAX-ACCESS  read-write
 
61
    STATUS      current
 
62
    DESCRIPTION
 
63
        "This is a simple object which is a basic integer.  It's value
 
64
         indicates the number of seconds that the agent will take in
 
65
         responding to requests of this object.  This is implemented
 
66
         in a way which will allow the agent to keep responding to
 
67
         other requests while access to this object is blocked.  It is
 
68
         writable, and changing it's value will change the amount of
 
69
         time the agent will effectively wait for before returning a
 
70
         response when this object is manipulated.  Note that SET
 
71
         requests through this object will take longer, since the
 
72
         delay is applied to each internal transaction phase, which
 
73
         could result in delays of up to 4 times the value of this
 
74
         object.
 
75
 
 
76
         This example object is implemented in the
 
77
         agent/mibgroup/examples/delayed_instance.c file."
 
78
    DEFVAL { 1 }
 
79
    ::= { netSnmpExampleScalars 2 }
 
80
 
 
81
 
 
82
--
 
83
--  Example Tables
 
84
--
 
85
 
 
86
netSnmpIETFWGTable OBJECT-TYPE
 
87
    SYNTAX      SEQUENCE OF NetSnmpIETFWGEntry
 
88
    MAX-ACCESS  not-accessible
 
89
    STATUS      current
 
90
    DESCRIPTION
 
91
        "This table merely contains a set of data which is otherwise
 
92
         useless for true network management.  It is a table which
 
93
         describes properies about a IETF Working Group, such as the
 
94
         names of the two working group chairs.
 
95
 
 
96
         This example table is implemented in the
 
97
         agent/mibgroup/examples/data_set.c file."
 
98
    ::= { netSnmpExampleTables 1 }
 
99
 
 
100
netSnmpIETFWGEntry OBJECT-TYPE
 
101
    SYNTAX      NetSnmpIETFWGEntry
 
102
    MAX-ACCESS  not-accessible
 
103
    STATUS      current
 
104
    DESCRIPTION
 
105
        "A row describing a given working group"
 
106
    INDEX   { nsIETFWGName }
 
107
    ::= {netSnmpIETFWGTable 1 }
 
108
 
 
109
NetSnmpIETFWGEntry ::= SEQUENCE {
 
110
        nsIETFWGName    OCTET STRING,
 
111
        nsIETFWGChair1  OCTET STRING,
 
112
        nsIETFWGChair2  OCTET STRING
 
113
}
 
114
 
 
115
nsIETFWGName OBJECT-TYPE
 
116
    SYNTAX      OCTET STRING (SIZE(1..32))
 
117
    MAX-ACCESS  not-accessible
 
118
    STATUS      current
 
119
    DESCRIPTION
 
120
        "The name of the IETF Working Group this table describes."
 
121
    ::= { netSnmpIETFWGEntry 1 }
 
122
 
 
123
nsIETFWGChair1 OBJECT-TYPE
 
124
    SYNTAX      OCTET STRING
 
125
    MAX-ACCESS  read-create
 
126
    STATUS      current
 
127
    DESCRIPTION
 
128
        "One of the names of the chairs for the IETF working group."
 
129
    ::= { netSnmpIETFWGEntry 2 }
 
130
 
 
131
nsIETFWGChair2 OBJECT-TYPE
 
132
    SYNTAX      OCTET STRING
 
133
    MAX-ACCESS  read-create
 
134
    STATUS      current
 
135
    DESCRIPTION
 
136
        "The other name, if one exists, of the chairs for the IETF
 
137
        working group."
 
138
    ::= { netSnmpIETFWGEntry 3 }
 
139
 
 
140
--
 
141
-- A table used in a table_iterator example
 
142
--   (agent/mibgroup/examples/netSnmpHostsTable*.[ch])
 
143
--
 
144
 
 
145
netSnmpHostsTable OBJECT-TYPE
 
146
    SYNTAX      SEQUENCE OF NetSnmpHostsEntry
 
147
    MAX-ACCESS  not-accessible
 
148
    STATUS      current
 
149
    DESCRIPTION
 
150
        "An example table that implements a wrapper around the
 
151
        /etc/hosts file on a machine using the iterator helper API."
 
152
    ::= { netSnmpExampleTables 2 }
 
153
 
 
154
netSnmpHostsEntry OBJECT-TYPE
 
155
    SYNTAX      NetSnmpHostsEntry
 
156
    MAX-ACCESS  not-accessible
 
157
    STATUS      current
 
158
    DESCRIPTION
 
159
        "A host name mapped to an ip address"
 
160
    INDEX   { netSnmpHostName }
 
161
    ::= { netSnmpHostsTable 1 }
 
162
 
 
163
NetSnmpHostsEntry ::= SEQUENCE {
 
164
    netSnmpHostName         OCTET STRING,
 
165
    netSnmpHostAddressType  InetAddressType,
 
166
    netSnmpHostAddress      InetAddress,
 
167
    netSnmpHostStorage      StorageType,
 
168
    netSnmpHostRowStatus    RowStatus
 
169
}
 
170
 
 
171
netSnmpHostName OBJECT-TYPE
 
172
    SYNTAX      OCTET STRING (SIZE(0..64))
 
173
    MAX-ACCESS  not-accessible
 
174
    STATUS      current
 
175
    DESCRIPTION
 
176
        "A host name that exists in the /etc/hosts (unix) file."
 
177
    ::= { netSnmpHostsEntry 1 }
 
178
 
 
179
netSnmpHostAddressType OBJECT-TYPE
 
180
    SYNTAX      InetAddressType
 
181
    MAX-ACCESS  read-create
 
182
    STATUS      current
 
183
    DESCRIPTION
 
184
        "The address type of then given host."
 
185
    ::= { netSnmpHostsEntry 2 }
 
186
 
 
187
netSnmpHostAddress OBJECT-TYPE
 
188
    SYNTAX      InetAddress
 
189
    MAX-ACCESS  read-create
 
190
    STATUS      current
 
191
    DESCRIPTION
 
192
        "The address of then given host."
 
193
    ::= { netSnmpHostsEntry 3 }
 
194
 
 
195
netSnmpHostStorage OBJECT-TYPE
 
196
    SYNTAX       StorageType
 
197
    MAX-ACCESS   read-create
 
198
    STATUS       current
 
199
    DESCRIPTION "The storage type for this conceptual row."
 
200
    DEFVAL      { nonVolatile }
 
201
    ::= { netSnmpHostsEntry 4 }
 
202
 
 
203
netSnmpHostRowStatus OBJECT-TYPE
 
204
    SYNTAX       RowStatus
 
205
    MAX-ACCESS   read-create
 
206
    STATUS       current
 
207
    DESCRIPTION "The status of this conceptual row."
 
208
    ::= { netSnmpHostsEntry 5 }
 
209
 
 
210
 
 
211
--
 
212
--  Example Notifications
 
213
--
 
214
 
 
215
netSnmpExampleNotification OBJECT-TYPE
 
216
    SYNTAX      SnmpAdminString
 
217
    MAX-ACCESS  accessible-for-notify
 
218
    STATUS      current
 
219
    DESCRIPTION
 
220
        "This is a boring example that is used in the
 
221
         agent/mibgroup/examples/notification.c to send out a
 
222
         notification every 30 seconds.  The actual notification means
 
223
         nothing other than 30 seconds has elapsed since the last time
 
224
         one was sent."
 
225
::= { netSnmpExampleNotifications 1 }
 
226
 
 
227
END