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 netSnmp FROM NET-SNMP-MIB;
11 netSnmpExamples MODULE-IDENTITY
12 LAST-UPDATED "200202060000Z"
13 ORGANIZATION "www.net-snmp.org"
19 email: net-snmp-coders@lists.sourceforge.net"
21 "Example MIB objects for agent module example implementations"
22 REVISION "200202060000Z"
28 -- top level structure
30 netSnmpExampleScalars OBJECT IDENTIFIER ::= { netSnmpExamples 1 }
31 netSnmpExampleTables OBJECT IDENTIFIER ::= { netSnmpExamples 2 }
32 netSnmpExampleNotifications OBJECT IDENTIFIER ::= { netSnmpExamples 3 }
33 -- netSnmpTutorial OBJECT IDENTIFIER ::= { netSnmpExamples 4 }
39 netSnmpExampleInteger OBJECT-TYPE
44 "This is a simple object which merely houses a writable
45 integer. It's only purposes is to hold the value of a single
46 integer. Writing to it will simply change the value for
47 subsequent GET/GETNEXT/GETBULK retrievals.
49 This example object is implemented in the
50 agent/mibgroup/examples/scalar_int.c file."
52 ::= { netSnmpExampleScalars 1 }
54 netSnmpExampleSleeper OBJECT-TYPE
59 "This is a simple object which is a basic integer. It's value
60 indicates the number of seconds that the agent will take in
61 responding to requests of this object. This is implemented
62 in a way which will allow the agent to keep responding to
63 other requests while access to this object is blocked. It is
64 writable, and changing it's value will change the amount of
65 time the agent will effectively wait for before returning a
66 response when this object is manipulated. Note that SET
67 requests through this object will take longer, since the
68 delay is applied to each internal transaction phase, which
69 could result in delays of up to 4 times the value of this
72 This example object is implemented in the
73 agent/mibgroup/examples/delayed_instance.c file."
75 ::= { netSnmpExampleScalars 2 }
82 netSnmpIETFWGTable OBJECT-TYPE
83 SYNTAX SEQUENCE OF NetSnmpIETFWGEntry
84 MAX-ACCESS not-accessible
87 "This table merely contains a set of data which is otherwise
88 useless for true network management. It is a table which
89 describes properies about a IETF Working Group, such as the
90 names of the two working group chairs.
92 This example table is implemented in the
93 agent/mibgroup/examples/data_set.c file."
94 ::= { netSnmpExampleTables 1 }
96 netSnmpIETFWGEntry OBJECT-TYPE
97 SYNTAX NetSnmpIETFWGEntry
98 MAX-ACCESS not-accessible
101 "A rowm describing a given working group"
102 INDEX { nsIETFWGName }
103 ::= {netSnmpIETFWGTable 1 }
105 NetSnmpIETFWGEntry ::= SEQUENCE {
106 nsIETFWGName OCTET STRING,
107 nsIETFWGChair1 OCTET STRING,
108 nsIETFWGChair2 OCTET STRING
111 nsIETFWGName OBJECT-TYPE
112 SYNTAX OCTET STRING (SIZE(1..32))
113 MAX-ACCESS not-accessible
116 "The name of the IETF Working Group this table describes."
117 ::= { netSnmpIETFWGEntry 1 }
119 nsIETFWGChair1 OBJECT-TYPE
121 MAX-ACCESS read-create
124 "One of the names of the chairs for the IETF working group."
125 ::= { netSnmpIETFWGEntry 2 }
127 nsIETFWGChair2 OBJECT-TYPE
129 MAX-ACCESS read-create
132 "The other name, if one exists, of the chairs for the IETF
134 ::= { netSnmpIETFWGEntry 3 }
137 -- Example Notifications
140 netSnmpExampleNotification OBJECT-TYPE
141 SYNTAX SnmpAdminString
142 MAX-ACCESS accessible-for-notify
145 "This is a boring example that is used in the
146 agent/mibgroup/examples/notification.c to send out a
147 notification every 30 seconds. The actual notification means
148 nothing other than 30 seconds has elapsed since the last time
150 ::= { netSnmpExampleNotifications 1 }