1snmp_notification_mib(3)   Erlang Module Definition   snmp_notification_mib(3)
2
3
4

NAME

6       snmp_notification_mib  -  Instrumentation  Functions for SNMP-NOTIFICA‐
7       TION-MIB
8

DESCRIPTION

10       The module snmp_notification_mib implements the  instrumentation  func‐
11       tions  for the SNMP-NOTIFICATION-MIB, and functions for configuring the
12       database.
13
14       The configuration files are described in the SNMP User's Manual.
15

EXPORTS

17       configure(ConfDir) -> void()
18
19              Types:
20
21                 ConfDir = string()
22
23              This function is called from the supervisor at system start-up.
24
25              Inserts all data in the configuration files  into  the  database
26              and  destroys  all  old rows with StorageType volatile. The rows
27              created from the configuration file will have  StorageType  non‐
28              Volatile.
29
30              If  an  error is found in the configuration file, it is reported
31              using the function config_err/2 of the error report module,  and
32              the function fails with reason configuration_error.
33
34              ConfDir is a string which points to the directory where the con‐
35              figuration files are found.
36
37              The configuration file read is: notify.conf.
38
39       reconfigure(ConfDir) -> void()
40
41              Types:
42
43                 ConfDir = string()
44
45              Inserts all data in the configuration files  into  the  database
46              and  destroys  all old data, including the rows with StorageType
47              nonVolatile. The rows created from the configuration  file  will
48              have StorageType nonVolatile.
49
50              Thus, the data in the SNMP-NOTIFICATION-MIB, after this function
51              has been called, is from the configuration files.
52
53              If an error is found in the configuration file, it  is  reported
54              using  the function config_err/2 of the error report module, and
55              the function fails with reason configuration_error.
56
57              ConfDir is a string which points to the directory where the con‐
58              figuration files are found.
59
60              The configuration file read is: notify.conf.
61
62       add_notify(Name, Tag, Type) -> Ret
63
64              Types:
65
66                 Name = string()
67                 Tag = string()
68                 Type = trap | inform
69                 Ret = {ok, Key} | {error, Reason}
70                 Key = term()
71                 Reason = term()
72
73              Adds  a notify definition to the agent config. Equivalent to one
74              line in the notify.conf file.
75
76       delete_notify(Key) -> Ret
77
78              Types:
79
80                 Key = term()
81                 Ret = ok | {error, Reason}
82                 Reason = term()
83
84              Delete a notify definition from the agent config.
85
86
87
88Ericsson AB                        snmp 5.8           snmp_notification_mib(3)
Impressum