snmpm_conf(3erl)
π NAME π
Okay so this is snmpm_conf(3erl), bestie β the Erlang module definition page for the snmpm_conf module. Itβs the SNMP managerβs config-file utility bestie, and itβs lowkey carrying all the paperwork so you donβt have to. π«Ά
β¨ DESCRIPTION β¨
The module snmpm_conf contains various utility functions used for manipulating β thatβs write/append/read energy β the config files of the SNMP manager. Itβs giving βI handle the files, you go be the main character.β π
π EXPORTS π
π manager_entry(Tag, Val) -> manager_entry() π
manager_entry(Tag, Val) -> manager_entry()
Types:
Tag = address | port | engine_id | max_message_size
Val = term()
manager_entry() = term()
Create an entry for the manager config file, manager.conf. The type of Val depends on the value of Tag, so peek at Manager Information for more info, bestie. β¨
π write_manager_config β 2-arg and 3-arg versions π
write_manager_config(Dir, Conf) -> ok
write_manager_config(Dir, Hdr, Conf) -> ok
Types:
Dir = string()
Hdr = string()
Conf = [manager_entry()]
Write the manager config to the manager config file. Dir is the path to the directory where to store the config file. Hdr is an optional file header β and yes, that text is written to the file as is, no cap. See Manager Information for more info. π
π append_manager_config(Dir, Conf) -> ok π
append_manager_config(Dir, Conf) -> ok
Types:
Dir = string()
Conf = [manager_entry()]
Append the config to the current manager config file. Dir is the path to the directory where to store the config file. See Manager Information for more info. πΈ
π read_manager_config(Dir) -> Conf π
read_manager_config(Dir) -> Conf
Types:
Dir = string()
Conf = [manager_entry()]
Read the current manager config file. Dir is the path to the directory where to store the config file. See Manager Information for more info. π¦
π users_entry β the 1-, 2-, and 3-arg versions π
users_entry(UserId) -> users_entry()
users_entry(UserId, UserMod) -> users_entry()
users_entry(UserId, UserMod, UserData) -> users_entry()
Types:
UserId = term()
UserMod = atom()
UserData = term()
standard_entry() = term()
Create an entry for the manager users config file, users.conf. π
users_entry(UserId) translates to the following call:
users_entry(UserId, snmpm_user_default)
users_entry(UserId, UserMod) translates to the following call:
users_entry(UserId, UserMod, undefined)
See Users for more info. π
π write_users_config β 2-arg and 3-arg versions π
write_users_config(Dir, Conf) -> ok
write_users_config(Dir, Hdr, Conf) -> ok
Types:
Dir = string()
Hdr = string()
Conf = [users_entry()]
Write the manager users config to the manager users config file. Dir is the path to the directory where to store the config file. Hdr is an optional file header β and yep, that text is written to the file as is. See Users for more info. β¨
π append_users_config(Dir, Conf) -> ok π
append_users_config(Dir, Conf) -> ok
Types:
Dir = string()
Conf = [users_entry()]
Append the users config to the current manager users config file. Dir is the path to the directory where to store the config file. See Users for more info. π
π read_users_config(Dir) -> Conf π
read_users_config(Dir) -> Conf
Types:
Dir = string()
Conf = [users_entry()]
Read the current manager users config file. Dir is the path to the directory where to store the config file. See Users for more info. π
π agents_entry(...) β the big entry-maker π
agents_entry(UserId, TargetName, Comm, Domain, Addr, EngineID, Timeout, MaxMessageSize, Version, SecModel, SecName, SecLevel) -> agents_entry()
Types:
UserId = term()
TargetName = string()
Comm = string()
Domain = transportDomain()
Addr = transportAddress()
EngineID = string()
Timeout = integer()
MaxMessageSize = integer()
Version = v1 | v2 | v3
SecModel = v1 | v2c | usm
SecName = string()
SecLevel = noAuthNoPriv | authNoPriv | authPriv
agents_entry() = term()
Create an entry for the manager agents config file, agents.conf. See Agents for more info. π₯
π write_agents_config β 2-arg and 3-arg versions π
write_agents_config(Dir, Conf) -> ok
write_agents_config(Dir, Hdr, Conf) -> ok
Types:
Dir = string()
Hdr = string()
Conf = [_entry()]
Write the manager agents config to the manager agents config file. Dir is the path to the directory where to store the config file. Hdr is an optional file header β and that text is written to the file as is, periodt. See Agents for more info. π
π append_agents_config(Dir, Conf) -> ok π
append_agents_config(Dir, Conf) -> ok
Types:
Dir = string()
Conf = [agents_entry()]
Append the agents config to the current manager agents config file. Dir is the path to the directory where to store the config file. See Agents for more info. π¦
π read_agents_config(Dir) -> Conf π
read_agents_config(Dir) -> Conf
Types:
Dir = string()
Conf = [agents_entry()]
Read the current manager agents config file. Dir is the path to the directory where to store the config file. See Agents for more info. π
π usm_entry β 6-arg and 7-arg versions π
usm_entry(EngineID, UserName, AuthP, AuthKey, PrivP, PrivKey) ->
usm_entry()
usm_entry(EngineID, UserName, SecName, AuthP, AuthKey, PrivP, PrivKey)
-> usm_entry()
Types:
EngineID = string()
UserName = string()
SecName = string()
AuthP = usmNoAuthProtocol | usmHMACMD5AuthProtocol |
usmHMACSHAAuthProtocol | usmHMAC128SHA224AuthProtocol |
usmHMAC192SH256AuthProtocol | usmHMAC256SHA384AuthProtocol |
usmHMAC384SHA512AuthProtocol
AuthKey = [integer()]
PrivP = usmNoPrivProtocol | usmDESPrivProtocol |
usmAesCfb128Protocol
PrivKey = [integer()]
usm_entry() = term()
Create an entry for the agent community config file, community.conf. See Security data for USM for more info. π
π write_usm_config β 2-arg and 3-arg versions π
write_usm_config(Dir, Conf) -> ok
write_usm_config(Dir, Hdr, Conf) -> ok
Types:
Dir = string()
Hdr = string()
Conf = [usm_entry()]
Write the manager usm config to the manager usm config file. Dir is the path to the directory where to store the config file. Hdr is an optional file header β written to the file as is, no editing energy. See Security data for USM for more info. π
π append_usm_config(Dir, Conf) -> ok π
append_usm_config(Dir, Conf) -> ok
Types:
Dir = string()
Conf = [usm_entry()]
Append the usm config to the current manager usm config file. Dir is the path to the directory where to store the config file. See Security data for USM for more info. π
π read_usm_config(Dir) -> Conf π
read_usm_config(Dir) -> Conf
Types:
Dir = string()
Conf = [usm_entry()]
Read the current manager usm config file. Dir is the path to the directory where to store the config file. See Security data for USM for more info. πΈ
π cute sign-off: Ericsson AB made this one, version snmp 5.13.5, and itβs the snmpm_conf(3erl) page β the date slot isnβt shown here, so Iβm not inventing one, periodt. Stay config-file cute, bestie. π«Άπ
π¦ 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