非常教程

Erlang 20参考手册

snmp

snmp_user_based_sm_mib

模块

snmp_user_based_sm_mib

模块摘要

SNMP的仪器功能.基于用户的.sm-mib

描述

模块snmp_user_based_sm_mib实现基于SNMP用户的SM-MIB的检测功能和配置数据库的功能。

配置文件在SNMP用户手册中有描述。

出口

configure(ConfDir) -> void()

类型

此功能由系统启动时的主管调用.

将配置文件中的所有数据插入到数据库中,并使用StorageType销毁所有旧行volatile。从配置文件创建的行将具有StorageType nonVolatile

snmp计数器设置为零。

如果在配置文件中发现错误,则使用config_err/2错误报告模块的功能来报告错误,并且该功能因原因而失败configuration_error

ConfDir指向找到配置文件的目录的字符串。

读取的配置文件是:usm.conf

reconfigure(ConfDir) -> void()

类型

将配置文件中的所有数据插入到数据库中,并销毁所有旧数据,包括具有StorageType的行nonVolatile。从配置文件创建的行将具有StorageType nonVolatile

因此,在调用此函数之后,基于SNMP用户的SM-MIB中的数据是来自配置文件的数据。

snmp计数器设置为零。

如果在配置文件中发现错误,则使用config_err/2错误报告模块的功能来报告错误,并且该功能因原因而失败configuration_error

ConfDir指向找到配置文件的目录的字符串。

读取的配置文件是:usm.conf

add_user(EngineID, Name, SecName, Clone, AuthP, AuthKeyC, OwnAuthKeyC, PrivP, PrivKeyC, OwnPrivKeyC, Public, AuthKey, PrivKey) -> Ret

类型

将USM安全数据(用户)添加到代理配置。相当于usm.conf文件中的一行。

delete_user(Key) -> Ret

类型

从代理配置中删除USM安全数据(用户)。

snmp相关

1.1. SNMP简介 | 1. SNMP Introduction
2.2.代理功能描述 | 2. Agent Functional Description
3.3.管理功能描述 | 3. Manager Functional Description
4.4. MIB编译器 | 4. The MIB Compiler
5.5.运行应用程序 | 5. Running the application
6.6.代理配置文件的定义 | 6. Definition of Agent Configuration Files
7.7. Manager配置文件的定义 | 7. Definition of Manager Configuration Files
8.8.代理实现示例 | 8. Agent Implementation Example
9.9.管理实施例 | 9. Manager Implementation Example
10.10.检测函数 | 10. Instrumentation Functions
11.检测函数的定义 | 11. Definition of Instrumentation Functions
12.Net if的定义 | 12. Definition of Agent Net if
13.管理Netif 的定义 | 13. Definition of Manager Net if
14.14.审计跟踪日志 | 14. Audit Trail Log
15.15.高级代理主题 | 15. Advanced Agent Topics
16.16. SNMP Appendix A
17.17. SNMP Appendix B
18.snmp
19.snmpa
20.snmpa_conf
21.snmpa_discovery_handler
22.snmpa_error
23.snmpa_error_io
24.snmpa_error_logger
25.snmpa_error_report
26.snmpa_local_db
27.snmpa_mib_data
28.snmpa_mib_storage
29.snmpa_mpd
30.snmpa_network_interface
31.snmpa_network_interface_filter
32.snmpa_notification_delivery_info_receiver
33.snmpa_notification_filter
34.snmpa_supervisor
35.snmpc
36.snmpm
37.snmpm_conf
38.snmpm_mpd
39.snmpm_network_interface
40.snmpm_network_interface_filter
41.snmpm_user
42.snmp_community_mib
43.snmp_framework_mib
44.snmp_generic
45.snmp_index
46.snmp_notification_mib
47.snmp_pdus
48.snmp_standard_mib
49.snmp_target_mib
50.snmp_view_based_acm_mib
Erlang 20

Erlang 是一种通用的面向并发的编程语言,可应付大规模开发活动的程序设计语言和运行环境。

主页 https://www.erlang.org/
源码 https://github.com/erlang/otp
版本 20
发布版本 20.1