Debian Codegraph @

mibs/SNMPv2-PDU

raw
1 -- extracted from rfc1905.txt
2
3 SNMPv2-PDU DEFINITIONS ::= BEGIN
4
5 IMPORTS
6 ObjectName, ObjectSyntax, Integer32
7 FROM SNMPv2-SMI;
8
9
10 -- protocol data units
11
12 PDUs ::=
13 CHOICE {
14 get-request
15 GetRequest-PDU,
16
17 get-next-request
18 GetNextRequest-PDU,
19
20 get-bulk-request
21 GetBulkRequest-PDU,
22
23 response
24 Response-PDU,
25
26 set-request
27 SetRequest-PDU,
28
29 inform-request
30 InformRequest-PDU,
31
32 snmpV2-trap
33 SNMPv2-Trap-PDU,
34
35 report
36 Report-PDU -- ,
37 }
38
39
40 -- PDUs
41
42 GetRequest-PDU ::=
43 [0]
44 IMPLICIT PDU
45
46 GetNextRequest-PDU ::=
47 [1]
48 IMPLICIT PDU
49
50 Response-PDU ::=
51 [2]
52 IMPLICIT PDU
53
54 SetRequest-PDU ::=
55 [3]
56 IMPLICIT PDU
57
58 -- [4] is obsolete
59
60 GetBulkRequest-PDU ::=
61 [5]
62 IMPLICIT BulkPDU
63
64 InformRequest-PDU ::=
65 [6]
66 IMPLICIT PDU
67
68 SNMPv2-Trap-PDU ::=
69 [7]
70 IMPLICIT PDU
71
72 -- Usage and precise semantics of Report-PDU are not presently
73 -- defined. Any SNMP administrative framework making use of
74 -- this PDU must define its usage and semantics.
75 Report-PDU ::=
76 [8]
77 IMPLICIT PDU
78
79 max-bindings
80 INTEGER ::= 2147483647
81
82 PDU ::=
83 SEQUENCE {
84 request-id
85 Integer32,
86
87 error-status -- sometimes ignored
88 INTEGER {
89 noError(0),
90 tooBig(1),
91 noSuchName(2), -- for proxy compatibility
92 badValue(3), -- for proxy compatibility
93 readOnly(4), -- for proxy compatibility
94 genErr(5),
95 noAccess(6),
96 wrongType(7),
97 wrongLength(8),
98 wrongEncoding(9),
99 wrongValue(10),
100 noCreation(11),
101 inconsistentValue(12),
102 resourceUnavailable(13),
103 commitFailed(14),
104 undoFailed(15),
105 authorizationError(16),
106 notWritable(17),
107 inconsistentName(18)
108 },
109
110 error-index -- sometimes ignored
111 INTEGER (0..max-bindings),
112
113 variable-bindings -- values are sometimes ignored
114 VarBindList
115 }
116
117
118 BulkPDU ::= -- MUST be identical in
119 SEQUENCE { -- structure to PDU
120 request-id
121 Integer32,
122
123 non-repeaters
124 INTEGER (0..max-bindings),
125
126 max-repetitions
127 INTEGER (0..max-bindings),
128
129 variable-bindings -- values are ignored
130 VarBindList
131 }
132
133
134 -- variable binding
135
136 VarBind ::=
137 SEQUENCE {
138 name
139 ObjectName,
140
141 CHOICE {
142 value
143 ObjectSyntax,
144
145 unSpecified -- in retrieval requests
146 NULL,
147
148 -- exceptions in responses
149 noSuchObject[0]
150 IMPLICIT NULL,
151
152 noSuchInstance[1]
153 IMPLICIT NULL,
154
155 endOfMibView[2]
156 IMPLICIT NULL
157 }
158 }
159
160
161 -- variable-binding list
162
163 VarBindList ::=
164 SEQUENCE (SIZE (0..max-bindings)) OF
165 VarBind
166
167
168 END