File: snmpm_mpd.3

package info (click to toggle)
erlang-manpages 1%3A12.b.3-1
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 4,188 kB
  • ctags: 2
  • sloc: makefile: 68; perl: 30; sh: 15
file content (124 lines) | stat: -rw-r--r-- 2,775 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
.TH snmpm_mpd 3 "snmp  4.11" "Ericsson AB" "ERLANG MODULE DEFINITION"
.SH MODULE
snmpm_mpd \- Message Processing and Dispatch module for the SNMP manager
.SH DESCRIPTION
.LP
The module \fIsnmpm_mpd\fR implements the version independent Message Processing and Dispatch functionality in SNMP for the manager\&. It is supposed to be used from a Network Interface process (Definition of Manager Net if)\&. 

.SH EXPORTS
.LP
.B
init_mpd(Vsns) -> mpd_state()
.br
.RS
.TP
Types
Vsns = [Vsn]
.br
Vsn = v1 | v2 | v3
.br
.RE
.RS
.LP
This function can be called from the net_if process at start-up\&. The options list defines which versions to use\&. 
.LP
It also initializes some SNMP counters\&. 
.RE
.LP
.B
process_msg(Msg, TDomain, Addr, Port, State, NoteStore, Logger) -> {ok, Vsn, Pdu, PduMS, MsgData} | {discarded, Reason}
.br
.RS
.TP
Types
Msg = binary()
.br
TDomain = snmpUDPDomain
.br
Addr = {integer(), integer(), integer(), integer()}
.br
Port = integer()
.br
State = mpd_state()
.br
NoteStore = pid()
.br
Logger = function()
.br
Vsn = \&'version-1\&' | \&'version-2\&' | \&'version-3\&'
.br
Pdu = #pdu
.br
PduMs = integer()
.br
MsgData = term()
.br
.RE
.RS
.LP
Processes an incoming message\&. Performs authentication and decryption as necessary\&. The return values should be passed the manager server\&. 
.LP
\fINoteStore\fR is the \fIpid()\fR of the note-store process\&.
.LP
\fILogger\fR is the function used for audit trail logging\&. 
.LP
In the case when the pdu type is \fIreport\fR, \fIMsgData\fR is either \fIok\fR or \fI{error, ReqId, Reason}\fR\&. 
.RE
.LP
.B
generate_msg(Vsn, NoteStore, Pdu, MsgData, Logger) -> {ok, Packet} | {discarded, Reason}
.br
.RS
.TP
Types
Vsn = \&'version-1\&' | \&'version-2\&' | \&'version-3\&'
.br
NoteStore = pid()
.br
Pdu = #pdu
.br
MsgData = term()
.br
Logger = function()
.br
Packet = binary()
.br
Reason = term()
.br
.RE
.RS
.LP
Generates a possibly encrypted packet to be sent to the network\&. 
.LP
\fINoteStore\fR is the \fIpid()\fR of the note-store process\&. 
.LP
\fIMsgData\fR 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\&. 
.LP
\fILogger\fR is the function used for audit trail logging\&. 
.RE
.LP
.B
generate_response_msg(Vsn, Pdu, MsgData, Logger) -> {ok, Packet} | {discarded, Reason}
.br
.RS
.TP
Types
Vsn = \&'version-1\&' | \&'version-2\&' | \&'version-3\&'
.br
Pdu = #pdu
.br
MsgData = term()
.br
Logger = function()
.br
Packet = binary()
.br
Reason = term()
.br
.RE
.RS
.LP
Generates a possibly encrypted response packet to be sent to the network\&. 
.LP
\fIMsgData\fR is the message specific data used in the SNMP message\&. This value is received from the process_msg function\&. 
.RE