非常教程

Erlang 20参考手册

snmp

snmpm_mpd

模块

snmpm_mpd

模块摘要

SNMP管理器的消息处理和发送模块

描述

该模块snmpm_mpd在SNMP中为管理器实现了与版本无关的消息处理和分派功能。它应该从网络接口进程(Definition of Manager Net if)中使用。

为了向后兼容的原因process_msg/7,具有单独的参数IpAddrPortNumber参数的传统API函数仍然像以前一样工作。

输出

init_mpd(Vsns) -> mpd_state()

类型

这个函数可以在启动时从net_if进程调用。选项列表定义了要使用的版本。

它还初始化一些SNMP计数器。

process_msg(Msg, Domain, Addr, State, NoteStore, Logger) -> {ok, Vsn, Pdu, PduMS, MsgData} | {discarded, Reason}

类型

处理传入的消息。根据需要执行身份验证和解密。返回值应该传递给管理器服务器。

NoteStorepid()笔记存储过程。

Logger用于审计跟踪日志记录的函数。

在pdu类型为报告的情况下,MsgData可以是正常的或{error,ReqId,Reason}。

generate_msg(Vsn, NoteStore, Pdu, MsgData, Logger) -> {ok, Packet} | {discarded, Reason}

类型

生成可能被加密的数据包,以便发送到网络。

NoteStorepid()笔记存储过程。

MsgDataSNMP消息中使用的消息特定数据。在SNMPv 1和SNMPv2c中,这个消息数据是社区字符串。在SNMPv 3中,它是上下文信息。

Logger用于审计跟踪日志记录的函数。

generate_response_msg(Vsn, Pdu, MsgData, Logger) -> {ok, Packet} | {discarded, Reason}

类型

生成可能被加密的响应包以发送到网络。

MsgData是SNMP消息中使用的消息特定数据。该值是从该process_msg函数接收的。

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_network_interface
39.snmpm_network_interface_filter
40.snmpm_user
41.snmp_community_mib
42.snmp_framework_mib
43.snmp_generic
44.snmp_index
45.snmp_notification_mib
46.snmp_pdus
47.snmp_standard_mib
48.snmp_target_mib
49.snmp_user_based_sm_mib
50.snmp_view_based_acm_mib
Erlang 20

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

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