snmp_vie...d_acm_mib(3erl)
๐ NAME ๐
snmp_view_based_acm_mib โ Instrumentation Functions for SNMP-VIEW-BASED-ACM-MIB.
This is the Erlang Module Definition page for snmp_view_based_acm_mib, bestie. Itโs giving instrumentation functions for the SNMP-VIEW-BASED-ACM-MIB plus the functions that configure the database. ๐ซถ
โจ DESCRIPTION โจ
Okay so the module snmp_view_based_acm_mib implements the instrumentation functions for the SNMP-VIEW-BASED-ACM-MIB, and it also has functions for configuring the database. No cap.
The configuration files are described in the SNMP Userโs Manual. ๐
๐ EXPORTS ๐
configure(ConfDir) -> void()
Types:
ConfDir = string()
This function is called from the supervisor at system start-up. Main character energy from the jump.
It inserts all data in the configuration files into the database and destroys all old rows with StorageType volatile. The rows created from the configuration file will have StorageType nonVolatile. Thatโs the glow-up. โจ
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 the reason configuration_error. So yeah, it can absolutely fail โ thatโs the drama. ๐
ConfDir is a string which points to the directory where the configuration files are found.
The configuration file read is: vacm.conf. ๐
reconfigure(ConfDir) -> void()
Types:
ConfDir = string()
This one inserts all data in the configuration files into the database and destroys all old data, including the rows with StorageType nonVolatile. Rows created from the configuration file will have StorageType nonVolatile. So itโs a full reset with the configโs data, periodt.
Thus, the data in the SNMP-VIEW-BASED-ACM-MIB, after this function has been called, is the data from the configuration files. Thatโs the whole vibe.
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 the reason configuration_error. Same error energy as configure/1, bestie. ๐
ConfDir is a string which points to the directory where the configuration files are found.
The configuration file read is: vacm.conf. ๐
add_sec2group(SecModel, SecName, GroupName) -> Ret
Types:
SecModel = v1 | v2c | usmSecName = string()GroupName = string()Ret = {ok, Key} | {error, Reason}Key = term()Reason = term()
Adds a security to group definition to the agent config. Equivalent to one vacmSecurityToGroup-line in the vacm.conf file. Slay. ๐
delete_sec2group(Key) -> Ret
Types:
Key = term()Ret = ok | {error, Reason}Reason = term()
Delete a security to group definition from the agent config. Bye bestie. ๐
add_access(GroupName, Prefix, SecModel, SecLevel, Match, RV, WV, NV) -> Ret
Types:
GroupName = string()Prefix = string()SecModel = v1 | v2c | usmSecLevel = string()Match = prefix | exactRV = string()WV = string()NV = string()Ret = {ok, Key} | {error, Reason}Key = term()Reason = term()
Adds an access definition to the agent config. Equivalent to one vacmAccess-line in the vacm.conf file. Itโs giving access, literally. ๐ฅ
delete_access(Key) -> Ret
Types:
Key = term()Ret = ok | {error, Reason}Reason = term()
Delete an access definition from the agent config. Itโs gone, bestie. ๐ฆ
add_view_tree_fam(ViewIndex, SubTree, Status, Mask) -> Ret
Types:
ViewIndex = integer()SubTree = oid()Status = included | excludedMask = null | [integer()], where all values are either 0 or 1Ret = {ok, Key} | {error, Reason}Key = term()Reason = term()
Adds a view tree family definition to the agent config. Equivalent to one vacmViewTreeFamily-line in the vacm.conf file. ๐
delete_view_tree_fam(Key) -> Ret
Types:
Key = term()Ret = ok | {error, Reason}Reason = term()
Delete a view tree family definition from the agent config. Poof. โจ
Footer cuteness, fr fr: Ericsson AB ยท snmp 5.13.5 ยท snmp_vie...d_acm_mib(3erl). The date isnโt printed here, so Iโm not inventing one โ periodt. ๐ซถ๐
๐ฆ 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