1
NET-SNMP-EXAMPLES-MIB DEFINITIONS ::= BEGIN
4
-- Example MIB objects for agent module example implementations
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
15
netSnmpExamples MODULE-IDENTITY
16
LAST-UPDATED "200202060000Z"
17
ORGANIZATION "www.net-snmp.org"
23
email: net-snmp-coders@lists.sourceforge.net"
25
"Example MIB objects for agent module example implementations"
26
REVISION "200202060000Z"
32
-- top level structure
34
netSnmpExampleScalars OBJECT IDENTIFIER ::= { netSnmpExamples 1 }
35
netSnmpExampleTables OBJECT IDENTIFIER ::= { netSnmpExamples 2 }
36
netSnmpExampleNotifications OBJECT IDENTIFIER ::= { netSnmpExamples 3 }
37
-- netSnmpTutorial OBJECT IDENTIFIER ::= { netSnmpExamples 4 }
43
netSnmpExampleInteger OBJECT-TYPE
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.
53
This example object is implemented in the
54
agent/mibgroup/examples/scalar_int.c file."
56
::= { netSnmpExampleScalars 1 }
58
netSnmpExampleSleeper OBJECT-TYPE
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
76
This example object is implemented in the
77
agent/mibgroup/examples/delayed_instance.c file."
79
::= { netSnmpExampleScalars 2 }
86
netSnmpIETFWGTable OBJECT-TYPE
87
SYNTAX SEQUENCE OF NetSnmpIETFWGEntry
88
MAX-ACCESS not-accessible
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.
96
This example table is implemented in the
97
agent/mibgroup/examples/data_set.c file."
98
::= { netSnmpExampleTables 1 }
100
netSnmpIETFWGEntry OBJECT-TYPE
101
SYNTAX NetSnmpIETFWGEntry
102
MAX-ACCESS not-accessible
105
"A row describing a given working group"
106
INDEX { nsIETFWGName }
107
::= {netSnmpIETFWGTable 1 }
109
NetSnmpIETFWGEntry ::= SEQUENCE {
110
nsIETFWGName OCTET STRING,
111
nsIETFWGChair1 OCTET STRING,
112
nsIETFWGChair2 OCTET STRING
115
nsIETFWGName OBJECT-TYPE
116
SYNTAX OCTET STRING (SIZE(1..32))
117
MAX-ACCESS not-accessible
120
"The name of the IETF Working Group this table describes."
121
::= { netSnmpIETFWGEntry 1 }
123
nsIETFWGChair1 OBJECT-TYPE
125
MAX-ACCESS read-create
128
"One of the names of the chairs for the IETF working group."
129
::= { netSnmpIETFWGEntry 2 }
131
nsIETFWGChair2 OBJECT-TYPE
133
MAX-ACCESS read-create
136
"The other name, if one exists, of the chairs for the IETF
138
::= { netSnmpIETFWGEntry 3 }
141
-- A table used in a table_iterator example
142
-- (agent/mibgroup/examples/netSnmpHostsTable*.[ch])
145
netSnmpHostsTable OBJECT-TYPE
146
SYNTAX SEQUENCE OF NetSnmpHostsEntry
147
MAX-ACCESS not-accessible
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 }
154
netSnmpHostsEntry OBJECT-TYPE
155
SYNTAX NetSnmpHostsEntry
156
MAX-ACCESS not-accessible
159
"A host name mapped to an ip address"
160
INDEX { netSnmpHostName }
161
::= { netSnmpHostsTable 1 }
163
NetSnmpHostsEntry ::= SEQUENCE {
164
netSnmpHostName OCTET STRING,
165
netSnmpHostAddressType InetAddressType,
166
netSnmpHostAddress InetAddress,
167
netSnmpHostStorage StorageType,
168
netSnmpHostRowStatus RowStatus
171
netSnmpHostName OBJECT-TYPE
172
SYNTAX OCTET STRING (SIZE(0..64))
173
MAX-ACCESS not-accessible
176
"A host name that exists in the /etc/hosts (unix) file."
177
::= { netSnmpHostsEntry 1 }
179
netSnmpHostAddressType OBJECT-TYPE
180
SYNTAX InetAddressType
181
MAX-ACCESS read-create
184
"The address type of then given host."
185
::= { netSnmpHostsEntry 2 }
187
netSnmpHostAddress OBJECT-TYPE
189
MAX-ACCESS read-create
192
"The address of then given host."
193
::= { netSnmpHostsEntry 3 }
195
netSnmpHostStorage OBJECT-TYPE
197
MAX-ACCESS read-create
199
DESCRIPTION "The storage type for this conceptual row."
200
DEFVAL { nonVolatile }
201
::= { netSnmpHostsEntry 4 }
203
netSnmpHostRowStatus OBJECT-TYPE
205
MAX-ACCESS read-create
207
DESCRIPTION "The status of this conceptual row."
208
::= { netSnmpHostsEntry 5 }
212
-- Example Notifications
215
netSnmpExampleNotification OBJECT-TYPE
216
SYNTAX SnmpAdminString
217
MAX-ACCESS accessible-for-notify
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
225
::= { netSnmpExampleNotifications 1 }