File: snmp_intro.html

package info (click to toggle)
erlang-doc-html 1%3A11.b.2-1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 23,284 kB
  • ctags: 10,724
  • sloc: erlang: 505; ansic: 323; makefile: 62; perl: 61; sh: 45
file content (533 lines) | stat: -rw-r--r-- 8,666 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<!-- This document was generated using DocBuilder 3.3.3 -->
<HTML>
<HEAD>
  <TITLE>SNMP Introduction</TITLE>
  <SCRIPT type="text/javascript" src="../../../../doc/erlresolvelinks.js">
</SCRIPT>
</HEAD>
<BODY BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#0000FF" VLINK="#FF00FF"
      ALINK="#FF0000">
<CENTER>
<A HREF="http://www.erlang.se"><IMG BORDER=0 ALT="[Ericsson AB]" SRC="min_head.gif"></A>
</CENTER>
<A NAME="1"><!-- Empty --></A>
<H2>1 SNMP Introduction</H2>

<P>The SNMP development toolkit contains the following parts:


<P>
<UL>

<LI>
An Extensible multi-lingual SNMP agent, which understands SNMPv1
(RFC1157), SNMPv2c (RFC1901, 1905, 1906 and 1907), SNMPv3
(RFC2271, 2272, 2273, 2274 and 2275), or any combination of
these protocols.


</LI>


<LI>
A multi-lingual SNMP manager.


</LI>


<LI>
A MIB compiler, which understands SMIv1 (RFC1155, 1212, and
1215) and SMIv2 (RFC1902, 1903, and 1904).


</LI>


</UL>

<P>The SNMP development tool provides an environment for
rapid agent/manager prototyping and construction. With the 
following information provided, this tool is used to set up a 
running multi-lingual SNMP agent/manager:


<P>
<UL>

<LI>
a description of a Management Information Base (MIB) in
Abstract Syntax Notation One (ASN.1)


</LI>


<LI>
instrumentation functions for the managed objects in the MIB,
written in Erlang.


</LI>


</UL>

<P>The advantage of using an extensible (agent/manager) toolkit is to 
remove details such as type-checking, access rights, Protocol Data Unit
(PDU), encoding, decoding, and trap distribution from the
programmer, who only has to write the instrumentation functions,
which implement the MIBs. The <CODE>get-next</CODE> function only
has to be implemented for tables, and not for every variable in
the global naming tree. This information can be deduced from the
ASN.1 file.

<A NAME="1.1"><!-- Empty --></A>
<H3>1.1 Scope and Purpose</H3>

<P>This manual describes the SNMP development tool,
as a component of the Erlang/Open Telecom Platform development
environment. It is assumed that the reader is familiar with the
Erlang Development Environment, which is described in a separate
User's Guide.
<A NAME="1.2"><!-- Empty --></A>
<H3>1.2 Prerequisites</H3>

<P>The following prerequisites
is required for understanding the material in the SNMP
User's Guide:


<P>
<UL>

<LI>
the basics of the Simple Network Management Protocol
        version 1 (SNMPv1)


</LI>


<LI>
the basics of the community-based Simple Network
        Management Protocol version 2 (SNMPv2c)


</LI>


<LI>
the basics of the Simple Network Management Protocol
        version 3 (SNMPv3)


</LI>


<LI>
the knowledge of defining MIBs using SMIv1 and SMIv2


</LI>


<LI>
familiarity with the Erlang system and Erlang programming


</LI>


</UL>

<P>The tool requires Erlang release 4.7 or later.

<A NAME="1.3"><!-- Empty --></A>
<H3>1.3 Definitions</H3>

<P>The following definitions are used in the SNMP User's Guide.



<P>
<DL>

<DT>
MIB


</DT>

<DD>
The conceptual repository for management information is
        called the Management Information Base (MIB). It does not
        hold any data, merely a definition of what
        data can be accessed. A definition of an MIB is a
        description of a collection of managed objects.


</DD>

<DT>
SMI


</DT>

<DD>
The MIB is specified in an adapted subset of the Abstract
Syntax Notation One (ASN.1) language. This adapted subset is
called the Structure of Management Information (SMI).


</DD>

<DT>
ASN.1


</DT>

<DD>
ASN.1 is used in two different ways in SNMP. The SMI is
based on ASN.1, and the messages in the protocol are defined by
using ASN.1.


</DD>

<DT>
Managed object


</DT>

<DD>
A resource to be managed is represented by a managed
object, which resides in the MIB. In an SNMP MIB, the managed
objects are either:

        
<UL>

<LI>
<STRONG>scalar variables</STRONG>, which have only one instance
         per context. They have single values, not multiple values like
         vectors or structures.
         
         
</LI>


<LI>
<STRONG>tables</STRONG>, which can grow dynamically.
         
         
</LI>


