1
<?xml version="1.0" encoding="latin1" ?>
2
<!DOCTYPE erlref SYSTEM "erlref.dtd">
7
<year>1998</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_notification_mib</title>
26
<responsible></responsible>
32
<file>snmp_notification_mib.xml</file>
34
<module>snmp_notification_mib</module>
35
<modulesummary>Instrumentation Functions for SNMP-NOTIFICATION-MIB</modulesummary>
37
<p>The module <c>snmp_notification_mib</c> implements the
38
instrumentation functions for the
39
SNMP-NOTIFICATION-MIB, and functions for configuring the database.
41
<p>The configuration files are described in the SNMP User's Manual.</p>
45
<name>configure(ConfDir) -> void()</name>
46
<fsummary>Configure the SNMP-NOTIFICATION-MIB</fsummary>
48
<v>ConfDir = string()</v>
51
<p>This function is called from the supervisor at system
54
<p>Inserts all data in the configuration files into the
55
database and destroys all old rows with StorageType
56
<c>volatile</c>. The rows created from the configuration file
57
will have StorageType <c>nonVolatile</c>.
59
<p>If an error is found in the configuration file, it is
60
reported using the function <c>config_err/2</c> of the
62
and the function fails with reason <c>configuration_error</c>.
64
<p><c>ConfDir</c> is a string which points to the directory
65
where the configuration files are found.
67
<p>The configuration file read is: <c>notify.conf</c>.
72
<name>reconfigure(ConfDir) -> void()</name>
73
<fsummary>Configure the SNMP-NOTIFICATION-MIB</fsummary>
75
<v>ConfDir = string()</v>
78
<p>Inserts all data in the configuration files into the
79
database and destroys all old data, including the rows with
80
StorageType <c>nonVolatile</c>. The rows created from the
81
configuration file will have StorageType <c>nonVolatile</c>.
83
<p>Thus, the data in the SNMP-NOTIFICATION-MIB, after this
84
function has been called, is from the configuration files.
86
<p>If an error is found in the configuration file, it is
87
reported using the function <c>config_err/2</c> of the
89
and the function fails with reason <c>configuration_error</c>.
91
<p><c>ConfDir</c> is a string which points to the directory
92
where the configuration files are found.
94
<p>The configuration file read is: <c>notify.conf</c>.
95
<marker id="add_notify"></marker>
100
<name>add_notify(Name, Tag, Type) -> Ret</name>
101
<fsummary>Added one notify definition</fsummary>
103
<v>Name = string()</v>
104
<v>Tag = string()</v>
105
<v>Type = trap | inform</v>
106
<v>Ret = {ok, Key} | {error, Reason}</v>
108
<v>Reason = term()</v>
111
<p>Adds a notify definition to the agent config.
112
Equivalent to one line in the <c>notify.conf</c> file.</p>
113
<marker id="delete_notify"></marker>
117
<name>delete_notify(Key) -> Ret</name>
118
<fsummary>Delete one notify definition</fsummary>
121
<v>Ret = ok | {error, Reason}</v>
122
<v>Reason = term()</v>
125
<p>Delete a notify definition from the agent config.</p>