1
<?xml version="1.0" encoding="latin1" ?>
2
<!DOCTYPE erlref SYSTEM "erlref.dtd">
7
<year>1999</year><year>2009</year>
8
<holder>Ericsson AB. All Rights Reserved.</holder>
11
The contents of this file are subject to the Erlang Public License,
12
Version 1.1, (the "License"); you may not use this file except in
13
compliance with the License. You should have received a copy of the
14
Erlang Public License along with this software. If not, it can be
15
retrieved online at http://www.erlang.org/.
17
Software distributed under the License is distributed on an "AS IS"
18
basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
19
the License for the specific language governing rights and limitations
24
<title>snmp_framework_mib</title>
26
<responsible></responsible>
32
<file>snmp_framework_mib.xml</file>
34
<module>snmp_framework_mib</module>
35
<modulesummary>Instrumentation Functions for SNMP-FRAMEWORK-MIB</modulesummary>
37
<p>The module <c>snmp_framework_mib</c> implements instrumentation
39
SNMP-FRAMEWORK-MIB, and functions for initializing and configuring the
42
<p>The configuration files are described in the SNMP User's Manual.</p>
46
<name>configure(ConfDir) -> void()</name>
47
<fsummary>Configure the SNMP-FRAMEWORK-MIB</fsummary>
49
<v>ConfDir = string()</v>
52
<p>This function is called from the supervisor at system
55
<p>Inserts all data in the configuration files into the
56
database and destroys all old data.
58
<p>Thus, the data in the SNMP-FRAMEWORK-MIB, after this
59
function has been called, is from the configuration
62
<p>All <c>snmp</c> counters are set to zero.
64
<p>If an error is found in the configuration file, it is
65
reported using the function <c>config_err/2</c> of the error
66
report module, and the function fails with reason
67
<c>configuration_error</c>.
69
<p><c>ConfDir</c> is a string which points to the directory
70
where the configuration files are found.
72
<p>The configuration file read is: <c>context.conf</c>.
77
<name>init() -> void()</name>
78
<fsummary>Initialize the SNMP-FRAMEWORK-MIB</fsummary>
80
<p>This function is called from the supervisor at system
83
<p>Creates the necessary objects in the database if they do not
84
exist. It does not destroy any old values.
85
<marker id="add_context"></marker>
90
<name>add_context(Ctx) -> Ret</name>
91
<fsummary>Added one context</fsummary>
94
<v>Ret = {ok, Key} | {error, Reason}</v>
96
<v>Reason = term()</v>
99
<p>Adds a context to the agent config.
100
Equivalent to one line in the <c>context.conf</c> file.</p>
101
<marker id="delete_context"></marker>
105
<name>delete_context(Key) -> Ret</name>
106
<fsummary>Delete one context</fsummary>
109
<v>Ret = ok | {error, Reason}</v>
110
<v>Reason = term()</v>
113
<p>Delete a context from the agent config.</p>