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
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
|
-- $OpenBSD: OPENBSD-CARP-MIB.txt,v 1.3 2012/09/28 09:21:48 jj Exp $
--
-- Copyright (c) 2006-2011 Joel Knight <knight.joel@gmail.com>
--
-- Permission to use, copy, modify, and distribute this document for any
-- purpose with or without fee is hereby granted, provided that the above
-- copyright notice and this permission notice appear in all copies.
--
-- THE DOCUMENT IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
-- WITH REGARD TO THIS DOCUMENT INCLUDING ALL IMPLIED WARRANTIES OF
-- MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
-- ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
-- WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
-- ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
-- OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS DOCUMENT.
OPENBSD-CARP-MIB DEFINITIONS ::= BEGIN
IMPORTS
MODULE-IDENTITY, NOTIFICATION-TYPE, OBJECT-TYPE,
Counter64, Integer32, enterprises
FROM SNMPv2-SMI
TruthValue
FROM SNMPv2-TC
openBSD
FROM OPENBSD-BASE-MIB
MODULE-COMPLIANCE, OBJECT-GROUP
FROM SNMPv2-CONF;
carpMIBObjects MODULE-IDENTITY
LAST-UPDATED "201201310000Z"
ORGANIZATION "OpenBSD"
CONTACT-INFO "
Author: Joel Knight
email: knight.joel@gmail.com
www: www.packetmischief.ca/openbsd-snmp-mibs/
"
DESCRIPTION "The MIB module for gathering information about
Common Address Redundancy Protocol (CARP) interfaces."
REVISION "201201310000Z"
DESCRIPTION "Add the OPENBSD-CARP-MIB to snmpd."
::= { openBSD 6 }
-- define the sections of the MIB
carpSysctl OBJECT IDENTIFIER ::= { carpMIBObjects 1 }
carpIf OBJECT IDENTIFIER ::= { carpMIBObjects 2 }
carpStats OBJECT IDENTIFIER ::= { carpMIBObjects 3 }
-- carpSysctl
carpAllow OBJECT-TYPE
SYNTAX TruthValue
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"Indicates whether the node will respond to CARP packets."
::= { carpSysctl 1 }
carpPreempt OBJECT-TYPE
SYNTAX TruthValue
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"Indicates whether preemption is enabled."
::= { carpSysctl 2 }
carpLog OBJECT-TYPE
SYNTAX TruthValue
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"Indicates whether logging of invalid CARP packets is enabled."
::= { carpSysctl 3 }
-- carpIf
carpIfNumber OBJECT-TYPE
SYNTAX Integer32
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"The number of CARP interfaces present on this system."
::= { carpIf 1 }
carpIfTable OBJECT-TYPE
SYNTAX SEQUENCE OF CarpIfEntry
MAX-ACCESS not-accessible
STATUS current
DESCRIPTION
"A list of individual CARP interfaces. The number of entries is
given by the value of carpIfNumber."
::= { carpIf 2 }
carpIfEntry OBJECT-TYPE
SYNTAX CarpIfEntry
MAX-ACCESS not-accessible
STATUS current
DESCRIPTION
"An entry containing management information applicable to a
particular CARP interface."
INDEX { carpIfIndex }
::= { carpIfTable 1 }
CarpIfEntry ::=
SEQUENCE {
carpIfIndex Integer32,
carpIfDescr OCTET STRING,
carpIfVhid Integer32,
carpIfDev OCTET STRING,
carpIfAdvbase Integer32,
carpIfAdvskew Integer32,
carpIfState Integer32
}
carpIfIndex OBJECT-TYPE
SYNTAX Integer32 (1..2147483647)
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"A unique value, greater than zero, for each CARP interface."
::= { carpIfEntry 1 }
carpIfDescr OBJECT-TYPE
SYNTAX OCTET STRING
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"The name of the CARP interface."
::= { carpIfEntry 2 }
carpIfVhid OBJECT-TYPE
SYNTAX Integer32
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"The Virtual HostID of the CARP interface."
::= { carpIfEntry 3 }
carpIfDev OBJECT-TYPE
SYNTAX OCTET STRING
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"The parent interface that the CARP interface is bound to."
::= { carpIfEntry 4 }
carpIfAdvbase OBJECT-TYPE
SYNTAX Integer32
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"The advbase value of the CARP interface."
::= { carpIfEntry 5 }
carpIfAdvskew OBJECT-TYPE
SYNTAX Integer32
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"The advskew value of the CARP interface."
::= { carpIfEntry 6 }
carpIfState OBJECT-TYPE
SYNTAX INTEGER { init(0), backup(1), master(2) }
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"Indicates the operational state of the CARP interface."
::= { carpIfEntry 7 }
-- carpStats
carpIpPktsRecv OBJECT-TYPE
SYNTAX Counter64
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"Number of IPv4 CARP packets received on all interfaces."
::= { carpStats 1 }
carpIp6PktsRecv OBJECT-TYPE
SYNTAX Counter64
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"Number of IPv6 CARP packets received on all interfaces."
::= { carpStats 2 }
carpPktDiscardsForBadInterface OBJECT-TYPE
SYNTAX Counter64
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"Number of packets discarded due to being received on a
non-CARP interface."
::= { carpStats 3 }
carpPktDiscardsForWrongTtl OBJECT-TYPE
SYNTAX Counter64
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"Number of packets discarded due to having a TTL less
than 255."
::= { carpStats 4 }
carpPktShorterThanHeader OBJECT-TYPE
SYNTAX Counter64
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"Number of packets received on any interface that is
shorter than the size of the CARP packet header."
::= { carpStats 5 }
carpPktDiscardsForBadChecksum OBJECT-TYPE
SYNTAX Counter64
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"Number of packets discarded due to bad checksum."
::= { carpStats 6 }
carpPktDiscardsForBadVersion OBJECT-TYPE
SYNTAX Counter64
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"Number of packets discarded due to bad version in
the packet header."
::= { carpStats 7 }
carpPktDiscardsForTooShort OBJECT-TYPE
SYNTAX Counter64
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"Number of packets discarded due to being too short."
::= { carpStats 8 }
carpPktDiscardsForBadAuth OBJECT-TYPE
SYNTAX Counter64
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"Number of packets discarded because they failed the
HMAC authentication check."
::= { carpStats 9 }
carpPktDiscardsForBadVhid OBJECT-TYPE
SYNTAX Counter64
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"Number of packets discarded due to incorrect VHID in
the packet header."
::= { carpStats 10 }
carpPktDiscardsForBadAddressList OBJECT-TYPE
SYNTAX Counter64
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"Number of packets discarded due to bad addresses in
the CARP packet."
::= { carpStats 11 }
carpIpPktsSent OBJECT-TYPE
SYNTAX Counter64
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"Number of IPv4 CARP packets sent on all interfaces."
::= { carpStats 12 }
carpIp6PktsSent OBJECT-TYPE
SYNTAX Counter64
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"Number of IPv6 CARP packets sent on all interfaces."
::= { carpStats 13 }
carpNoMemory OBJECT-TYPE
SYNTAX Counter64
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"Number of CARP advertisements that failed because memory
could not be allocated."
::= { carpStats 14 }
carpTransitionsToMaster OBJECT-TYPE
SYNTAX Counter64
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"Number of times the host has transitioned to MASTER state
for any CARP group."
::= { carpStats 15 }
END
|