aboutsummaryrefslogtreecommitdiffstats
path: root/lib/snmp/doc/src/snmp_impl_example_manager.xml
blob: 789c6c169ecdad1b598fb5c44028cbd6ab033aed (plain) (blame)
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
<?xml version="1.0" encoding="utf-8" ?>
<!DOCTYPE chapter SYSTEM "chapter.dtd">

<chapter>
  <header>
    <copyright>
      <year>2006</year><year>2013</year>
      <holder>Ericsson AB. All Rights Reserved.</holder>
    </copyright>
    <legalnotice>
      Licensed under the Apache License, Version 2.0 (the "License");
      you may not use this file except in compliance with the License.
      You may obtain a copy of the License at
 
          http://www.apache.org/licenses/LICENSE-2.0

      Unless required by applicable law or agreed to in writing, software
      distributed under the License is distributed on an "AS IS" BASIS,
      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
      See the License for the specific language governing permissions and
      limitations under the License.
    
    </legalnotice>

    <title>Manager Implementation Example</title>
    <prepared></prepared>
    <responsible></responsible>
    <docno></docno>
    <approved></approved>
    <checked></checked>
    <date></date>
    <rev></rev>
    <file>snmp_impl_example_manager.xml</file>
  </header>
  <p>This <em>Implementation Example</em> section describes 
    how a simple manager can be implemented with the 
    SNMP Development Toolkit. </p>
  <p>The example shown, <em>ex2</em>, can be found in the toolkit 
    distribution. </p>
  <p>This example has two functions: </p>
  <list type="bulleted">
    <item>
      <p>A simple example of how to use the manager component of 
        the SNMP Development Toolkit.</p>
    </item>
    <item>
      <p>A simple example of how to write agent test cases, using the new
        manager.</p>
    </item>
  </list>

  <section>
    <title>The example manager</title>
    <p>The example manager, <c>snmp_ex2_manager</c>, is a simple example of 
      how to implement an snmp manager using the manager component of the
      SNMP Development Toolkit.</p>
    <p>The module exports the following functions:</p>
    <list type="bulleted">
      <item>
        <p>start_link/0, start_link/1</p>
      </item>
      <item>
        <p>stop/0</p>
      </item>
      <item>
        <p>agent/2, agent/3</p>
      </item>
      <item>
        <p>sync_get/2, sync_get/3</p>
      </item>
      <item>
        <p>sync_get_next/2, sync_get_next/3</p>
      </item>
      <item>
        <p>sync_get_bulk/4, sync_get_bulk/5</p>
      </item>
      <item>
        <p>sync_set/2, sync_set/3</p>
      </item>
      <item>
        <p>oid_to_name/1</p>
      </item>
    </list>
    <p>This module is also used by the test module described in the 
      next section.</p>
  </section>

  <section>
    <title>A simple standard test</title>
    <p>This simple standard test, <c>snmp_ex2_simple_standard_test</c>,
      a module which, using the <c>snmp_ex2_manager</c> described in the
      previous section, implements a simple agent test utility. </p>
  </section>
</chapter>