This module implements the instrumentation functions for the STANDARD-MIB and SNMPv2-MIB, and functions for configuring the database.
The configuration files are described in the SNMP User's Manual.
ConfDir = string()
This function is called from the supervisor at system start-up.
Inserts all data in the configuration files into the
database. It does not destroy any old permanent data. For
example, if a manager has changed the value for
sysContact
, this value will be preserved even if the
agent reboots.
All snmp
counters are set to zero.
If an error is found in the configuration file, it is
reported using the function snmp_error:config_err/2
,
and the function fails with reason configuration_error
.
ConfDir
is a string including a trailing directory
delimiter, which points to the directory where the
configuration files are found.
inc(Name) -> void()
inc(Name, N) -> void()
Name = atom()
N = integer()
Increments a variable in the MIB with N
, or one if
N
is not specified.
reconfigure(ConfDir) -> void()
ConfDir = string()
This function works as configure/1
, but it forces a
reload of the configuration files; i.e. changes done by the
manager are lost.
Time = int()
Gets the system up time in hundredth of a second.