aboutsummaryrefslogtreecommitdiffstats
path: root/lib/snmp/doc/src/snmp_framework_mib.xml
blob: 3b4eb52ec2828d61af750e40cea313eb5dd3d23f (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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
<?xml version="1.0" encoding="utf-8" ?>
<!DOCTYPE erlref SYSTEM "erlref.dtd">

<erlref>
  <header>
    <copyright>
      <year>1999</year><year>2013</year>
      <holder>Ericsson AB. All Rights Reserved.</holder>
    </copyright>
    <legalnotice>
      The contents of this file are subject to the Erlang Public License,
      Version 1.1, (the "License"); you may not use this file except in
      compliance with the License. You should have received a copy of the
      Erlang Public License along with this software. If not, it can be
      retrieved online at http://www.erlang.org/.
    
      Software distributed under the License is distributed on an "AS IS"
      basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
      the License for the specific language governing rights and limitations
      under the License.
    
    </legalnotice>

    <title>snmp_framework_mib</title>
    <prepared></prepared>
    <responsible></responsible>
    <docno></docno>
    <approved></approved>
    <checked></checked>
    <date></date>
    <rev></rev>
    <file>snmp_framework_mib.xml</file>
  </header>
  <module>snmp_framework_mib</module>
  <modulesummary>Instrumentation Functions for SNMP-FRAMEWORK-MIB</modulesummary>
  <description>
    <p>The module <c>snmp_framework_mib</c> implements instrumentation
      functions for the
      SNMP-FRAMEWORK-MIB, and functions for initializing and configuring the
      database.
      </p>
    <p>The configuration files are described in the SNMP User's Manual.</p>
  </description>
  <funcs>
    <func>
      <name>configure(ConfDir) -> void()</name>
      <fsummary>Configure the SNMP-FRAMEWORK-MIB</fsummary>
      <type>
        <v>ConfDir = string()</v>
      </type>
      <desc>
        <p>This function is called from the supervisor at system
          start-up.
          </p>
        <p>Inserts all data in the configuration files into the
          database and destroys all old data.
          </p>
        <p>Thus, the data in the SNMP-FRAMEWORK-MIB, after this
          function has been called, is from the configuration
          files.
          </p>
        <p>All <c>snmp</c> counters are set to zero.
          </p>
        <p>If an error is found in the configuration file, it is
          reported using the function <c>config_err/2</c> of the error 
          report module, and the function fails with reason 
          <c>configuration_error</c>.
          </p>
        <p><c>ConfDir</c> is a string which points to the directory
          where the configuration files are found.
          </p>
        <p>The configuration file read is: <c>context.conf</c>.
          </p>
      </desc>
    </func>
    <func>
      <name>init() -> void()</name>
      <fsummary>Initialize the SNMP-FRAMEWORK-MIB</fsummary>
      <desc>
        <p>This function is called from the supervisor at system
          start-up.
          </p>
        <p>Creates the necessary objects in the database if they do not
          exist. It does not destroy any old values.
                    <marker id="add_context"></marker>
</p>
      </desc>
    </func>
    <func>
      <name>add_context(Ctx) -> Ret</name>
      <fsummary>Added one context</fsummary>
      <type>
        <v>Ctx = string()</v>
        <v>Ret = {ok, Key} | {error, Reason}</v>
        <v>Key = term()</v>
        <v>Reason = term()</v>
      </type>
      <desc>
        <p>Adds a context to the agent config. 
          Equivalent to one line in the <c>context.conf</c> file.</p>
        <marker id="delete_context"></marker>
      </desc>
    </func>
    <func>
      <name>delete_context(Key) -> Ret</name>
      <fsummary>Delete one context</fsummary>
      <type>
        <v>Key = term()</v>
        <v>Ret = ok | {error, Reason}</v>
        <v>Reason = term()</v>
      </type>
      <desc>
        <p>Delete a context from the agent config.</p>
      </desc>
    </func>
  </funcs>
  
</erlref>