snmp_framework_mib(3erl)
π NAME π
Okay so, bestie, meet snmp_framework_mib β iconic module alert β the manual page is snmp_framework_mib(3erl), and itβs an Erlang Module Definition. This module is all about Instrumentation Functions for SNMP-FRAMEWORK-MIB. Itβs giving SNMP framework support, no cap. π
β¨ DESCRIPTION β¨
So hereβs the tea β: snmp_framework_mib implements instrumentation functions for the SNMP-FRAMEWORK-MIB, plus functions for initializing and configuring the database. The configuration files are described in the SNMP User's Manual β thatβs where the config-file lore lives, iykyk. π¦
π EXPORTS π
π configure(ConfDir) -> void()
Types:
ConfDir = string()
Supervisor calls this at system start-up. It inserts all data in the configuration files into the database and destroys all old data. So after this function has been called, the data in SNMP-FRAMEWORK-MIB is from the configuration files. Thatβs the whole assignment. π
All snmp counters are set to zero. If an error is found in the configuration file, it is reported using the function config_err/2 of the error report module, and the function fails with reason configuration_error.
ConfDir is a string which points to the directory where the configuration files are found. The configuration file read is: context.conf.
β οΈ Bestie, warning:configure(ConfDir)destroys all old data and zeros allsnmpcounters. Thatβs not a drill, fr fr. π¨
πΈ init() -> void()
Called from the supervisor at system start-up. It creates the necessary objects in the database if they do not exist. It does not destroy any old values. Gentle queen behavior β old values stay put. π«Ά
π¦ add_context(Ctx) -> Ret
Types:
Ctx = string()Ret = {ok, Key} | {error, Reason}Key = term()Reason = term()
Adds a context to the agent config. Equivalent to one line in the context.conf file. Slay. β¨
π delete_context(Key) -> Ret
Types:
Key = term()Ret = ok | {error, Reason}Reason = term()
Delete a context from the agent config. Short, iconic, done. π
π Thatβs the whole page, bestie β cute footer sign-off: Ericsson AB Β· snmp 5.13.5 Β· snmp_framework_mib(3erl). The footer date isnβt separately printed, so Iβm not inventing one, ngl. π«Ά
π¦ where this page comes from
- ubuntu noble: erlang-manpages 1:25.3.2.8+dfsg-1ubuntu4 Β· Apache-2.0
- ubuntu noble: erlang-manpages 1:25.3.2.8+dfsg-1ubuntu4.8 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms