Erlang -- snmpa_conf

User's Guide
Reference Manual
Release Notes
PDF
Top

Simple Network Management Protocol (SNMP)
Reference Manual
Version 5.2.3

Expand All
Contract All

Table of Contents

- snmp
  - Top of manual page
  - bits_to_octet_string/1
  - change_log_size/2
  - config/0
  - date_and_time/0
  - date_and_time_to_string/1
  - date_and_time_to_string/2
  - date_and_time_to_string2/1
  - date_and_time_to_universal_time_dst/1
  - disable_trace/0
  - enable_trace/0
  - local_time_to_date_and_time_dst/1
  - log_to_io/4
  - log_to_io/5
  - log_to_io/6
  - log_to_io/7
  - log_to_txt/5
  - log_to_txt/6
  - log_to_txt/7
  - log_to_txt/8
  - octet_string_to_bits/1
  - passwd2localized_key/3
  - print_version_info/0
  - print_version_info/1
  - print_versions/2
  - print_versions/1
  - read_mib/1
  - reset_trace/1
  - set_trace/1
  - set_trace/2
  - start/0
  - start/1
  - start_agent/0
  - start_agent/1
  - start_manager/0
  - start_manager/1
  - universal_time_to_date_and_time/1
  - validate_date_and_time/1
  - validate_date_and_time/2
  - versions1/0
  - versions2/0
- snmp (App)
- snmpa
  - Top of manual page
  - add_agent_caps/2
  - backup/2
  - backup/1
  - change_log_size/1
  - convert_config/1
  - current_address/0
  - current_community/0
  - current_context/0
  - current_request_id/0
  - del_agent_caps/1
  - disable_mibs_cache/0
  - disable_mibs_cache/1
  - disable_mibs_cache_autogc/0
  - disable_mibs_cache_autogc/1
  - discovery/2
  - discovery/4
  - discovery/5
  - discovery/6
  - discovery/3
  - discovery/3
  - discovery/4
  - enable_mibs_cache/0
  - enable_mibs_cache/1
  - enable_mibs_cache_autogc/0
  - enable_mibs_cache_autogc/1
  - enum_to_int/3
  - enum_to_int/2
  - gc_mibs_cache/0
  - gc_mibs_cache/1
  - gc_mibs_cache/2
  - gc_mibs_cache/1
  - gc_mibs_cache/2
  - gc_mibs_cache/3
  - get/2
  - get/3
  - get_agent_caps/0
  - get_next/2
  - get_next/3
  - info/0
  - info/1
  - int_to_enum/3
  - int_to_enum/2
  - invalidate_mibs_cache/0
  - invalidate_mibs_cache/1
  - load_mib/2
  - load_mib/1
  - load_mibs/2
  - load_mibs/3
  - load_mibs/1
  - load_mibs/2
  - log_to_io/1
  - log_to_io/2
  - log_to_io/3
  - log_to_io/4
  - log_to_io/5
  - log_to_io/6
  - log_to_io/7
  - log_to_io/6
  - log_to_txt/1
  - log_to_txt/2
  - log_to_txt/3
  - log_to_txt/4
  - log_to_txt/5
  - log_to_txt/6
  - log_to_txt/7
  - log_to_txt/8
  - log_to_txt/7
  - me_of/2
  - me_of/1
  - mib_of/2
  - mib_of/1
  - name_to_oid/2
  - name_to_oid/1
  - oid_to_name/2
  - oid_to_name/1
  - old_info_format/1
  - print_mib_info/0
  - print_mib_tables/0
  - print_mib_variables/0
  - register_notification_filter/4
  - register_notification_filter/5
  - register_notification_filter/3
  - register_notification_filter/4
  - register_subagent/3
  - restart_set_worker/0
  - restart_set_worker/1
  - restart_worker/0
  - restart_worker/1
  - send_notification/3
  - send_notification/6
  - send_notification/7
  - send_notification/5
  - send_notification/4
  - send_notification2/3
  - set_log_type/2
  - set_log_type/1
  - set_request_limit/2
  - set_request_limit/1
  - unload_mib/2
  - unload_mib/1
  - unload_mibs/2
  - unload_mibs/3
  - unload_mibs/1
  - unload_mibs/2
  - unregister_notification_filter/2
  - unregister_notification_filter/1
  - unregister_subagent/2
  - update_mibs_cache_age/2
  - update_mibs_cache_age/1
  - update_mibs_cache_gclimit/2
  - update_mibs_cache_gclimit/1
  - verbosity/2
  - whereis_mib/2
  - whereis_mib/1
  - which_aliasnames/0
  - which_mibs/0
  - which_mibs/1
  - which_mibs_cache_size/0
  - which_mibs_cache_size/1
  - which_notification_filter/0
  - which_notification_filter/1
  - which_notifications/0
  - which_tables/0
  - which_variables/0
- snmpa_conf
  - Top of manual page
  - agent_entry/2
  - append_agent_config/2
  - append_community_config/2
  - append_context_config/2
  - append_notify_config/2
  - append_standard_config/2
  - append_target_addr_config/2
  - append_target_params_config/2
  - append_usm_config/2
  - append_vacm_config/2
  - community_entry/1
  - community_entry/5
  - context_entry/1
  - notify_entry/3
  - read_agent_config/1
  - read_community_config/1
  - read_context_config/1
  - read_notify_config/1
  - read_standard_config/1
  - read_target_addr_config/1
  - read_target_params_config/1
  - read_usm_config/1
  - read_vacm_config/1
  - standard_entry/2
  - target_addr_entry/6
  - target_addr_entry/7
  - target_addr_entry/8
  - target_addr_entry/10
  - target_params_entry/5
  - target_params_entry/2
  - target_params_entry/4
  - usm_entry/13
  - usm_entry/1
  - vacm_acc_entry/8
  - vacm_s2g_entry/3
  - vacm_vtf_entry/2
  - vacm_vtf_entry/4
  - write_agent_config/2
  - write_agent_config/3
  - write_community_config/2
  - write_community_config/3
  - write_context_config/2
  - write_context_config/3
  - write_notify_config/2
  - write_notify_config/3
  - write_standard_config/2
  - write_standard_config/3
  - write_target_addr_config/2
  - write_target_addr_config/3
  - write_target_params_config/2
  - write_target_params_config/3
  - write_usm_config/2
  - write_usm_config/3
  - write_vacm_config/2
  - write_vacm_config/3
- snmpa_discovery_handler
  - Top of manual page
  - stage1_finish/3
- snmpa_error_report
  - Top of manual page
  - config_err/2
  - user_err/2
- snmpa_error
  - Top of manual page
  - config_err/2
  - user_err/2
- snmpa_error_io
  - Top of manual page
  - config_err/2
  - user_err/2
- snmpa_error_logger
  - Top of manual page
  - config_err/2
  - user_err/2
- snmpa_local_db
  - Top of manual page
  - dump/0
  - match/2
  - print/0
  - print/1
  - print/2
  - table_create/1
  - table_create_row/3
  - table_delete/1
  - table_delete_row/2
  - table_exists/1
  - table_get_row/2
- snmpa_mib_data
  - Top of manual page
  - Module:backup/2
  - Module:close/1
  - Module:code_change/4
  - Module:dump/2
  - Module:info/1
  - Module:load_mib/4
  - Module:lookup/2
  - Module:new/1
  - Module:next/3
  - Module:register_subagent/3
  - Module:sync/1
  - Module:unload_mib/2
  - Module:unregister_subagent/2
  - Module:whereis_mib/2
  - Module:which_mib/2
  - Module:which_mibs/1
- snmpa_mib_storage
  - Top of manual page
  - Module:backup/2
  - Module:close/1
  - Module:delete/1
  - Module:delete/2
  - Module:info/1
  - Module:match_delete/2
  - Module:match_object/2
  - Module:open/5
  - Module:read/2
  - Module:sync/1
  - Module:tab2list/1
  - Module:write/2
- snmpa_mpd
  - Top of manual page
  - discarded_pdu/1
  - generate_msg/6
  - generate_msg/5
  - generate_response_msg/6
  - generate_response_msg/5
  - init/1
  - process_packet/6
  - process_packet/5
  - process_taddrs/1
- snmpa_network_interface
  - Top of manual page
  - get_log_type/1
  - info/1
  - set_log_type/2
  - start_link/4
  - verbosity/2
- snmpa_network_interface_filter
  - Top of manual page
  - accept_recv/2
  - accept_recv_pdu/3
  - accept_send/2
  - accept_send_pdu/2
- snmpa_notification_delivery_info_receiver
  - Top of manual page
  - delivery_info/4
  - delivery_targets/3
- snmpa_notification_filter
  - Top of manual page
  - handle_notification/2
- snmpa_supervisor
  - Top of manual page
  - start_master_sup/1
  - start_sub_agent/3
  - start_sub_sup/1
  - stop_sub_agent/1
- snmp_community_mib
  - Top of manual page
  - add_community/5
  - add_community/6
  - configure/1
  - delete_community/1
  - reconfigure/1
- snmp_framework_mib
  - Top of manual page
  - add_context/1
  - configure/1
  - delete_context/1
  - init/0
- snmp_generic
  - Top of manual page
  - get_index_types/1
  - get_status_col/2
  - get_status_col/2
  - get_table_info/2
  - table_func/2
  - table_func/4
  - table_get_elements/3
  - table_next/2
  - table_row_exists/2
  - table_set_elements/3
  - variable_func/2
  - variable_func/3
  - variable_get/1
  - variable_set/2
- snmp_index
  - Top of manual page
  - delete/1
  - delete/2
  - get/2
  - get_last/1
  - get_next/2
  - insert/3
  - key_to_oid/2
  - new/1
- snmp_notification_mib
  - Top of manual page
  - add_notify/3
  - configure/1
  - delete_notify/1
  - reconfigure/1
- snmp_pdus
  - Top of manual page
  - dec_message/1
  - dec_message_only/1
  - dec_pdu/1
  - dec_scoped_pdu/1
  - dec_scoped_pdu_data/1
  - dec_usm_security_parameters/1
  - enc_encrypted_scoped_pdu/1
  - enc_message/1
  - enc_message_only/1
  - enc_pdu/1
  - enc_scoped_pdu/1
  - enc_usm_security_parameters/1
- snmp_standard_mib
  - Top of manual page
  - configure/1
  - inc/1
  - inc/2
  - reconfigure/1
  - reset/0
  - sys_up_time/0
- snmp_target_mib
  - Top of manual page
  - add_addr/10
  - add_params/5
  - configure/1
  - delete_addr/1
  - delete_params/1
  - reconfigure/1
  - set_target_engine_id/2
- snmp_user_based_sm_mib
  - Top of manual page
  - add_user/13
  - configure/1
  - delete_user/1
  - reconfigure/1
- snmp_view_based_acm_mib
  - Top of manual page
  - add_access/8
  - add_sec2group/3
  - add_view_tree_fam/4
  - configure/1
  - delete_access/1
  - delete_sec2group/1
  - delete_view_tree_fam/1
  - reconfigure/1
- snmpc
  - Top of manual page
  - compile/1
  - compile/2
  - is_consistent/1
  - mib_to_hrl/1
- snmpc(command)
- snmpm
  - Top of manual page
  - agent_info/2
  - async_get/4
  - async_get/5
  - async_get/6
  - async_get/3
  - async_get/4
  - async_get2/3
  - async_get2/4
  - async_get_bulk/6
  - async_get_bulk/7
  - async_get_bulk/8
  - async_get_bulk/5
  - async_get_bulk/6
  - async_get_bulk2/5
  - async_get_bulk2/6
  - async_get_next/4
  - async_get_next/5
  - async_get_next/6
  - async_get_next/3
  - async_get_next/4
  - async_get_next2/3
  - async_get_next2/4
  - async_set/4
  - async_set/5
  - async_set/6
  - async_set/3
  - async_set/4
  - async_set2/3
  - async_set2/4
  - backup/1
  - cancel_async_request/2
  - cancel_notify_started/1
  - change_log_size/1
  - demonitor/1
  - format_reason/2
  - format_reason/1
  - info/0
  - load_mib/1
  - log_to_io/1
  - log_to_io/2
  - log_to_io/2
  - log_to_io/3
  - log_to_io/4
  - log_to_io/5
  - log_to_io/6
  - log_to_io/7
  - log_to_io/6
  - log_to_txt/1
  - log_to_txt/2
  - log_to_txt/3
  - log_to_txt/4
  - log_to_txt/5
  - log_to_txt/6
  - log_to_txt/7
  - log_to_txt/8
  - log_to_txt/7
  - monitor/0
  - name_to_oid/1
  - notify_started/1
  - oid_to_name/1
  - oid_to_type/1
  - register_agent/3
  - register_user/3
  - register_user/4
  - register_user_monitor/3
  - register_user_monitor/4
  - register_usm_user/3
  - set_log_type/1
  - sync_get/4
  - sync_get/5
  - sync_get/6
  - sync_get/3
  - sync_get/4
  - sync_get2/3
  - sync_get2/4
  - sync_get_bulk/6
  - sync_get_bulk/7
  - sync_get_bulk/8
  - sync_get_bulk/5
  - sync_get_bulk/6
  - sync_get_bulk2/5
  - sync_get_bulk2/6
  - sync_get_next/4
  - sync_get_next/5
  - sync_get_next/6
  - sync_get_next/3
  - sync_get_next/4
  - sync_get_next2/3
  - sync_get_next2/4
  - sync_set/4
  - sync_set/5
  - sync_set/6
  - sync_set/3
  - sync_set/4
  - sync_set2/3
  - sync_set2/4
  - unload_mib/1
  - unregister_agent/2
  - unregister_user/1
  - unregister_usm_user/2
  - update_agent_info/3
  - update_agent_info/4
  - update_usm_user_info/4
  - usm_user_info/3
  - verbosity/2
  - which_agents/0
  - which_agents/1
  - which_mibs/0
  - which_users/0
  - which_usm_users/0
  - which_usm_users/1
- snmpm_conf
  - Top of manual page
  - agents_entry/12
  - append_agents_config/2
  - append_manager_config/2
  - append_users_config/2
  - append_usm_config/2
  - manager_entry/2
  - read_agents_config/1
  - read_manager_config/1
  - read_users_config/1
  - read_usm_config/1
  - users_entry/1
  - users_entry/2
  - users_entry/3
  - usm_entry/6
  - usm_entry/7
  - write_agents_config/2
  - write_agents_config/3
  - write_manager_config/2
  - write_manager_config/3
  - write_users_config/2
  - write_users_config/3
  - write_usm_config/2
  - write_usm_config/3
- snmpm_mpd
  - Top of manual page
  - generate_msg/5
  - generate_response_msg/4
  - init_mpd/1
  - process_msg/6
- snmpm_network_interface
  - Top of manual page
  - get_log_type/1
  - info/1
  - inform_response/4
  - note_store/2
  - send_pdu/7
  - set_log_type/2
  - start_link/2
  - stop/1
  - verbosity/2
- snmpm_user
  - Top of manual page
  - handle_agent/5
  - handle_error/3
  - handle_inform/3
  - handle_invalid_result/2
  - handle_pdu/4
  - handle_report/3
  - handle_trap/3
- snmpm_network_interface_filter
  - Top of manual page
  - accept_recv/2
  - accept_recv_pdu/3
  - accept_send/2
  - accept_send_pdu/3

# snmpa_conf

### MODULE

snmpa_conf

### MODULE SUMMARY

Utility functions for handling the agent config files.

### DESCRIPTION

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

### DATA TYPES

    transportDomain() = transportDomainUdpIpv4 | transportDomainUdpIpv6

    transportAddress() =
        transportAddressIPv4() | transportAddressIPv6()

    transportAddressWithPort() =
        transportAddressIPv4WithPort() | transportAddressIPv6WithPort()

    transportAddressWithoutPort() =
        transportAddressIPv4WithoutPort() | transportAddressIPv6WithoutPort()

    transportAddressIPv4() =
        transportAddressIPv4WithPort() | transportAddressIPv4WithoutPort()
    transportAddressIPv4WithPort =
        {transportAddressIPv4WithoutPort(), inet:port_number()} |
        [byte() x 4, byte() x 2]
    transportAddressIPv4WithoutPort =
        inet:ip4_address() | [byte() x 4]

    transportAddressIPv6() =
        transportAddressIPv6WithPort() | transportAddressIPv6WithoutPort()
    transportAddressIPv6WithPort =
        {transportAddressIPv6WithoutPort(), inet:port_number()} |
        [word() x 8, inet:port_number()] |
        [word() x 8, byte() x 2] |
        {byte() x 16, byte() x 2]
    transportAddressIPv6WithoutPort =
        inet:ip6_address() | [word() x 8] | [byte() x 16]

    transportAddressMask() =
        [] | transportAddressWithPort()

    byte() = 0..255
    word() = 0..65535

For inet:ip4_address(), inet:ip6_address() and inet:port_number(), see also inet:ip_address()

### EXPORTS

agent_entry(Tag, Val) -> agent_entry()

Types:

Tag = intAgentTransports | intAgentUDPPort | intAgentMaxPacketSize | snmpEngineMaxMessageSize | snmpEngineID
Val = term()
agent_entry() = term()

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

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

write_agent_config(Dir, Conf) -> ok
write_agent_config(Dir, Hdr, Conf) -> ok

Types:

Dir = string()
Hdr = string()
Conf = [agent_entry()]

Write the agent config to the agent 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 Agent Information for more info.

append_agent_config(Dir, Conf) -> ok

Types:

Dir = string()
Conf = [agent_entry()]

Append the config to the current agent config file.

Dir is the path to the directory where to store the config file.

See Agent Information for more info.

read_agent_config(Dir) -> Conf

Types:

Dir = string()
Conf = [agent_entry()]

Read the current agent config file.

Dir is the path to the directory where to store the config file.

See Agent Information for more info.

standard_entry(Tag, Val) -> standard_entry()

Types:

Tag = sysDescr | sysObjectID | sysContact | sysName | sysLocation | sysServices | snmpEnableAuthenTraps
Val = term()
standard_entry() = term()

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

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

write_standard_config(Dir, Conf) -> ok
write_standard_config(Dir, Hdr, Conf) -> ok

Types:

Dir = string()
Hdr = string()
Conf = [standard_entry()]

Write the agent standard config to the agent standard 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 System Information for more info.

append_standard_config(Dir, Conf) -> ok

Types:

Dir = string()
Conf = [standard_entry()]

Append the standard config to the current agent standard config file.

Dir is the path to the directory where to store the config file.

See System Information for more info.

read_standard_config(Dir) -> Conf

Types:

Dir = string()
Conf = [standard_entry()]

Read the current agent standard config file.

Dir is the path to the directory where to store the config file.

See System Information for more info.

context_entry(Context) -> context_entry()

Types:

Context = string()
context_entry() = term()

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

See Contexts for more info.

write_context_config(Dir, Conf) -> ok
write_context_config(Dir, Hdr, Conf) -> ok

Types:

Dir = string()
Hdr = string()
Conf = [context_entry()]

Write the agent context config to the agent context 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 Contexts for more info.

append_context_config(Dir, Conf) -> ok

Types:

Dir = string()
Conf = [context_entry()]

Append the context config to the current agent context config file.

Dir is the path to the directory where to store the config file.

See Contexts for more info.

read_context_config(Dir) -> Conf

Types:

Dir = string()
Conf = [context_entry()]

Read the current agent context config file.

Dir is the path to the directory where to store the config file.

See Contexts for more info.

community_entry(CommunityIndex) -> community_entry()
community_entry(CommunityIndex, CommunityName, SecName, ContextName, TransportTag) -> community_entry()

Types:

CommunityIndex = string()
CommunityName = string()
SecName = string()
CtxName = string()
TransportTag = string()
community_entry() = term()

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

CommunityIndex must be a non-empty string.

community_entry("public") translates to the following call: community_entry(CommunityIndex, CommunityIndex, "initial", "", "").

community_entry("all-rights") translates to the following call: community_entry(CommunityIndex, CommunityIndex, CommunityIndex, "", "").

See Community for more info.

write_community_config(Dir, Conf) -> ok
write_community_config(Dir, Hdr, Conf) -> ok

Types:

Dir = string()
Hdr = string()
Conf = [community_entry()]

Write the agent community config to the agent community 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 Community for more info.

append_community_config(Dir, Conf) -> ok

Types:

Dir = string()
Conf = [community_entry()]

Append the community config to the current agent community config file.

Dir is the path to the directory where to store the config file.

See Community for more info.

read_community_config(Dir) -> Conf

Types:

Dir = string()
Conf = [community_entry()]

Read the current agent community config file.

Dir is the path to the directory where to store the config file.

See Communities for more info.

target_addr_entry(Name, Domain, Addr, TagList, ParamsName, EngineId) -> target_addr_entry()
target_addr_entry(Name, Domain, Addr, TagList, ParamsName, EngineId, TMask) -> target_addr_entry()
target_addr_entry(Name, Domain, Addr, TagList, ParamsName, EngineId, TMask, MaxMessageSize) -> target_addr_entry()
target_addr_entry(Name, Domain, Addr, Timeout, RetryCount, TagList, ParamsName, EngineId, TMask, MaxMessageSize) -> target_addr_entry()

Types:

Name = string()
Domain = transportDomain()
Ip = transportAddress() (depends on Domain)
Timeout = integer()
RetryCount = integer()
TagList = string()
ParamsName = string()
EngineId = string()
TMask = transportAddressMask() (depends on Domain)
MaxMessageSize = integer()
target_addr_entry() = term()

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

Name must be a non-empty string.

target_addr_entry/6 translates to the following call: target_addr_entry(Name, Domain, Addr, TagList, ParamsName, EngineId, []).

target_addr_entry/7 translates to the following call: target_addr_entry(Name, Domain, Addr, TagList, ParamsName, EngineId, TMask, 2048).

target_addr_entry/8 translates to the following call: target_addr_entry(Name, Domain, Addr, 1500, 3, TagList, ParamsName, EngineId, TMask, MaxMessageSize).

See Target Address Definitions for more info.

write_target_addr_config(Dir, Conf) -> ok
write_target_addr_config(Dir, Hdr, Conf) -> ok

Types:

Dir = string()
Hdr = string()
Conf = [target_addr_entry()]

Write the agent target_addr config to the agent target_addr 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 Target Address Definitions for more info.

append_target_addr_config(Dir, Conf) -> ok

Types:

Dir = string()
Conf = [target_addr_entry()]

Append the target_addr config to the current agent target_addr config file.

Dir is the path to the directory where to store the config file.

See Target Address Definitions for more info.

read_target_addr_config(Dir) -> Conf

Types:

Dir = string()
Conf = [target_addr_entry()]

Read the current agent target_addr config file.

Dir is the path to the directory where to store the config file.

See Target Address Definitions for more info.

target_params_entry(Name, Vsn) -> target_params_entry()
target_params_entry(Name, Vsn, SecName, SecLevel) -> target_params_entry()
target_params_entry(Name, MPModel, SecModel, SecName, SecLevel) -> target_params_entry()

Types:

Name = string()
Vsn = v1 | v2 | v3
MPModel = v1 | v2c | v3
SecModel = v1 | v2c | usm
SecName = string()
SecLevel = noAuthNoPriv | authNoPriv | authPriv
target_params_entry() = term()

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

Name must be a non-empty string.

Vsn translates into MPModel and SecModel as follows:

    \011  Vsn = v1 => MPModel = v1,  SecModel = v1
    \011  Vsn = v2 => MPModel = v2c, SecModel = v2c
    \011  Vsn = v3 => MPModel = v3,  SecModel = usm

target_params_entry/2 translates to the following call: target_params_entry(Name, Vsn, "initial", noAuthNoPriv).

target_params_entry/4 translates to the following call: target_params_entry(Name, MPModel, SecModel, SecName, SecLevel) where MPModel and SecModel is mapped from Vsn, see above.

See Target Parameters Definitions for more info.

write_target_params_config(Dir, Conf) -> ok
write_target_params_config(Dir, Hdr, Conf) -> ok

Types:

Dir = string()
Hdr = string()
Conf = [target_params_entry()]

Write the agent target_params config to the agent target_params 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 Target Parameters Definitions for more info.

append_target_params_config(Dir, Conf) -> ok

Types:

Dir = string()
Conf = [target_params_entry()]

Append the target_params config to the current agent target_params config file.

Dir is the path to the directory where to store the config file.

See Target Parameters Definitions for more info.

read_target_params_config(Dir) -> Conf

Types:

Dir = string()
Conf = [target_params_entry()]

Read the current agent target_params config file.

Dir is the path to the directory where to store the config file.

See Target Parameters Definitions for more info.

vacm_s2g_entry(SecModel, SecName, GroupName) -> vacm_s2g_entry()
vacm_acc_entry(GroupName, Prefix, SecModel, SecLevel, Match, ReadView, WriteView, NotifyView) -> vacm_acc_entry()
vacm_vtf_entry(ViewIndex, ViewSubtree) -> vacm_vtf_entry()
vacm_vtf_entry(ViewIndex, ViewSubtree, ViewStatus, ViewMask) -> vacm_vtf_entry()

Types:

SecModel = v1 | v2c | usm
SecName = string()
GroupName = string()
Prefix = string()
SecLevel = noAuthNoPriv | authNoPriv | authPriv
Match = prefix | exact
ReadView = string()
WriteView = string()
NotifyView = string()
ViewIndex = integer()
ViewSubtree = [integer()]
ViewStatus = included | excluded
ViewMask = null | [zero_or_one()]
zero_or_one() = 0 | 1
vacm_s2g_entry() = term()
vacm_acc_entry() = term()
vacm_vtf_entry() = term()

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

vacm_vtf_entry/2 translates to the following call: vacm_vtf_entry(ViewIndex, ViewSubtree, included, null).

See MIB Views for VACM for more info.

write_vacm_config(Dir, Conf) -> ok
write_vacm_config(Dir, Hdr, Conf) -> ok

Types:

Dir = string()
Hdr = string()
Conf = [vacm_entry()]
vacm_entry() = vacm_sg2_entry() | vacm_acc_entry() | vacm_vtf_entry()

Write the agent vacm config to the agent vacm 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 MIB Views for VACM for more info.

append_vacm_config(Dir, Conf) -> ok

Types:

Dir = string()
Conf = [vacm_entry()]

Append the vacm config to the current agent vacm config file.

Dir is the path to the directory where to store the config file.

See MIB Views for VACM for more info.

read_vacm_config(Dir) -> Conf

Types:

Dir = string()
Conf = [vacm_entry()]

Read the current agent vacm config file.

Dir is the path to the directory where to store the config file.

See MIB Views for VACM for more info.

usm_entry(EngineId) -> usm_entry()
usm_entry(EngineID, UserName, SecName, Clone, AuthP, AuthKeyC, OwnAuthKeyC, PrivP, PrivKeyC, OwnPrivKeyC, Public, AuthKey, PrivKey) -> usm_entry()

Types:

EngineId = string()
UserName = string()
SecName = string()
Clone = zeroDotZero | [integer()]
AuthP = usmNoAuthProtocol | usmHMACMD5AuthProtocol, | usmHMACSHAAuthProtocol
AuthKeyC = string()
OwnAuthKeyC = string()
PrivP = usmNoPrivProtocol | usmDESPrivProtocol | usmAesCfb128Protocol
PrivKeyC = string()
OwnPrivKeyC = string()
Public = string()
AuthKey = [integer()]
PrivKey = [integer()]
usm_entry() = term()

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

usm_entry/1 translates to the following call: usm_entry("initial", "initial", zeroDotZero, usmNoAuthProtocol, "", "", usmNoPrivProtocol, "", "", "", "", "").

See Security data for USM for more info.

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

Types:

Dir = string()
Hdr = string()
Conf = [usm_entry()]

Write the agent usm config to the agent 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:

Dir = string()
Conf = [usm_entry()]

Append the usm config to the current agent vacm 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:

Dir = string()
Conf = [usm_entry()]

Read the current agent usm config file.

Dir is the path to the directory where to store the config file.

See Security data for USM for more info.

notify_entry(Name, Tag, Type) -> notify_entry()

Types:

Name = string()
Tag = string()
Type = trap | inform
community_entry() = term()

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

Name must be a non-empty string.

See Notify Definitions for more info.

write_notify_config(Dir, Conf) -> ok
write_notify_config(Dir, Hdr, Conf) -> ok

Types:

Dir = string()
Hdr = string()
Conf = [notify_entry()]

Write the agent notify config to the agent notify 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 Notify Definitions for more info.

append_notify_config(Dir, Conf) -> ok

Types:

Dir = string()
Conf = [notify_entry()]

Append the notify config to the current agent notify config file.

Dir is the path to the directory where to store the config file.

See Notify Definitions for more info.

read_notify_config(Dir) -> Conf

Types:

Dir = string()
Conf = [community_entry()]

Read the current agent notify config file.

Dir is the path to the directory where to store the config file.

See Notify Definitions for more info.