snmpm_conf(3erl)

πŸ“¦
version 25.3.2.8 Β· 4 versions
, in ubuntu noble

πŸ’– 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