Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

snmpm_mpd(3erl) [linux man page]

snmpm_mpd(3erl) 					     Erlang Module Definition						   snmpm_mpd(3erl)

NAME
snmpm_mpd - Message Processing and Dispatch module for the SNMP manager DESCRIPTION
The module snmpm_mpd implements the version independent Message Processing and Dispatch functionality in SNMP for the manager. It is sup- posed to be used from a Network Interface process ( Definition of Manager Net if ). EXPORTS
init_mpd(Vsns) -> mpd_state() Types Vsns = [Vsn] Vsn = v1 | v2 | v3 This function can be called from the net_if process at start-up. The options list defines which versions to use. It also initializes some SNMP counters. process_msg(Msg, TDomain, Addr, Port, State, NoteStore, Logger) -> {ok, Vsn, Pdu, PduMS, MsgData} | {discarded, Reason} Types Msg = binary() TDomain = snmpUDPDomain Addr = {integer(), integer(), integer(), integer()} Port = integer() State = mpd_state() NoteStore = pid() Logger = function() Vsn = 'version-1' | 'version-2' | 'version-3' Pdu = #pdu PduMs = integer() MsgData = term() Processes an incoming message. Performs authentication and decryption as necessary. The return values should be passed the manager server. NoteStore is the pid() of the note-store process. Logger is the function used for audit trail logging. In the case when the pdu type is report , MsgData is either ok or {error, ReqId, Reason} . generate_msg(Vsn, NoteStore, Pdu, MsgData, Logger) -> {ok, Packet} | {discarded, Reason} Types Vsn = 'version-1' | 'version-2' | 'version-3' NoteStore = pid() Pdu = #pdu MsgData = term() Logger = function() Packet = binary() Reason = term() Generates a possibly encrypted packet to be sent to the network. NoteStore is the pid() of the note-store process. MsgData is the message specific data used in the SNMP message. In SNMPv1 and SNMPv2c, this message data is the community string. In SNMPv3, it is the context information. Logger is the function used for audit trail logging. generate_response_msg(Vsn, Pdu, MsgData, Logger) -> {ok, Packet} | {discarded, Reason} Types Vsn = 'version-1' | 'version-2' | 'version-3' Pdu = #pdu MsgData = term() Logger = function() Packet = binary() Reason = term() Generates a possibly encrypted response packet to be sent to the network. MsgData is the message specific data used in the SNMP message. This value is received from the process_msg function. Ericsson AB snmp 4.19 snmpm_mpd(3erl)

Check Out this Related Man Page

snmpa_network_interface(3erl)				     Erlang Module Definition				     snmpa_network_interface(3erl)

NAME
snmpa_network_interface - Behaviour module for the SNMP agent network interface. DESCRIPTION
This module defines the behaviour of the agent network interface. A snmpa_network_interface compliant module must export the following functions: * start_link/4 * info/1 * get_log_type/1 * set_log_type/2 * verbosity/2 The semantics of them and their exact signatures are explained below. But this is not enough. There is also a set of mandatory messages which the network interface entity must be able to receive and be able to send. This is described in chapter snmp_agent_netif . EXPORTS
start_link(Prio, NoteStore, MasterAgent, Opts) -> {ok, Pid} | {error, Reason} Types Prio = priority() NoteStore = pid() MasterAgent = pid() Opts = [opt()] opt() = {verbosity, verbosity()} | {versions, versions()} | term() versions() = [version()] version() = v1 | v2 | v3 Start-link the network interface process. NoteStore is the pid of the note-store process and MasterAgent is the pid of the master-agent process. Opts is an (basically) implementation dependent list of options to the network interface process. There are however a number of options which must be handled: versions and verbosity . info(Pid) -> [{Key, Value}] Types Pid = pid() The info returned is basically up to the implementer to decide. This implementation provided by the application provides info about memory allocation and various socket information. The info returned by this function is returned together with other info collected by the agent when the info function is called (tagged with with the key net_if ). verbosity(Pid, Verbosity) -> void() Types Pid = pid() Verbosity = verbosity() Change the verbosity of a running network interface process. get_log_type(Pid) -> {ok, LogType} | {error, Reason} Types Pid = pid() LogType = atl_type() Reason = term() The Audit Trail Log is managed by the network interface process. So, it is this process that has to retrieve the actual log-type. set_log_type(Pid, NewType) -> {ok, OldType} | {error, Reason} Types Pid = pid() NewType = OldType = atl_type() Reason = term() The Audit Trail Log is managed by the network interface process. So, it is this process that has to do the actual changing of the type. See set_log_type for more info. Ericsson AB snmp 4.19 snmpa_network_interface(3erl)
Man Page