<LI>
a <STRONG>table element</STRONG>, which is a special type of
         scalar variable.
        
</LI>


</UL>



</DD>

<DT>
Operations


</DT>

<DD>
SNMP relies on the three basic operations: get (object),
set (object, value) and get-next (object).


</DD>

<DT>
Instrumentation function


</DT>

<DD>
An instrumentation function is associated with each
managed object. This is the function, which actually implements
the operations and will be called by the agent when it receives
        a request from the management station.
</DD>

<DT>
Manager
</DT>

<DD>
A manager generates commands and receives notifications 
        from agents. There usually are only a few managers in a system.
</DD>

<DT>
Agent
</DT>

<DD>
An agent responds to commands from the manager, and sends
        notification to the manager. There are potentially many agents 
        in a systrem.
</DD>

</DL>
<A NAME="1.4"><!-- Empty --></A>
<H3>1.4 About This Manual</H3>

<P>In addition to this introductory chapter, the SNMP User's Guide
contains the following chapters:


<P>
<UL>

<LI>
Chapter 2: &#34;Functional Description&#34; describes the features
        and operation of the SNMP development toolkit. It includes
        topics on Subagents and MIB loading, Internal MIBs, and Traps.


</LI>


<LI>
Chapter 3: &#34;The MIB Compiler&#34; describes the features and the
        operation of the MIB compiler.


</LI>


<LI>
Chapter 4: &#34;Running the application&#34; describes how to start and
        configure the application. Topics on how to debug the application 
        are also included.


</LI>


<LI>
Chapter 5: &#34;Definition of Agent Configuration Files&#34; is a
        reference chapter, which contains more detailed information about
        the agent configuration files.


</LI>


<LI>
Chapter 6: &#34;Definition of Manager Configuration Files&#34; is a
        reference chapter, which contains more detailed information about
        the manager configuration files.


</LI>


<LI>
Chapter 7: &#34;Agent Implementation Example&#34; describes how an MIB
        can be implemented with the SNMP Development Toolkit. 
        Implementation examples are included.


</LI>


<LI>
Chapter 8: &#34;Instrumentation Functions&#34; describes how
        instrumentation functions should be defined in Erlang for the
        different operations.


</LI>


<LI>
Chapter 9: &#34;Definition of Instrumentation Functions&#34; is a
        reference chapter which contains more detailed information
        about the instrumentation functions.


</LI>


<LI>
Chapter 10: &#34;Definition of Agent Net if&#34; is a reference chapter,
        which describes the Agent Net if function in detail.


</LI>


<LI>
Chapter 11: &#34;Definition of Manager Net if&#34; is a reference chapter,
        which describes the Manager Net if function in detail.


</LI>


<LI>
Chapter 12: &#34;Advanced Agent Topics&#34; describes subagents, agent
        semantics, audit trail logging, and the consideration of
        distributed tables.


</LI>


<LI>
Appendix A describes the conversion of SNMPv2 to SNMPv1
        error messages.


</LI>


<LI>
Appendix B contains the RFC1903 text on <CODE>RowStatus</CODE>.


</LI>


</UL>
<A NAME="1.5"><!-- Empty --></A>
<H3>1.5 Where to Find More Information</H3>

<P>Refer to the following documentation for more information about
SNMP and about the Erlang/OTP development system:


<P>
<UL>

<LI>
Marshall T. Rose (1991), &#34;The Simple Book - An
        Introduction to Internet Management&#34;, Prentice-Hall


</LI>


<LI>
Evan McGinnis and David Perkins (1997), &#34;Understanding SNMP
MIBs&#34;, Prentice-Hall


</LI>


<LI>
RFC1155, 1157, 1212 and 1215 (SNMPv1)


</LI>


<LI>
RFC1901-1907 (SNMPv2c)


</LI>


<LI>
RFC1908, 2089 (coexistence between SNMPv1 and SNMPv2)


</LI>


<LI>
RFC2271, RFC2273 (SNMP std MIBs)


</LI>


<LI>
the Mnesia User's Guide


</LI>


<LI>
the Erlang 4.4 Extensions User's Guide


</LI>


<LI>
the Reference Manual


</LI>


<LI>
the Erlang Embedded Systems User's Guide


</LI>


<LI>
the System Architecture Support Libraries (SASL) User's
        Guide


</LI>


<LI>
the Installation Guide


</LI>


<LI>
the Asn1 User's Guide


</LI>


<LI>
Concurrent Programming in Erlang, 2nd Edition (1996),
        Prentice-Hall, ISBN 0-13-508301-X.


</LI>


</UL>
<CENTER>
<HR>
<SMALL>
Copyright &copy; 1991-2006
<A HREF="http://www.erlang.se">Ericsson AB</A><BR>
</SMALL>
</CENTER>
</BODY>
</HTML>