snmpm_conf

Module

snmpm_conf

Module Summary

Utility functions for handling the manager config files.

Description

The module snmpm_conf contains various utility functions to used for manipulating (write/append/read) the config files of the SNMP manager.

Exports

manager_entry(Tag, Val) -> manager_entry()

Types

Create an entry for the manager config file, manager.conf.

The type of Val depends on the value of Tag, see Manager Information for more info.

write_manager_config(Dir, Conf) -> okwrite_manager_config(Dir, Hdr, Conf) -> ok

Types

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 (note that this text is written to the file as is).

See Manager Information for more info.

append_manager_config(Dir, Conf) -> ok

Types

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

Types

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(UserId) -> users_entry()users_entry(UserId, UserMod) -> users_entry()users_entry(UserId, UserMod, UserData) -> users_entry()

Types

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(Dir, Conf) -> okwrite_users_config(Dir, Hdr, Conf) -> ok

Types

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 (note that this text is written to the file as is).

See Users for more info.

append_users_config(Dir, Conf) -> ok

Types

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

Types

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(UserId, TargetName, Comm, Domain, Addr, EngineID, Timeout, MaxMessageSize, Version, SecModel, SecName, SecLevel) -> agents_entry()

Types

Create an entry for the manager agents config file, agents.conf.

See Agents for more info.

write_agents_config(Dir, Conf) -> okwrite_agents_config(Dir, Hdr, Conf) -> ok

Types

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 (note that this text is written to the file as is).

See Agents for more info.

append_agents_config(Dir, Conf) -> ok

Types

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

Types

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(EngineID, UserName, AuthP, AuthKey, PrivP, PrivKey) -> usm_entry()usm_entry(EngineID, UserName, SecName, AuthP, AuthKey, PrivP, PrivKey) -> usm_entry()

Types

Create an entry for the agent community config file, community.conf.

See Security data for USM for more info.

write_usm_config(Dir, Conf) -> okwrite_usm_config(Dir, Hdr, Conf) -> ok

Types

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 (note that this text is written to the file as is).

See Security data for USM for more info.

append_usm_config(Dir, Conf) -> ok

Types

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

Types

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.

© 2010–2017 Ericsson AB
Licensed under the Apache License, Version 2.0.