[package] fix sysLocation typo, thanks to Russel Senior
[openwrt/svn-archive/archive.git] / libs / net-snmp / patches / 500-debian-subset-5.1.2-6.1.patch
1 diff -ruN net-snmp-5.1.2-orig/EXAMPLE-trap.conf net-snmp-5.1.2-5/EXAMPLE-trap.conf
2 --- net-snmp-5.1.2-orig/EXAMPLE-trap.conf 1970-01-01 01:00:00.000000000 +0100
3 +++ net-snmp-5.1.2-5/EXAMPLE-trap.conf 2005-03-13 16:17:21.000000000 +0100
4 @@ -0,0 +1,18 @@
5 +###############################################################################
6 +#
7 +# EXAMPLE.conf:
8 +# An example configuration file for configuring the ucd-snmp snmptrapd agent.
9 +#
10 +###############################################################################
11 +#
12 +# This file is intended to only be an example. If, however, you want
13 +# to use it, it should be placed in /etc/snmp/snmptrapd.conf.
14 +# When the snmptrapd agent starts up, this is where it will look for it.
15 +#
16 +# All lines beginning with a '#' are comments and are intended for you
17 +# to read. All other lines are configuration commands for the agent.
18 +
19 +#
20 +# PLEASE: read the snmptrapd.conf(5) manual page as well!
21 +#
22 +
23 diff -ruN net-snmp-5.1.2-orig/EXAMPLE.conf.def net-snmp-5.1.2-5/EXAMPLE.conf.def
24 --- net-snmp-5.1.2-orig/EXAMPLE.conf.def 2003-02-25 15:04:06.000000000 +0100
25 +++ net-snmp-5.1.2-5/EXAMPLE.conf.def 2005-03-13 16:17:21.000000000 +0100
26 @@ -6,7 +6,7 @@
27 ###############################################################################
28 #
29 # This file is intended to only be an example. If, however, you want
30 -# to use it, it should be placed in SYSCONFDIR/share/snmp/snmpd.conf.
31 +# to use it, it should be placed in /etc/snmp/snmpd.conf.
32 # When the snmpd agent starts up, this is where it will look for it.
33 #
34 # You might be interested in generating your own snmpd.conf file using
35 @@ -58,31 +58,37 @@
36 # from):
37
38 # sec.name source community
39 -com2sec local localhost COMMUNITY
40 -com2sec mynetwork NETWORK/24 COMMUNITY
41 +com2sec paranoid default public
42 +#com2sec readonly default public
43 +#com2sec readwrite default private
44
45 ####
46 # Second, map the security names into group names:
47
48 # sec.model sec.name
49 -group MyRWGroup v1 local
50 -group MyRWGroup v2c local
51 -group MyRWGroup usm local
52 -group MyROGroup v1 mynetwork
53 -group MyROGroup v2c mynetwork
54 -group MyROGroup usm mynetwork
55 +group MyROSystem v1 paranoid
56 +group MyROSystem v2c paranoid
57 +group MyROSystem usm paranoid
58 +group MyROGroup v1 readonly
59 +group MyROGroup v2c readonly
60 +group MyROGroup usm readonly
61 +group MyRWGroup v1 readwrite
62 +group MyRWGroup v2c readwrite
63 +group MyRWGroup usm readwrite
64
65 ####
66 # Third, create a view for us to let the groups have rights to:
67
68 # incl/excl subtree mask
69 view all included .1 80
70 +view system included .iso.org.dod.internet.mgmt.mib-2.system
71
72 ####
73 # Finally, grant the 2 groups access to the 1 view with different
74 # write permissions:
75
76 # context sec.model sec.level match read write notif
77 +access MyROSystem "" any noauth exact system none none
78 access MyROGroup "" any noauth exact all none none
79 access MyRWGroup "" any noauth exact all all none
80
81 @@ -100,8 +106,8 @@
82 # value of an object whose value is given here will fail with an error
83 # status of notWritable.
84
85 -syslocation Right here, right now.
86 -syscontact Me <me@somewhere.org>
87 +syslocation Unknown (configure /etc/snmp/snmpd.local.conf)
88 +syscontact Root <root@localhost> (configure /etc/snmp/snmpd.local.conf)
89
90 # Example output of snmpwalk:
91 # % snmpwalk -v 1 -c public localhost system
92 @@ -135,13 +141,13 @@
93 #
94
95 # Make sure mountd is running
96 -proc mountd
97 +#proc mountd
98
99 # Make sure there are no more than 4 ntalkds running, but 0 is ok too.
100 -proc ntalkd 4
101 +#proc ntalkd 4
102
103 # Make sure at least one sendmail, but less than or equal to 10 are running.
104 -proc sendmail 10 1
105 +#proc sendmail 10 1
106
107 # A snmpwalk of the prTable would look something like this:
108 #
109 @@ -199,7 +205,7 @@
110 # ARGS: optional arguments to be passed to the program
111
112 # a simple hello world
113 -exec echotest /bin/echo hello world
114 +#exec echotest /bin/echo hello world
115
116 # Run a shell script containing:
117 #
118 @@ -250,7 +256,7 @@
119
120 # Check the / partition and make sure it contains at least 10 megs.
121
122 -disk / 10000
123 +#disk / 10000
124
125 # % snmpwalk -v 1 -c public localhost .EXTENSIBLEDOTMIB.DISKMIBNUM
126 # enterprises.ucdavis.diskTable.dskEntry.diskIndex.1 = 0
127 @@ -279,7 +285,7 @@
128 # 15MAX: Similar, but for 15 min average.
129
130 # Check for loads:
131 -load 12 14 14
132 +#load 12 14 14
133
134 # % snmpwalk -v 1 -c public localhost .EXTENSIBLEDOTMIB.LOADAVEMIBNUM
135 # enterprises.ucdavis.loadTable.laEntry.loadaveIndex.1 = 1
136 @@ -365,7 +371,7 @@
137 # (commented out here since it requires that you place the
138 # script in the right location. (its not installed by default))
139
140 -# pass .EXTENSIBLEDOTMIB.255 /bin/sh PREFIX/local/passtest
141 +# pass .EXTENSIBLEDOTMIB.255 /bin/sh /usr/local/passtest
142
143 # % snmpwalk -v 1 -c public localhost .EXTENSIBLEDOTMIB.255
144 # enterprises.ucdavis.255.1 = "life the universe and everything"
145 diff -ruN net-snmp-5.1.2-orig/FAQ net-snmp-5.1.2-5/FAQ
146 --- net-snmp-5.1.2-orig/FAQ 2004-08-07 10:02:45.000000000 +0200
147 +++ net-snmp-5.1.2-5/FAQ 2005-03-13 16:17:21.000000000 +0100
148 @@ -104,7 +104,7 @@
149 I don't understand the new access control stuff - what does it mean?
150 How do I configure SNMPv3 users?
151 The 'createUser' line disappears when I start the agent. Why?
152 - What's the difference between /var/ucd-snmp and /usr/local/share/snmp?
153 + What's the difference between /var/ucd-snmp and /usr/share/snmp?
154 My new agent is ignoring the old snmpd.conf file. Why?
155 Why am I getting "Connection refused"?
156 I'm getting errors about "bad security model" - why?
157 @@ -620,7 +620,7 @@
158
159 Firstly,
160
161 - cp MY-MIB.txt /usr/local/share/snmp/mibs
162 + cp MY-MIB.txt /usr/share/snmp/mibs
163
164 or
165
166 @@ -639,7 +639,7 @@
167 Note that you need *both* steps.
168 The first command copies the file defining the new MIB to a
169 expected location for MIB files. This defaults to
170 - /usr/local/share/snmp/mibs (or PREFIX/share/snmp/mibs if the the
171 + /usr/share/snmp/mibs (or PREFIX/share/snmp/mibs if the the
172 suite was installed into a different base location). Some
173 ready-packaged distributions (such as Linux RPM packages) may look
174 for MIB files in a different location, such as /etc/snmp/mibs - put
175 @@ -1111,7 +1111,7 @@
176 If this is the case, then you can specify this interpreter
177 explicitly as part of the trap handle directive:
178
179 - traphandle default /usr/bin/perl /usr/local/bin/log_it
180 + traphandle default /usr/bin/perl /usr/bin/log_it
181
182 Note that in this case, it's almost certain that you'll also
183 need to give the full path to the traphandle script (as shown)
184 @@ -1263,7 +1263,7 @@
185 (if appropriate) the community string to use.
186
187 Some of these (such as the MIB file location), might belong in a
188 - shared snmp.conf file (typically /usr/local/share/snmp/snmp.conf or
189 + shared snmp.conf file (typically /usr/share/snmp/snmp.conf or
190 /etc/snmp/snmp.conf) to apply to all users of the system. Others
191 (particularly the SNMPv3 security settings), are more likely to refer
192 to a particular user, and should go in a personal snmp.conf file
193 @@ -1522,7 +1522,7 @@
194
195
196 Alternatively, the tools may be looking in the wrong place.
197 - The default location for the mib files is /usr/local/share/snmp/mibs.
198 + The default location for the mib files is /usr/share/snmp/mibs.
199 Again, this is set when the suite is first configured and compiled.
200 This can be changed using the environmental variable 'MIBDIRS'
201 or the snmp.conf directive 'mibdirs'.
202 @@ -2507,11 +2507,11 @@
203
204
205
206 -What's the difference between /var/ucd-snmp and /usr/local/share/snmp?
207 +What's the difference between /var/ucd-snmp and /usr/share/snmp?
208 ---------------------------------------------------------------------
209
210 Most "static" agent configuration should go in the traditional location
211 - (typically /usr/local/share/snmp/snmpd.conf or /etc/snmp). The
212 + (typically /usr/share/snmp/snmpd.conf or /etc/snmp). The
213 /var/ucd-snmp (or /var/net-snmp) location is used for information set during
214 the running of the agent, which needs to be persistent between one run of
215 the agent and the next.
216 @@ -2531,7 +2531,7 @@
217 distribution), with the current release installed from the source.
218
219 The default location for this file with the basic distribution is
220 - /usr/local/share/snmp/snmpd.conf (or PREFIX/share/snmp/snmpd.conf).
221 + /usr/share/snmp/snmpd.conf (or PREFIX/share/snmp/snmpd.conf).
222 Ready-installed versions often look for the file as /etc/snmpd.conf,
223 or /etc/snmp/snmpd.conf. Try moving the old config file to the new
224 location, and restart the agent.
225 diff -ruN net-snmp-5.1.2-orig/Makefile.in net-snmp-5.1.2-5/Makefile.in
226 --- net-snmp-5.1.2-orig/Makefile.in 2004-08-04 14:48:14.000000000 +0200
227 +++ net-snmp-5.1.2-5/Makefile.in 2005-03-13 16:17:21.000000000 +0100
228 @@ -163,6 +163,11 @@
229 ( cd perl ; $(MAKE) clean ) ; \
230 fi
231
232 +perlrealclean:
233 + @if test -f perl/Makefile; then \
234 + ( cd perl ; $(MAKE) realclean ) ; \
235 + fi
236 +
237 #
238 # make distclean completely removes all traces of building including
239 # any files generated by configure itself.
240 diff -ruN net-snmp-5.1.2-orig/Makefile.rules net-snmp-5.1.2-5/Makefile.rules
241 --- net-snmp-5.1.2-orig/Makefile.rules 2004-02-13 23:42:28.000000000 +0100
242 +++ net-snmp-5.1.2-5/Makefile.rules 2005-03-13 16:17:21.000000000 +0100
243 @@ -301,7 +301,7 @@
244 # cleaning targets
245 #
246 clean: cleansubdirs $(OTHERCLEANTODOS)
247 - rm -f core ${OBJS} ${LOBJS} $(STANDARDCLEANTARGETS) $(OTHERCLEANTARGETS)
248 + rm -f -- core ${OBJS} ${LOBJS} $(STANDARDCLEANTARGETS) $(OTHERCLEANTARGETS)
249 rm -rf .libs
250
251 cleansubdirs:
252 diff -ruN net-snmp-5.1.2-orig/Makefile.top net-snmp-5.1.2-5/Makefile.top
253 --- net-snmp-5.1.2-orig/Makefile.top 2004-08-07 09:29:36.000000000 +0200
254 +++ net-snmp-5.1.2-5/Makefile.top 2005-03-13 16:17:21.000000000 +0100
255 @@ -27,6 +27,7 @@
256 snmplibdir = $(datadir)/snmp
257 mibdir = $(snmplibdir)/mibs
258 persistentdir = @PERSISTENT_DIRECTORY@
259 +sysconfdir = @sysconfdir@
260 INSTALL_PREFIX = @INSTALL_PREFIX@
261
262 #
263 diff -ruN net-snmp-5.1.2-orig/acconfig.h net-snmp-5.1.2-5/acconfig.h
264 --- net-snmp-5.1.2-orig/acconfig.h 2004-06-28 20:54:17.000000000 +0200
265 +++ net-snmp-5.1.2-5/acconfig.h 2005-03-13 16:17:21.000000000 +0100
266 @@ -560,6 +560,9 @@
267 /* define if you have getservbyname */
268 #undef HAVE_GETSERVBYNAME
269
270 +/* define if you have dlopen */
271 +#undef HAVE_DLOPEN
272 +
273 /* printing system */
274 #undef HAVE_LPSTAT
275 #undef LPSTAT_PATH
276 diff -ruN net-snmp-5.1.2-orig/acinclude.m4 net-snmp-5.1.2-5/acinclude.m4
277 --- net-snmp-5.1.2-orig/acinclude.m4 1970-01-01 01:00:00.000000000 +0100
278 +++ net-snmp-5.1.2-5/acinclude.m4 2005-03-13 16:17:21.000000000 +0100
279 @@ -0,0 +1,193 @@
280 +dnl @synopsis AC_PROMPT_USER_NO_DEFINE(VARIABLENAME,QUESTION,[DEFAULT])
281 +dnl
282 +dnl Asks a QUESTION and puts the results in VARIABLENAME with an optional
283 +dnl DEFAULT value if the user merely hits return.
284 +dnl
285 +dnl @version 1.15
286 +dnl @author Wes Hardaker <hardaker@users.sourceforge.net>
287 +dnl
288 +AC_DEFUN([AC_PROMPT_USER_NO_DEFINE],
289 +dnl changequote(<<, >>) dnl
290 +dnl <<
291 +[
292 +if test "x$defaults" = "xno"; then
293 +echo $ac_n "$2 ($3): $ac_c"
294 +read tmpinput
295 +if test "$tmpinput" = "" -a "$3" != ""; then
296 + tmpinput="$3"
297 +fi
298 +eval $1=\"$tmpinput\"
299 +else
300 +tmpinput="$3"
301 +eval $1=\"$tmpinput\"
302 +fi
303 +]
304 +dnl >>
305 +dnl changequote([, ])
306 +) dnl done AC_PROMPT_USER
307 +
308 +dnl @synopsis AC_PROMPT_USER(VARIABLENAME,QUESTION,[DEFAULT],QUOTED)
309 +dnl
310 +dnl Asks a QUESTION and puts the results in VARIABLENAME with an optional
311 +dnl DEFAULT value if the user merely hits return. Also calls
312 +dnl AC_DEFINE_UNQUOTED() on the VARIABLENAME for VARIABLENAMEs that should
313 +dnl be entered into the config.h file as well. If QUOTED is "quoted" then
314 +dnl the result will be defined within quotes.
315 +dnl
316 +dnl @version 1.15
317 +dnl @author Wes Hardaker <hardaker@users.sourceforge.net>
318 +dnl
319 +AC_DEFUN([AC_PROMPT_USER],
320 +[
321 +MSG_CHECK=`echo "$2" | tail -1`
322 +AC_CACHE_CHECK($MSG_CHECK, ac_cv_user_prompt_$1,
323 +[echo "" >&AC_FD_MSG
324 +AC_PROMPT_USER_NO_DEFINE($1,[$2],$3)
325 +eval ac_cv_user_prompt_$1=\$$1
326 +echo $ac_n "setting $MSG_CHECK to... $ac_c" >&AC_FD_MSG
327 +])
328 +if test "$ac_cv_user_prompt_$1" != "none"; then
329 + if test "x$4" = "xquoted" -o "x$4" = "xQUOTED"; then
330 + AC_DEFINE_UNQUOTED($1,"$ac_cv_user_prompt_$1")
331 + else
332 + AC_DEFINE_UNQUOTED($1,$ac_cv_user_prompt_$1)
333 + fi
334 +fi
335 +]) dnl
336 +
337 +dnl @synopsis AC_CHECK_STRUCT_FOR(INCLUDES,STRUCT,MEMBER,DEFINE,[no])
338 +dnl
339 +dnl Checks STRUCT for MEMBER and defines DEFINE if found.
340 +dnl
341 +dnl @version 1.15
342 +dnl @author Wes Hardaker <hardaker@users.sourceforge.net>
343 +dnl
344 +AC_DEFUN(AC_CHECK_STRUCT_FOR,[
345 +
346 +ac_safe_struct=`echo "$2" | sed 'y%./+-%__p_%'`
347 +ac_safe_member=`echo "$3" | sed 'y%./+-%__p_%'`
348 +ac_safe_all="ac_cv_struct_${ac_safe_struct}_has_${ac_safe_member}"
349 +changequote(, )dnl
350 + ac_uc_define=STRUCT_`echo "${ac_safe_struct}_HAS_${ac_safe_member}" | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
351 +changequote([, ])dnl
352 +
353 +AC_MSG_CHECKING([for $2.$3])
354 +AC_CACHE_VAL($ac_safe_all,
355 +[
356 +if test "x$4" = "x"; then
357 + defineit="= 0"
358 +elif test "x$4" = "xno"; then
359 + defineit=""
360 +else
361 + defineit="$4"
362 +fi
363 +AC_TRY_COMPILE([
364 +$1
365 +],[
366 +struct $2 testit;
367 +testit.$3 $defineit;
368 +], eval "${ac_safe_all}=yes", eval "${ac_safe_all}=no" )
369 +])
370 +
371 +if eval "test \"x$`echo ${ac_safe_all}`\" = \"xyes\""; then
372 + AC_MSG_RESULT(yes)
373 + AC_DEFINE_UNQUOTED($ac_uc_define)
374 +else
375 + AC_MSG_RESULT(no)
376 +fi
377 +
378 +])
379 +
380 +dnl AC_CHECK_IFNET_FOR(SUBSTRUCT,[no])
381 +AC_DEFUN(AC_CHECK_IFNET_FOR,[
382 +dnl check for $1 in struct ifnet
383 +AC_CHECK_STRUCT_FOR([
384 +#ifdef IFNET_NEEDS_KERNEL
385 +#define _KERNEL 1
386 +#endif
387 +#include <sys/types.h>
388 +#include <sys/socket.h>
389 +#ifdef HAVE_SYS_TIME_H
390 +#include <sys/time.h>
391 +#endif
392 +#include <net/if.h>
393 +#ifdef HAVE_NET_IF_VAR_H
394 +#include <net/if_var.h>
395 +#endif
396 +#ifdef HAVE_SYS_QUEUE_H
397 +#include <sys/queue.h>
398 +#endif
399 +#ifdef linux
400 +struct ifnet {
401 + char *if_name; /* name, e.g. "en" or "lo" */
402 + short if_unit; /* sub-unit for lower level driver */
403 + short if_mtu; /* maximum transmission unit */
404 + short if_flags; /* up/down, broadcast, etc. */
405 + int if_metric; /* routing metric (external only) */
406 + char if_hwaddr [6]; /* ethernet address */
407 + int if_type; /* interface type: 1=generic,
408 + 28=slip, ether=6, loopback=24 */
409 + int if_speed; /* interface speed: in bits/sec */
410 +
411 + struct sockaddr if_addr; /* interface's address */
412 + struct sockaddr ifu_broadaddr; /* broadcast address */
413 + struct sockaddr ia_subnetmask; /* interface's mask */
414 +
415 + struct ifqueue {
416 + int ifq_len;
417 + int ifq_drops;
418 + } if_snd; /* output queue */
419 + int if_ibytes; /* octets received on interface */
420 + int if_ipackets; /* packets received on interface */
421 + int if_ierrors; /* input errors on interface */
422 + int if_iqdrops; /* input queue overruns */
423 + int if_obytes; /* octets sent on interface */
424 + int if_opackets; /* packets sent on interface */
425 + int if_oerrors; /* output errors on interface */
426 + int if_collisions; /* collisions on csma interfaces */
427 +/* end statistics */
428 + struct ifnet *if_next;
429 +};
430 +#endif
431 +], ifnet, $1, $2)
432 +])
433 +
434 +dnl
435 +dnl Add a search path to the LIBS and CFLAGS variables
436 +dnl
437 +AC_DEFUN(AC_ADD_SEARCH_PATH,[
438 + if test "x$1" != x -a -d $1; then
439 + if test -d $1/lib; then
440 + LDFLAGS="-L$1/lib $LDFLAGS"
441 + fi
442 + if test -d $1/include; then
443 + CPPFLAGS="-I$1/include $CPPFLAGS"
444 + fi
445 + fi
446 +])
447 +
448 +dnl
449 +dnl Store information for displaying later.
450 +dnl
451 +AC_DEFUN(AC_MSG_CACHE_INIT,[
452 + rm -f configure-summary
453 +])
454 +
455 +AC_DEFUN(AC_MSG_CACHE_ADD,[
456 + cat >> configure-summary << EOF
457 + $1
458 +EOF
459 +])
460 +
461 +AC_DEFUN(AC_MSG_CACHE_DISPLAY,[
462 + echo ""
463 + echo "---------------------------------------------------------"
464 + echo " Net-SNMP configuration summary:"
465 + echo "---------------------------------------------------------"
466 + echo ""
467 + cat configure-summary
468 + echo ""
469 + echo "---------------------------------------------------------"
470 + echo ""
471 +])
472 +
473 diff -ruN net-snmp-5.1.2-orig/agent/Makefile.in net-snmp-5.1.2-5/agent/Makefile.in
474 --- net-snmp-5.1.2-orig/agent/Makefile.in 2003-10-14 15:30:48.000000000 +0200
475 +++ net-snmp-5.1.2-5/agent/Makefile.in 2005-03-13 16:17:21.000000000 +0100
476 @@ -82,7 +82,7 @@
477 # libnetsnmpagent objects
478 LIBAGENTOBJS=snmp_agent.o snmp_vars.o agent_read_config.o \
479 agent_registry.o agent_index.o agent_trap.o kernel.o \
480 - agent_handler.o @OTHERAGENTLIBOBJS@
481 + agent_handler.o @OTHERAGENTLIBOBJS@ @WRAPLIBS@
482 LLIBAGENTOBJS=snmp_agent.lo snmp_vars.lo agent_read_config.lo \
483 agent_registry.lo agent_index.lo agent_trap.lo kernel.lo \
484 agent_handler.lo @OTHERAGENTLIBLOBJS@
485 @@ -120,11 +120,11 @@
486
487
488 libnetsnmpagent.$(LIB_EXTENSION)$(LIB_VERSION): ${LLIBAGENTOBJS} libnetsnmpmibs.$(LIB_EXTENSION)$(LIB_VERSION)
489 - $(LIB_LD_CMD) libnetsnmpagent.$(LIB_EXTENSION)$(LIB_VERSION) ${LLIBAGENTOBJS} $(LIB_LD_LIBS)
490 + $(LIB_LD_CMD) libnetsnmpagent.$(LIB_EXTENSION)$(LIB_VERSION) ${LLIBAGENTOBJS} $(LIB_LD_LIBS) $(AGENT_RELINK_LIBS)
491 $(RANLIB) libnetsnmpagent.$(LIB_EXTENSION)$(LIB_VERSION)
492
493 libnetsnmpmibs.$(LIB_EXTENSION)$(LIB_VERSION): ${LMIBOBJS}
494 - $(LIB_LD_CMD) libnetsnmpmibs.$(LIB_EXTENSION)$(LIB_VERSION) ${LMIBOBJS} $(LIB_LD_LIBS)
495 + $(LIB_LD_CMD) libnetsnmpmibs.$(LIB_EXTENSION)$(LIB_VERSION) ${LMIBOBJS} $(LIB_LD_LIBS) $(MIBS_RELINK_LIBS) $(LIBSENSORS)
496 $(RANLIB) libnetsnmpmibs.$(LIB_EXTENSION)$(LIB_VERSION)
497
498 embedperlinstall:
499 diff -ruN net-snmp-5.1.2-orig/agent/helpers/Makefile.in net-snmp-5.1.2-5/agent/helpers/Makefile.in
500 --- net-snmp-5.1.2-orig/agent/helpers/Makefile.in 2004-03-01 06:26:12.000000000 +0100
501 +++ net-snmp-5.1.2-5/agent/helpers/Makefile.in 2005-03-13 16:17:21.000000000 +0100
502 @@ -68,5 +68,5 @@
503 all: standardall
504
505 libnetsnmphelpers.$(LIB_EXTENSION)$(LIB_VERSION): ${LOBJS}
506 - $(LIB_LD_CMD) libnetsnmphelpers.$(LIB_EXTENSION)$(LIB_VERSION) ${LOBJS} $(LIB_LD_LIBS)
507 + $(LIB_LD_CMD) libnetsnmphelpers.$(LIB_EXTENSION)$(LIB_VERSION) ${LOBJS} $(LIB_LD_LIBS) $(HELPERS_RELINK_LIBS)
508 $(RANLIB) libnetsnmphelpers.$(LIB_EXTENSION)$(LIB_VERSION)
509 diff -ruN net-snmp-5.1.2-orig/agent/mibgroup/agentx/protocol.h net-snmp-5.1.2-5/agent/mibgroup/agentx/protocol.h
510 --- net-snmp-5.1.2-orig/agent/mibgroup/agentx/protocol.h 2002-04-20 09:30:01.000000000 +0200
511 +++ net-snmp-5.1.2-5/agent/mibgroup/agentx/protocol.h 2005-03-13 16:17:21.000000000 +0100
512 @@ -10,7 +10,7 @@
513 */
514
515 #define AGENTX_PORT 705
516 -#define AGENTX_SOCKET "/var/agentx/master"
517 +#define AGENTX_SOCKET "/var/run/agentx"
518
519 /*
520 * AgentX versions
521 diff -ruN net-snmp-5.1.2-orig/agent/mibgroup/mibII/interfaces.c net-snmp-5.1.2-5/agent/mibgroup/mibII/interfaces.c
522 --- net-snmp-5.1.2-orig/agent/mibgroup/mibII/interfaces.c 2004-07-23 02:55:41.000000000 +0200
523 +++ net-snmp-5.1.2-5/agent/mibgroup/mibII/interfaces.c 2005-03-13 16:17:21.000000000 +0100
524 @@ -1512,14 +1512,28 @@
525 struct ifreq ifrq;
526 struct ifnet **ifnetaddr_ptr;
527 FILE *devin;
528 - unsigned long rec_pkt, rec_oct, rec_err, rec_drop;
529 - unsigned long snd_pkt, snd_oct, snd_err, snd_drop, coll;
530 int i, fd;
531 conf_if_list *if_ptr;
532 +#ifdef SCNuMAX
533 + uintmax_t rec_pkt, rec_oct, rec_err, rec_drop, rec_mcast;
534 + uintmax_t snd_pkt, snd_oct, snd_err, snd_drop, coll;
535 + const char *scan_line_2_2 =
536 + "%" SCNuMAX " %" SCNuMAX " %" SCNuMAX " %" SCNuMAX
537 + " %*" SCNuMAX " %*" SCNuMAX " %*" SCNuMAX " %*" SCNuMAX
538 + " %" SCNuMAX " %" SCNuMAX " %" SCNuMAX " %" SCNuMAX
539 + " %*" SCNuMAX " %" SCNuMAX;
540 + const char *scan_line_2_0 =
541 + "%" SCNuMAX " %" SCNuMAX " %*" SCNuMAX " %*" SCNuMAX
542 + " %*" SCNuMAX " %" SCNuMAX " %" SCNuMAX " %*" SCNuMAX
543 + " %*" SCNuMAX " %" SCNuMAX;
544 +#else
545 + unsigned long rec_pkt, rec_oct, rec_err, rec_drop;
546 + unsigned long snd_pkt, snd_oct, snd_err, snd_drop, coll;
547 const char *scan_line_2_2 =
548 "%lu %lu %lu %lu %*lu %*lu %*lu %*lu %lu %lu %lu %lu %*lu %lu";
549 const char *scan_line_2_0 =
550 "%lu %lu %*lu %*lu %*lu %lu %lu %*lu %*lu %lu";
551 +#endif
552 const char *scan_line_to_use;
553 struct timeval et; /* elapsed time */
554
555 @@ -1598,6 +1612,10 @@
556 struct ifnet *nnew;
557 char *stats, *ifstart = line;
558
559 + /* Ignore interfaces with no statistics. */
560 + if (strstr(line, "No statistics available."))
561 + continue;
562 +
563 if (line[strlen(line) - 1] == '\n')
564 line[strlen(line) - 1] = '\0';
565
566 @@ -1631,7 +1649,7 @@
567 &coll) != 5)) {
568 if ((scan_line_to_use == scan_line_2_2)
569 && !strstr(line, "No statistics available"))
570 - snmp_log(LOG_ERR,
571 + snmp_log(LOG_DEBUG,
572 "/proc/net/dev data format error, line ==|%s|",
573 line);
574 continue;
575 diff -ruN net-snmp-5.1.2-orig/agent/mibgroup/smux/smux.c net-snmp-5.1.2-5/agent/mibgroup/smux/smux.c
576 --- net-snmp-5.1.2-orig/agent/mibgroup/smux/smux.c 2004-02-04 12:25:20.000000000 +0100
577 +++ net-snmp-5.1.2-5/agent/mibgroup/smux/smux.c 2005-03-13 16:17:21.000000000 +0100
578 @@ -819,14 +819,14 @@
579 passwd[string_len] = '\0';
580 if (!smux_auth_peer(oid_name, oid_name_len, passwd, fd)) {
581 snmp_log(LOG_WARNING,
582 - "refused smux peer: oid %s, password %s, descr %s\n",
583 - oid_print, passwd, descr);
584 + "refused smux peer: oid %s, descr %s\n",
585 + oid_print, descr);
586 *fail = TRUE;
587 return ptr;
588 }
589 snmp_log(LOG_INFO,
590 - "accepted smux peer: oid %s, password %s, descr %s\n",
591 - oid_print, passwd, descr);
592 + "accepted smux peer: oid %s, descr %s\n",
593 + oid_print, descr);
594 *fail = FALSE;
595 return ptr;
596 }
597 diff -ruN net-snmp-5.1.2-orig/apps/Makefile.in net-snmp-5.1.2-5/apps/Makefile.in
598 --- net-snmp-5.1.2-orig/apps/Makefile.in 2004-03-09 16:51:28.000000000 +0100
599 +++ net-snmp-5.1.2-5/apps/Makefile.in 2005-03-13 16:17:21.000000000 +0100
600 @@ -129,7 +129,7 @@
601 $(LINK) -o $@ snmpdf.$(OSUFFIX) $(LOCAL_LIBS) ${LDFLAGS} ${LIBS}
602
603 libnetsnmptrapd.$(LIB_EXTENSION)$(LIB_VERSION): $(LLIBTRAPD_OBJS)
604 - $(LIB_LD_CMD) libnetsnmptrapd.$(LIB_EXTENSION)$(LIB_VERSION) ${LLIBTRAPD_OBJS} $(LIB_LD_LIBS)
605 + $(LIB_LD_CMD) libnetsnmptrapd.$(LIB_EXTENSION)$(LIB_VERSION) ${LLIBTRAPD_OBJS} $(LIB_LD_LIBS) $(TRAPD_RELINK_LIBS)
606 $(RANLIB) libnetsnmptrapd.$(LIB_EXTENSION)$(LIB_VERSION)
607
608 snmpinforminstall:
609 diff -ruN net-snmp-5.1.2-orig/apps/snmpnetstat/if.c net-snmp-5.1.2-5/apps/snmpnetstat/if.c
610 --- net-snmp-5.1.2-orig/apps/snmpnetstat/if.c 2002-04-20 09:30:10.000000000 +0200
611 +++ net-snmp-5.1.2-5/apps/snmpnetstat/if.c 2005-03-13 16:17:21.000000000 +0100
612 @@ -300,8 +300,9 @@
613 case IFINDEX:
614 ifindex = *var->val.integer;
615 for (cur_if = if_table;
616 - cur_if->ifindex != ifindex && cur_if->ifindex != 0;
617 - cur_if++);
618 + cur_if < (if_table + cfg_nnets) &&
619 + cur_if->ifindex != ifindex &&
620 + cur_if->ifindex != 0; cur_if++);
621 if (cur_if >= (if_table + cfg_nnets)) {
622 fprintf(stderr,
623 "Inconsistent reponse from server. Aborting\n");
624 @@ -492,8 +493,14 @@
625 case IPIFINDEX:
626 ifindex = *var->val.integer;
627 for (cur_if = if_table;
628 - cur_if->ifindex != ifindex && cur_if->ifindex != 0;
629 - cur_if++);
630 + cur_if < (if_table + cfg_nnets) &&
631 + cur_if->ifindex != ifindex &&
632 + cur_if->ifindex != 0; cur_if++);
633 + if (cur_if >= (if_table + cfg_nnets)) {
634 + fprintf(stderr,
635 + "Inconsistent reponse from server. Aborting.\n");
636 + exit(0);
637 + }
638 cur_if->ifindex = ifindex;
639 break;
640 case IPADDR:
641 @@ -567,8 +574,14 @@
642 case IFINDEX:
643 ifindex = *var->val.integer;
644 for (cur_if = if_table;
645 - cur_if->ifindex != ifindex && cur_if->ifindex != 0;
646 - cur_if++);
647 + cur_if < (if_table + cfg_nnets) &&
648 + cur_if->ifindex != ifindex &&
649 + cur_if->ifindex != 0; cur_if++);
650 + if (cur_if >= (if_table + cfg_nnets)) {
651 + fprintf(stderr,
652 + "Inconsistent reponse from server. Aborting.\n");
653 + exit(0);
654 + }
655 cur_if->ifindex = ifindex;
656 break;
657 case INOCTETS:
658 diff -ruN net-snmp-5.1.2-orig/configure.in net-snmp-5.1.2-5/configure.in
659 --- net-snmp-5.1.2-orig/configure.in 2004-06-23 00:06:40.000000000 +0200
660 +++ net-snmp-5.1.2-5/configure.in 2005-03-13 16:17:21.000000000 +0100
661 @@ -161,6 +161,9 @@
662 AC_DEFINE(SNMP_NO_DEBUGGING)
663 fi
664
665 +AC_ARG_WITH(rpm,
666 +[ --without-rpm Don't use RPM even if available.])
667 +
668 AC_ARG_WITH(dmalloc,
669 [ --with-dmalloc=PATH Use dmalloc library (www.dmalloc.com)],
670 if test "x$withval" = "xyes"; then
671 @@ -1539,12 +1542,13 @@
672 AC_CHECK_LIB(RSAglue, RSA_PKCS1_RSAref)
673 fi
674
675 - AC_CHECK_LIB(crypto, EVP_md5)
676 + AC_CHECK_LIB(crypto, EVP_md5, [CRYPTOLIBS=-lcrypto], , )
677 AC_CHECK_FUNCS(AES_cfb128_encrypt)
678 fi
679 elif test "x$askedpkcs" = "xyes"; then
680 AC_CHECK_LIB(pkcs11, C_Initialize)
681 fi
682 +AC_SUBST(CRYPTOLIBS)
683
684 # Check for libraries that the agent needs
685 # saving old libraries
686 @@ -1664,8 +1668,9 @@
687 # Replace `main' with a function in -lkvm:
688 AC_CHECK_LIB(kvm, kvm_read)
689 # DYNAMIC MODULE SUPPORT
690 -AC_CHECK_LIB(dl, dlopen)
691 -AC_CHECK_FUNCS(dlopen)
692 +AC_CHECK_FUNC(dlopen, AC_DEFINE(HAVE_DLOPEN),
693 + AC_CHECK_LIB(dl, dlopen, AC_DEFINE(HAVE_DLOPEN)
694 + LIBS="${LIBS} -ldl"))
695
696 AC_CHECK_FUNCS(kvm_openfiles nlist knlist kvm_getprocs)
697 echo "$with_mib_modules" | grep "ucd-snmp/diskio" >/dev/null
698 @@ -1979,7 +1984,7 @@
699
700 AC_MSG_RESULT([$ac_cv_type_ssize_t])
701 if test $ac_cv_type_ssize_t = yes; then
702 - AC_DEFINE(HAVE_SSIZE_T)
703 + AC_DEFINE(HAVE_SSIZE_T, 1, [Define if type ssize_t is available])
704 fi
705
706 # Check ps args
707 diff -ruN net-snmp-5.1.2-orig/debian/README.Debian net-snmp-5.1.2-5/debian/README.Debian
708 diff -ruN net-snmp-5.1.2-orig/debian/changelog net-snmp-5.1.2-5/debian/changelog
709 diff -ruN net-snmp-5.1.2-orig/debian/control net-snmp-5.1.2-5/debian/control
710 diff -ruN net-snmp-5.1.2-orig/debian/copyright net-snmp-5.1.2-5/debian/copyright
711 diff -ruN net-snmp-5.1.2-orig/debian/fixman net-snmp-5.1.2-5/debian/fixman
712 diff -ruN net-snmp-5.1.2-orig/debian/libsnmp-base.dirs net-snmp-5.1.2-5/debian/libsnmp-base.dirs
713 diff -ruN net-snmp-5.1.2-orig/debian/libsnmp-base.docs net-snmp-5.1.2-5/debian/libsnmp-base.docs
714 diff -ruN net-snmp-5.1.2-orig/debian/libsnmp-base.files net-snmp-5.1.2-5/debian/libsnmp-base.files
715 diff -ruN net-snmp-5.1.2-orig/debian/libsnmp-base.postrm net-snmp-5.1.2-5/debian/libsnmp-base.postrm
716 diff -ruN net-snmp-5.1.2-orig/debian/libsnmp-base.prerm net-snmp-5.1.2-5/debian/libsnmp-base.prerm
717 diff -ruN net-snmp-5.1.2-orig/debian/libsnmp-perl.docs net-snmp-5.1.2-5/debian/libsnmp-perl.docs
718 diff -ruN net-snmp-5.1.2-orig/debian/libsnmp-perl.files net-snmp-5.1.2-5/debian/libsnmp-perl.files
719 diff -ruN net-snmp-5.1.2-orig/debian/libsnmp5-dev.files net-snmp-5.1.2-5/debian/libsnmp5-dev.files
720 diff -ruN net-snmp-5.1.2-orig/debian/libsnmp5-dev.manpages net-snmp-5.1.2-5/debian/libsnmp5-dev.manpages
721 diff -ruN net-snmp-5.1.2-orig/debian/libsnmp5.dirs net-snmp-5.1.2-5/debian/libsnmp5.dirs
722 diff -ruN net-snmp-5.1.2-orig/debian/libsnmp5.docs net-snmp-5.1.2-5/debian/libsnmp5.docs
723 diff -ruN net-snmp-5.1.2-orig/debian/libsnmp5.files net-snmp-5.1.2-5/debian/libsnmp5.files
724 diff -ruN net-snmp-5.1.2-orig/debian/libsnmp5.postinst net-snmp-5.1.2-5/debian/libsnmp5.postinst
725 diff -ruN net-snmp-5.1.2-orig/debian/libsnmp5.prerm net-snmp-5.1.2-5/debian/libsnmp5.prerm
726 diff -ruN net-snmp-5.1.2-orig/debian/manpages/encode_keychange.1 net-snmp-5.1.2-5/debian/manpages/encode_keychange.1
727 diff -ruN net-snmp-5.1.2-orig/debian/manpages/net-snmp-config.1 net-snmp-5.1.2-5/debian/manpages/net-snmp-config.1
728 diff -ruN net-snmp-5.1.2-orig/debian/manpages/snmpvacm.1 net-snmp-5.1.2-5/debian/manpages/snmpvacm.1
729 diff -ruN net-snmp-5.1.2-orig/debian/manpages/tkmib.1 net-snmp-5.1.2-5/debian/manpages/tkmib.1
730 diff -ruN net-snmp-5.1.2-orig/debian/rules net-snmp-5.1.2-5/debian/rules
731 diff -ruN net-snmp-5.1.2-orig/debian/snmp.files net-snmp-5.1.2-5/debian/snmp.files
732 diff -ruN net-snmp-5.1.2-orig/debian/snmp.manpages net-snmp-5.1.2-5/debian/snmp.manpages
733 diff -ruN net-snmp-5.1.2-orig/debian/snmp.preinst net-snmp-5.1.2-5/debian/snmp.preinst
734 diff -ruN net-snmp-5.1.2-orig/debian/snmpd.default net-snmp-5.1.2-5/debian/snmpd.default
735 diff -ruN net-snmp-5.1.2-orig/debian/snmpd.files net-snmp-5.1.2-5/debian/snmpd.files
736 diff -ruN net-snmp-5.1.2-orig/debian/snmpd.init net-snmp-5.1.2-5/debian/snmpd.init
737 diff -ruN net-snmp-5.1.2-orig/debian/snmpd.postinst net-snmp-5.1.2-5/debian/snmpd.postinst
738 diff -ruN net-snmp-5.1.2-orig/debian/snmpd.postrm net-snmp-5.1.2-5/debian/snmpd.postrm
739 diff -ruN net-snmp-5.1.2-orig/debian/tkmib.docs net-snmp-5.1.2-5/debian/tkmib.docs
740 diff -ruN net-snmp-5.1.2-orig/debian/tkmib.files net-snmp-5.1.2-5/debian/tkmib.files
741 diff -ruN net-snmp-5.1.2-orig/debian/tkmib.manpages net-snmp-5.1.2-5/debian/tkmib.manpages
742 diff -ruN net-snmp-5.1.2-orig/debian/watch net-snmp-5.1.2-5/debian/watch
743 diff -ruN net-snmp-5.1.2-orig/ipkg/libsnmp/CONTROL/control net-snmp-5.1.2-5/ipkg/libsnmp/CONTROL/control
744 diff -ruN net-snmp-5.1.2-orig/ipkg/libsnmp-dev/CONTROL/control net-snmp-5.1.2-5/ipkg/libsnmp-dev/CONTROL/control
745 diff -ruN net-snmp-5.1.2-orig/ipkg/rules net-snmp-5.1.2-5/ipkg/rules
746 diff -ruN net-snmp-5.1.2-orig/ipkg/snmp-utils/CONTROL/control net-snmp-5.1.2-5/ipkg/snmp-utils/CONTROL/control
747 diff -ruN net-snmp-5.1.2-orig/ipkg/snmpd/CONTROL/conffiles net-snmp-5.1.2-5/ipkg/snmpd/CONTROL/conffiles
748 diff -ruN net-snmp-5.1.2-orig/ipkg/snmpd/CONTROL/control net-snmp-5.1.2-5/ipkg/snmpd/CONTROL/control
749 diff -ruN net-snmp-5.1.2-orig/ipkg/snmpd/etc/default/snmpd net-snmp-5.1.2-5/ipkg/snmpd/etc/default/snmpd
750 diff -ruN net-snmp-5.1.2-orig/ipkg/snmpd/etc/init.d/snmpd net-snmp-5.1.2-5/ipkg/snmpd/etc/init.d/snmpd
751 diff -ruN net-snmp-5.1.2-orig/ipkg/snmpd/etc/snmp/snmpd.conf net-snmp-5.1.2-5/ipkg/snmpd/etc/snmp/snmpd.conf
752 diff -ruN net-snmp-5.1.2-orig/ipkg/snmpd-static/CONTROL/control net-snmp-5.1.2-5/ipkg/snmpd-static/CONTROL/control
753 diff -ruN net-snmp-5.1.2-orig/ipkg/version net-snmp-5.1.2-5/ipkg/version
754 diff -ruN net-snmp-5.1.2-orig/local/Makefile.in net-snmp-5.1.2-5/local/Makefile.in
755 --- net-snmp-5.1.2-orig/local/Makefile.in 2003-12-20 05:38:17.000000000 +0100
756 +++ net-snmp-5.1.2-5/local/Makefile.in 2005-03-13 16:17:21.000000000 +0100
757 @@ -58,7 +58,7 @@
758
759 mib2c.made: $(srcdir)/mib2c
760 if test "x$(PERLPROG)" != "x" ; then \
761 - $(PERLPROG) -p -e 's%^#!.*/perl.*%#!$(PERLPROG)%;s#/usr/local/share/snmp#$(snmplibdir)#;' ${srcdir}/mib2c > mib2c.made; \
762 + $(PERLPROG) -p -e 's%^#!.*/perl.*%#!$(PERLPROG)%;s#/usr/local/share/snmp#$(snmplibdir)#;s#/usr/local/etc/snmp#$(SNMPCONFPATH)#;' ${srcdir}/mib2c > mib2c.made; \
763 else \
764 touch mib2c.made; \
765 fi
766 diff -ruN net-snmp-5.1.2-orig/local/mib2c net-snmp-5.1.2-5/local/mib2c
767 --- net-snmp-5.1.2-orig/local/mib2c 2004-06-15 16:26:37.000000000 +0200
768 +++ net-snmp-5.1.2-5/local/mib2c 2005-03-13 16:17:21.000000000 +0100
769 @@ -56,7 +56,8 @@
770 if($ENV{MIB2C_DIR}) {
771 push @def_search_dirs, $ENV{MIB2C_DIR};
772 }
773 -push @def_search_dirs, "/usr/local/share/snmp/";
774 +push @def_search_dirs, "/etc/snmp/";
775 +push @def_search_dirs, "/usr/share/snmp/";
776
777
778 sub usage {
779 diff -ruN net-snmp-5.1.2-orig/man/mib2c.1.def net-snmp-5.1.2-5/man/mib2c.1.def
780 --- net-snmp-5.1.2-orig/man/mib2c.1.def 2003-10-02 20:04:19.000000000 +0200
781 +++ net-snmp-5.1.2-5/man/mib2c.1.def 2005-03-13 16:17:21.000000000 +0100
782 @@ -72,8 +72,9 @@
783 .TP
784 .BI -c " CONFIGFILE"
785 Use CONFIGFILE when generating code. These files will be searched for
786 -first in the current directory and then in the DATADIR directory
787 -(which is where the default mib2c configuration files can be found).
788 +first in the current directory and then in /etc/snmp
789 +(which is where the default mib2c configuration files can be found)
790 +and finally in the DATADIR directory.
791 Running mib2c without the -c CONFIGFILE option will display
792 a description of the valid values for CONFIGFILE, that is,
793 the available config files, including new ones that you might
794 diff -ruN net-snmp-5.1.2-orig/man/mib_api.3.def net-snmp-5.1.2-5/man/mib_api.3.def
795 --- net-snmp-5.1.2-orig/man/mib_api.3.def 2004-04-15 00:41:32.000000000 +0200
796 +++ net-snmp-5.1.2-5/man/mib_api.3.def 2005-03-13 16:17:21.000000000 +0100
797 @@ -5,7 +5,7 @@
798 add_module_replacement,
799 read_module, read_mib, read_all_mibs,
800 read_objid, read_module_node,
801 -get_module_node, read_objid
802 +get_module_node
803 snmp_set_mib_warnings, snmp_set_save_descriptions,
804 shutdown_mib,
805 print_mib,
806 @@ -34,9 +34,9 @@
807 .PP
808 .BI "void print_mib(FILE *" "fp" );
809 .PP
810 -.BI "int read_objid(char *" "input" ", oid *" "output" ", int *" "out_len" );
811 +.BI "int read_objid(char *" "input" ", oid *" "output" ", size_t *" "out_len" );
812 .br
813 -.BI "int get_module_node(char *" "name" ", char *" "module" ", oid *" "objid" ", int *" "objidlen" );
814 +.BI "int get_module_node(char *" "name" ", char *" "module" ", oid *" "objid" ", size_t *" "objidlen" );
815 .PP
816 .BI "void print_variable(const oid *" "objid" ", size_t " "objidlen" ", struct variable_list *" "variable" );
817 .br
818 diff -ruN net-snmp-5.1.2-orig/man/snmp_config.5.def net-snmp-5.1.2-5/man/snmp_config.5.def
819 --- net-snmp-5.1.2-orig/man/snmp_config.5.def 2003-12-10 11:41:41.000000000 +0100
820 +++ net-snmp-5.1.2-5/man/snmp_config.5.def 2005-03-13 16:17:21.000000000 +0100
821 @@ -11,7 +11,7 @@
822 found and read from. By default, the applications look for
823 configuration files in the following 4 directories, in order:
824 SYSCONFDIR/snmp,
825 -DATADIR/snmp, LIBDIR/snmp, and $HOME/.snmp. In each of these
826 +/etc/snmp, LIBDIR/snmp, and $HOME/.snmp. In each of these
827 directories, it looks for files with the extension of both
828 .IR conf " and " local.conf
829 (reading the second ones last). In this manner, there are
830 diff -ruN net-snmp-5.1.2-orig/man/snmp_trap_api.3.def net-snmp-5.1.2-5/man/snmp_trap_api.3.def
831 --- net-snmp-5.1.2-orig/man/snmp_trap_api.3.def 2003-09-29 04:58:18.000000000 +0200
832 +++ net-snmp-5.1.2-5/man/snmp_trap_api.3.def 2005-03-13 16:17:21.000000000 +0100
833 @@ -1,8 +1,7 @@
834 .TH SNMP_TRAP_API 3 "7 Mar 2002" VVERSIONINFO "Net-SNMP"
835 .UC 5
836 .SH NAME
837 -send_easy_trap, send_trap_vars, send_v2trap - send TRAPs or INFORMs
838 -from a Net-SNMP MIB module
839 +send_easy_trap, send_trap_vars, send_v2trap - send TRAPs or INFORMs from a Net-SNMP MIB module
840 .SH SYNOPSIS
841 .B #include <net-snmp/agent/agent_trap.h>
842 .PP
843 diff -ruN net-snmp-5.1.2-orig/mibs/BGP4-MIB.txt net-snmp-5.1.2-5/mibs/BGP4-MIB.txt
844 --- net-snmp-5.1.2-orig/mibs/BGP4-MIB.txt 1970-01-01 01:00:00.000000000 +0100
845 +++ net-snmp-5.1.2-5/mibs/BGP4-MIB.txt 2005-03-13 16:17:21.000000000 +0100
846 @@ -0,0 +1,929 @@
847 + BGP4-MIB DEFINITIONS ::= BEGIN
848 +
849 + IMPORTS
850 + MODULE-IDENTITY, OBJECT-TYPE, NOTIFICATION-TYPE,
851 + IpAddress, Integer32, Counter32, Gauge32, mib-2
852 + FROM SNMPv2-SMI
853 + MODULE-COMPLIANCE, OBJECT-GROUP, NOTIFICATION-GROUP
854 + FROM SNMPv2-CONF;
855 +
856 + bgp MODULE-IDENTITY
857 + LAST-UPDATED "9902100000Z"
858 + ORGANIZATION "IETF IDR Working Group"
859 + CONTACT-INFO "E-mail: idr@merit.net
860 +
861 + Susan Hares (Editor)
862 + Merit Network
863 + 4251 Plymouth Road
864 + Suite C
865 + Ann Arbor, MI 48105-2785
866 + Tel: +1 734 936 2095
867 + Fax: +1 734 647 3185
868 + E-mail: skh@merit.edu
869 +
870 + Jeff Johnson (Editor)
871 + RedBack Networks, Inc.
872 + 1389 Moffett Park Drive
873 + Sunnyvale, CA 94089-1134
874 + Tel: +1 408 548 3516
875 + Fax: +1 408 548 3599
876 + E-mail: jeff@redback.com"
877 + DESCRIPTION
878 + "The MIB module for BGP-4."
879 + REVISION "9902100000Z"
880 + DESCRIPTION
881 + "Corrected duplicate OBJECT IDENTIFIER
882 + assignment in the conformance information."
883 + REVISION "9601080000Z"
884 + DESCRIPTION
885 + "1) Fixed the definitions of the traps to
886 + make them equivalent to their initial
887 + definition in RFC 1269.
888 + 2) Added compliance and conformance info."
889 + ::= { mib-2 15 }
890 +
891 + bgpVersion OBJECT-TYPE
892 + SYNTAX OCTET STRING (SIZE (1..255))
893 + MAX-ACCESS read-only
894 + STATUS current
895 + DESCRIPTION
896 + "Vector of supported BGP protocol version
897 + numbers. Each peer negotiates the version
898 + from this vector. Versions are identified
899 + via the string of bits contained within this
900 + object. The first octet contains bits 0 to
901 + 7, the second octet contains bits 8 to 15,
902 + and so on, with the most significant bit
903 + referring to the lowest bit number in the
904 + octet (e.g., the MSB of the first octet
905 + refers to bit 0). If a bit, i, is present
906 + and set, then the version (i+1) of the BGP
907 + is supported."
908 + ::= { bgp 1 }
909 +
910 + bgpLocalAs OBJECT-TYPE
911 + SYNTAX INTEGER (0..65535)
912 + MAX-ACCESS read-only
913 + STATUS current
914 + DESCRIPTION
915 + "The local autonomous system number."
916 + ::= { bgp 2 }
917 +
918 +
919 +
920 + -- BGP Peer table. This table contains, one entry per BGP
921 + -- peer, information about the BGP peer.
922 +
923 + bgpPeerTable OBJECT-TYPE
924 + SYNTAX SEQUENCE OF BgpPeerEntry
925 + MAX-ACCESS not-accessible
926 + STATUS current
927 + DESCRIPTION
928 + "BGP peer table. This table contains,
929 + one entry per BGP peer, information about the
930 + connections with BGP peers."
931 + ::= { bgp 3 }
932 +
933 + bgpPeerEntry OBJECT-TYPE
934 + SYNTAX BgpPeerEntry
935 + MAX-ACCESS not-accessible
936 + STATUS current
937 + DESCRIPTION
938 + "Entry containing information about the
939 + connection with a BGP peer."
940 + INDEX { bgpPeerRemoteAddr }
941 + ::= { bgpPeerTable 1 }
942 +
943 + BgpPeerEntry ::= SEQUENCE {
944 + bgpPeerIdentifier
945 + IpAddress,
946 + bgpPeerState
947 + INTEGER,
948 + bgpPeerAdminStatus
949 + INTEGER,
950 + bgpPeerNegotiatedVersion
951 + Integer32,
952 + bgpPeerLocalAddr
953 + IpAddress,
954 + bgpPeerLocalPort
955 + INTEGER,
956 + bgpPeerRemoteAddr
957 + IpAddress,
958 + bgpPeerRemotePort
959 + INTEGER,
960 + bgpPeerRemoteAs
961 + INTEGER,
962 + bgpPeerInUpdates
963 + Counter32,
964 + bgpPeerOutUpdates
965 + Counter32,
966 + bgpPeerInTotalMessages
967 + Counter32,
968 + bgpPeerOutTotalMessages
969 + Counter32,
970 + bgpPeerLastError
971 + OCTET STRING,
972 + bgpPeerFsmEstablishedTransitions
973 + Counter32,
974 + bgpPeerFsmEstablishedTime
975 + Gauge32,
976 + bgpPeerConnectRetryInterval
977 + INTEGER,
978 + bgpPeerHoldTime
979 + INTEGER,
980 + bgpPeerKeepAlive
981 + INTEGER,
982 + bgpPeerHoldTimeConfigured
983 + INTEGER,
984 + bgpPeerKeepAliveConfigured
985 + INTEGER,
986 + bgpPeerMinASOriginationInterval
987 + INTEGER,
988 + bgpPeerMinRouteAdvertisementInterval
989 + INTEGER,
990 + bgpPeerInUpdateElapsedTime
991 + Gauge32
992 + }
993 +
994 + bgpPeerIdentifier OBJECT-TYPE
995 + SYNTAX IpAddress
996 + MAX-ACCESS read-only
997 + STATUS current
998 + DESCRIPTION
999 + "The BGP Identifier of this entry's BGP peer."
1000 + ::= { bgpPeerEntry 1 }
1001 +
1002 + bgpPeerState OBJECT-TYPE
1003 + SYNTAX INTEGER {
1004 + idle(1),
1005 + connect(2),
1006 + active(3),
1007 + opensent(4),
1008 + openconfirm(5),
1009 + established(6)
1010 + }
1011 + MAX-ACCESS read-only
1012 + STATUS current
1013 + DESCRIPTION
1014 + "The BGP peer connection state."
1015 + ::= { bgpPeerEntry 2 }
1016 +
1017 + bgpPeerAdminStatus OBJECT-TYPE
1018 + SYNTAX INTEGER {
1019 + stop(1),
1020 + start(2)
1021 + }
1022 + MAX-ACCESS read-write
1023 + STATUS current
1024 + DESCRIPTION
1025 + "The desired state of the BGP connection. A
1026 + transition from 'stop' to 'start' will cause
1027 + the BGP Start Event to be generated. A
1028 + transition from 'start' to 'stop' will cause
1029 + the BGP Stop Event to be generated. This
1030 + parameter can be used to restart BGP peer
1031 + connections. Care should be used in providing
1032 + write access to this object without adequate
1033 + authentication."
1034 + ::= { bgpPeerEntry 3 }
1035 +
1036 + bgpPeerNegotiatedVersion OBJECT-TYPE
1037 + SYNTAX Integer32
1038 + MAX-ACCESS read-only
1039 + STATUS current
1040 + DESCRIPTION
1041 + "The negotiated version of BGP running between
1042 + the two peers."
1043 + ::= { bgpPeerEntry 4 }
1044 +
1045 + bgpPeerLocalAddr OBJECT-TYPE
1046 + SYNTAX IpAddress
1047 + MAX-ACCESS read-only
1048 + STATUS current
1049 + DESCRIPTION
1050 + "The local IP address of this entry's BGP
1051 + connection."
1052 + ::= { bgpPeerEntry 5 }
1053 +
1054 + bgpPeerLocalPort OBJECT-TYPE
1055 + SYNTAX INTEGER (0..65535)
1056 + MAX-ACCESS read-only
1057 + STATUS current
1058 + DESCRIPTION
1059 + "The local port for the TCP connection between
1060 + the BGP peers."
1061 + ::= { bgpPeerEntry 6 }
1062 +
1063 + bgpPeerRemoteAddr OBJECT-TYPE
1064 + SYNTAX IpAddress
1065 + MAX-ACCESS read-only
1066 + STATUS current
1067 + DESCRIPTION
1068 + "The remote IP address of this entry's BGP
1069 + peer."
1070 + ::= { bgpPeerEntry 7 }
1071 +
1072 + bgpPeerRemotePort OBJECT-TYPE
1073 + SYNTAX INTEGER (0..65535)
1074 + MAX-ACCESS read-only
1075 + STATUS current
1076 + DESCRIPTION
1077 + "The remote port for the TCP connection between
1078 + the BGP peers. Note that the objects
1079 + bgpPeerLocalAddr, bgpPeerLocalPort,
1080 + bgpPeerRemoteAddr and bgpPeerRemotePort
1081 + provide the appropriate reference to the
1082 + standard MIB TCP connection table."
1083 + ::= { bgpPeerEntry 8 }
1084 +
1085 + bgpPeerRemoteAs OBJECT-TYPE
1086 + SYNTAX INTEGER (0..65535)
1087 + MAX-ACCESS read-only
1088 + STATUS current
1089 + DESCRIPTION
1090 + "The remote autonomous system number."
1091 + ::= { bgpPeerEntry 9 }
1092 +
1093 + bgpPeerInUpdates OBJECT-TYPE
1094 + SYNTAX Counter32
1095 + MAX-ACCESS read-only
1096 + STATUS current
1097 + DESCRIPTION
1098 + "The number of BGP UPDATE messages received on
1099 + this connection. This object should be
1100 + initialized to zero (0) when the connection is
1101 + established."
1102 + ::= { bgpPeerEntry 10 }
1103 +
1104 + bgpPeerOutUpdates OBJECT-TYPE
1105 + SYNTAX Counter32
1106 + MAX-ACCESS read-only
1107 + STATUS current
1108 + DESCRIPTION
1109 + "The number of BGP UPDATE messages transmitted
1110 + on this connection. This object should be
1111 + initialized to zero (0) when the connection is
1112 + established."
1113 + ::= { bgpPeerEntry 11 }
1114 +
1115 + bgpPeerInTotalMessages OBJECT-TYPE
1116 + SYNTAX Counter32
1117 + MAX-ACCESS read-only
1118 + STATUS current
1119 + DESCRIPTION
1120 + "The total number of messages received from the
1121 + remote peer on this connection. This object
1122 + should be initialized to zero when the
1123 + connection is established."
1124 + ::= { bgpPeerEntry 12 }
1125 +
1126 + bgpPeerOutTotalMessages OBJECT-TYPE
1127 + SYNTAX Counter32
1128 + MAX-ACCESS read-only
1129 + STATUS current
1130 + DESCRIPTION
1131 + "The total number of messages transmitted to
1132 + the remote peer on this connection. This object
1133 + should be initialized to zero when the
1134 + connection is established."
1135 + ::= { bgpPeerEntry 13 }
1136 +
1137 + bgpPeerLastError OBJECT-TYPE
1138 + SYNTAX OCTET STRING (SIZE (2))
1139 + MAX-ACCESS read-only
1140 + STATUS current
1141 + DESCRIPTION
1142 + "The last error code and subcode seen by this
1143 + peer on this connection. If no error has
1144 + occurred, this field is zero. Otherwise, the
1145 + first byte of this two byte OCTET STRING
1146 + contains the error code, and the second byte
1147 + contains the subcode."
1148 + ::= { bgpPeerEntry 14 }
1149 +
1150 + bgpPeerFsmEstablishedTransitions OBJECT-TYPE
1151 + SYNTAX Counter32
1152 + MAX-ACCESS read-only
1153 + STATUS current
1154 + DESCRIPTION
1155 + "The total number of times the BGP FSM
1156 + transitioned into the established state."
1157 + ::= { bgpPeerEntry 15 }
1158 +
1159 + bgpPeerFsmEstablishedTime OBJECT-TYPE
1160 + SYNTAX Gauge32
1161 + MAX-ACCESS read-only
1162 + STATUS current
1163 + DESCRIPTION
1164 + "This timer indicates how long (in seconds) this
1165 + peer has been in the Established state or how long
1166 + since this peer was last in the Established state.
1167 + It is set to zero when a new peer is configured or
1168 + the router is booted."
1169 + ::= { bgpPeerEntry 16 }
1170 +
1171 + bgpPeerConnectRetryInterval OBJECT-TYPE
1172 + SYNTAX INTEGER (1..65535)
1173 + MAX-ACCESS read-write
1174 + STATUS current
1175 + DESCRIPTION
1176 + "Time interval in seconds for the ConnectRetry
1177 + timer. The suggested value for this timer is
1178 + 120 seconds."
1179 + ::= { bgpPeerEntry 17 }
1180 +
1181 + bgpPeerHoldTime OBJECT-TYPE
1182 + SYNTAX INTEGER ( 0 | 3..65535 )
1183 + MAX-ACCESS read-only
1184 + STATUS current
1185 + DESCRIPTION
1186 + "Time interval in seconds for the Hold Timer
1187 + established with the peer. The value of this
1188 + object is calculated by this BGP speaker by
1189 + using the smaller of the value in
1190 + bgpPeerHoldTimeConfigured and the Hold Time
1191 + received in the OPEN message. This value
1192 + must be at lease three seconds if it is not
1193 + zero (0) in which case the Hold Timer has
1194 + not been established with the peer, or, the
1195 + value of bgpPeerHoldTimeConfigured is zero (0)."
1196 + ::= { bgpPeerEntry 18 }
1197 +
1198 + bgpPeerKeepAlive OBJECT-TYPE
1199 + SYNTAX INTEGER ( 0 | 1..21845 )
1200 + MAX-ACCESS read-only
1201 + STATUS current
1202 + DESCRIPTION
1203 + "Time interval in seconds for the KeepAlive
1204 + timer established with the peer. The value of
1205 + this object is calculated by this BGP speaker
1206 + such that, when compared with bgpPeerHoldTime,
1207 + it has the same proportion as what
1208 + bgpPeerKeepAliveConfigured has when compared
1209 + with bgpPeerHoldTimeConfigured. If the value
1210 + of this object is zero (0), it indicates that
1211 + the KeepAlive timer has not been established
1212 + with the peer, or, the value of
1213 + bgpPeerKeepAliveConfigured is zero (0)."
1214 + ::= { bgpPeerEntry 19 }
1215 +
1216 + bgpPeerHoldTimeConfigured OBJECT-TYPE
1217 + SYNTAX INTEGER ( 0 | 3..65535 )
1218 + MAX-ACCESS read-write
1219 + STATUS current
1220 + DESCRIPTION
1221 + "Time interval in seconds for the Hold Time
1222 + configured for this BGP speaker with this peer.
1223 + This value is placed in an OPEN message sent to
1224 + this peer by this BGP speaker, and is compared
1225 + with the Hold Time field in an OPEN message
1226 + received from the peer when determining the Hold
1227 + Time (bgpPeerHoldTime) with the peer. This value
1228 + must not be less than three seconds if it is not
1229 + zero (0) in which case the Hold Time is NOT to be
1230 + established with the peer. The suggested value for
1231 + this timer is 90 seconds."
1232 + ::= { bgpPeerEntry 20 }
1233 +
1234 + bgpPeerKeepAliveConfigured OBJECT-TYPE
1235 + SYNTAX INTEGER ( 0 | 1..21845 )
1236 + MAX-ACCESS read-write
1237 + STATUS current
1238 + DESCRIPTION
1239 + "Time interval in seconds for the KeepAlive timer
1240 + configured for this BGP speaker with this peer.
1241 + The value of this object will only determine the
1242 + KEEPALIVE messages' frequency relative to the value
1243 + specified in bgpPeerHoldTimeConfigured; the actual
1244 + time interval for the KEEPALIVE messages is
1245 + indicated by bgpPeerKeepAlive. A reasonable
1246 + maximum value for this timer would be configured to
1247 + be one third of that of bgpPeerHoldTimeConfigured.
1248 + If the value of this object is zero (0), no
1249 + periodical KEEPALIVE messages are sent to the peer
1250 + after the BGP connection has been established. The
1251 + suggested value for this timer is 30 seconds."
1252 + ::= { bgpPeerEntry 21 }
1253 +
1254 + bgpPeerMinASOriginationInterval OBJECT-TYPE
1255 + SYNTAX INTEGER (1..65535)
1256 + MAX-ACCESS read-write
1257 + STATUS current
1258 + DESCRIPTION
1259 + "Time interval in seconds for the
1260 + MinASOriginationInterval timer.
1261 + The suggested value for this timer is 15 seconds."
1262 + ::= { bgpPeerEntry 22 }
1263 +
1264 + bgpPeerMinRouteAdvertisementInterval OBJECT-TYPE
1265 + SYNTAX INTEGER (1..65535)
1266 + MAX-ACCESS read-write
1267 + STATUS current
1268 + DESCRIPTION
1269 + "Time interval in seconds for the
1270 + MinRouteAdvertisementInterval timer.
1271 + The suggested value for this timer is 30 seconds."
1272 + ::= { bgpPeerEntry 23 }
1273 +
1274 + bgpPeerInUpdateElapsedTime OBJECT-TYPE
1275 + SYNTAX Gauge32
1276 + MAX-ACCESS read-only
1277 + STATUS current
1278 + DESCRIPTION
1279 + "Elapsed time in seconds since the last BGP
1280 + UPDATE message was received from the peer.
1281 + Each time bgpPeerInUpdates is incremented,
1282 + the value of this object is set to zero (0)."
1283 + ::= { bgpPeerEntry 24 }
1284 +
1285 +
1286 +
1287 + bgpIdentifier OBJECT-TYPE
1288 + SYNTAX IpAddress
1289 + MAX-ACCESS read-only
1290 + STATUS current
1291 + DESCRIPTION
1292 + "The BGP Identifier of local system."
1293 + ::= { bgp 4 }
1294 +
1295 +
1296 +
1297 + -- Received Path Attribute Table. This table contains,
1298 + -- one entry per path to a network, path attributes
1299 + -- received from all peers running BGP version 3 or less.
1300 + -- This table is obsolete, having been replaced in
1301 + -- functionality with the bgp4PathAttrTable.
1302 +
1303 + bgpRcvdPathAttrTable OBJECT-TYPE
1304 + SYNTAX SEQUENCE OF BgpPathAttrEntry
1305 + MAX-ACCESS not-accessible
1306 + STATUS obsolete
1307 + DESCRIPTION
1308 + "The BGP Received Path Attribute Table contains
1309 + information about paths to destination networks
1310 + received from all peers running BGP version 3 or
1311 + less."
1312 + ::= { bgp 5 }
1313 +
1314 + bgpPathAttrEntry OBJECT-TYPE
1315 + SYNTAX BgpPathAttrEntry
1316 + MAX-ACCESS not-accessible
1317 + STATUS obsolete
1318 + DESCRIPTION
1319 + "Information about a path to a network."
1320 + INDEX { bgpPathAttrDestNetwork,
1321 + bgpPathAttrPeer }
1322 + ::= { bgpRcvdPathAttrTable 1 }
1323 +
1324 + BgpPathAttrEntry ::= SEQUENCE {
1325 + bgpPathAttrPeer
1326 + IpAddress,
1327 + bgpPathAttrDestNetwork
1328 + IpAddress,
1329 + bgpPathAttrOrigin
1330 + INTEGER,
1331 + bgpPathAttrASPath
1332 + OCTET STRING,
1333 + bgpPathAttrNextHop
1334 + IpAddress,
1335 + bgpPathAttrInterASMetric
1336 + Integer32
1337 + }
1338 +
1339 + bgpPathAttrPeer OBJECT-TYPE
1340 + SYNTAX IpAddress
1341 + MAX-ACCESS read-only
1342 + STATUS obsolete
1343 + DESCRIPTION
1344 + "The IP address of the peer where the path
1345 + information was learned."
1346 + ::= { bgpPathAttrEntry 1 }
1347 +
1348 + bgpPathAttrDestNetwork OBJECT-TYPE
1349 + SYNTAX IpAddress
1350 + MAX-ACCESS read-only
1351 + STATUS obsolete
1352 + DESCRIPTION
1353 + "The address of the destination network."
1354 + ::= { bgpPathAttrEntry 2 }
1355 +
1356 + bgpPathAttrOrigin OBJECT-TYPE
1357 + SYNTAX INTEGER {
1358 + igp(1),-- networks are interior
1359 + egp(2),-- networks learned via EGP
1360 + incomplete(3) -- undetermined
1361 + }
1362 + MAX-ACCESS read-only
1363 + STATUS obsolete
1364 + DESCRIPTION
1365 + "The ultimate origin of the path information."
1366 + ::= { bgpPathAttrEntry 3 }
1367 +
1368 + bgpPathAttrASPath OBJECT-TYPE
1369 + SYNTAX OCTET STRING (SIZE (2..255))
1370 + MAX-ACCESS read-only
1371 + STATUS obsolete
1372 + DESCRIPTION
1373 + "The set of ASs that must be traversed to reach
1374 + the network. This object is probably best
1375 + represented as SEQUENCE OF INTEGER. For SMI
1376 + compatibility, though, it is represented as
1377 + OCTET STRING. Each AS is represented as a pair
1378 + of octets according to the following algorithm:
1379 +
1380 + first-byte-of-pair = ASNumber / 256;
1381 + second-byte-of-pair = ASNumber & 255;"
1382 + ::= { bgpPathAttrEntry 4 }
1383 +
1384 + bgpPathAttrNextHop OBJECT-TYPE
1385 + SYNTAX IpAddress
1386 + MAX-ACCESS read-only
1387 + STATUS obsolete
1388 + DESCRIPTION
1389 + "The address of the border router that should
1390 + be used for the destination network."
1391 + ::= { bgpPathAttrEntry 5 }
1392 +
1393 + bgpPathAttrInterASMetric OBJECT-TYPE
1394 + SYNTAX Integer32
1395 + MAX-ACCESS read-only
1396 + STATUS obsolete
1397 + DESCRIPTION
1398 + "The optional inter-AS metric. If this
1399 + attribute has not been provided for this route,
1400 + the value for this object is 0."
1401 + ::= { bgpPathAttrEntry 6 }
1402 +
1403 +
1404 +
1405 + -- BGP-4 Received Path Attribute Table. This table contains,
1406 + -- one entry per path to a network, path attributes
1407 + -- received from all peers running BGP-4.
1408 +
1409 + bgp4PathAttrTable OBJECT-TYPE
1410 + SYNTAX SEQUENCE OF Bgp4PathAttrEntry
1411 + MAX-ACCESS not-accessible
1412 + STATUS current
1413 + DESCRIPTION
1414 + "The BGP-4 Received Path Attribute Table contains
1415 + information about paths to destination networks
1416 + received from all BGP4 peers."
1417 + ::= { bgp 6 }
1418 +
1419 + bgp4PathAttrEntry OBJECT-TYPE
1420 + SYNTAX Bgp4PathAttrEntry
1421 + MAX-ACCESS not-accessible
1422 + STATUS current
1423 + DESCRIPTION
1424 + "Information about a path to a network."
1425 + INDEX { bgp4PathAttrIpAddrPrefix,
1426 + bgp4PathAttrIpAddrPrefixLen,
1427 + bgp4PathAttrPeer }
1428 + ::= { bgp4PathAttrTable 1 }
1429 +
1430 + Bgp4PathAttrEntry ::= SEQUENCE {
1431 + bgp4PathAttrPeer
1432 + IpAddress,
1433 + bgp4PathAttrIpAddrPrefixLen
1434 + INTEGER,
1435 + bgp4PathAttrIpAddrPrefix
1436 + IpAddress,
1437 + bgp4PathAttrOrigin
1438 + INTEGER,
1439 + bgp4PathAttrASPathSegment
1440 + OCTET STRING,
1441 + bgp4PathAttrNextHop
1442 + IpAddress,
1443 + bgp4PathAttrMultiExitDisc
1444 + INTEGER,
1445 + bgp4PathAttrLocalPref
1446 + INTEGER,
1447 + bgp4PathAttrAtomicAggregate
1448 + INTEGER,
1449 + bgp4PathAttrAggregatorAS
1450 + INTEGER,
1451 + bgp4PathAttrAggregatorAddr
1452 + IpAddress,
1453 + bgp4PathAttrCalcLocalPref
1454 + INTEGER,
1455 + bgp4PathAttrBest
1456 + INTEGER,
1457 + bgp4PathAttrUnknown
1458 + OCTET STRING
1459 + }
1460 +
1461 + bgp4PathAttrPeer OBJECT-TYPE
1462 + SYNTAX IpAddress
1463 + MAX-ACCESS read-only
1464 + STATUS current
1465 + DESCRIPTION
1466 + "The IP address of the peer where the path
1467 + information was learned."
1468 + ::= { bgp4PathAttrEntry 1 }
1469 + bgp4PathAttrIpAddrPrefixLen OBJECT-TYPE
1470 + SYNTAX INTEGER (0..32)
1471 + MAX-ACCESS read-only
1472 + STATUS current
1473 + DESCRIPTION
1474 + "Length in bits of the IP address prefix in the
1475 + Network Layer Reachability Information field."
1476 + ::= { bgp4PathAttrEntry 2 }
1477 +
1478 + bgp4PathAttrIpAddrPrefix OBJECT-TYPE
1479 + SYNTAX IpAddress
1480 + MAX-ACCESS read-only
1481 + STATUS current
1482 + DESCRIPTION
1483 + "An IP address prefix in the Network Layer
1484 + Reachability Information field. This object
1485 + is an IP address containing the prefix with
1486 + length specified by bgp4PathAttrIpAddrPrefixLen.
1487 + Any bits beyond the length specified by
1488 + bgp4PathAttrIpAddrPrefixLen are zeroed."
1489 + ::= { bgp4PathAttrEntry 3 }
1490 +
1491 + bgp4PathAttrOrigin OBJECT-TYPE
1492 + SYNTAX INTEGER {
1493 + igp(1),-- networks are interior
1494 + egp(2),-- networks learned via EGP
1495 + incomplete(3) -- undetermined
1496 + }
1497 + MAX-ACCESS read-only
1498 + STATUS current
1499 + DESCRIPTION
1500 + "The ultimate origin of the path information."
1501 + ::= { bgp4PathAttrEntry 4 }
1502 +
1503 + bgp4PathAttrASPathSegment OBJECT-TYPE
1504 + SYNTAX OCTET STRING (SIZE (2..255))
1505 + MAX-ACCESS read-only
1506 + STATUS current
1507 + DESCRIPTION
1508 + "The sequence of AS path segments. Each AS
1509 + path segment is represented by a triple
1510 + <type, length, value>.
1511 +
1512 + The type is a 1-octet field which has two
1513 + possible values:
1514 + 1 AS_SET: unordered set of ASs a
1515 + route in the UPDATE message
1516 + has traversed
1517 + 2 AS_SEQUENCE: ordered set of ASs
1518 + a route in the UPDATE message
1519 + has traversed.
1520 +
1521 + The length is a 1-octet field containing the
1522 + number of ASs in the value field.
1523 +
1524 + The value field contains one or more AS
1525 + numbers, each AS is represented in the octet
1526 + string as a pair of octets according to the
1527 + following algorithm:
1528 +
1529 + first-byte-of-pair = ASNumber / 256;
1530 + second-byte-of-pair = ASNumber & 255;"
1531 + ::= { bgp4PathAttrEntry 5 }
1532 +
1533 + bgp4PathAttrNextHop OBJECT-TYPE
1534 + SYNTAX IpAddress
1535 + MAX-ACCESS read-only
1536 + STATUS current
1537 + DESCRIPTION
1538 + "The address of the border router that should
1539 + be used for the destination network."
1540 + ::= { bgp4PathAttrEntry 6 }
1541 +
1542 + bgp4PathAttrMultiExitDisc OBJECT-TYPE
1543 + SYNTAX INTEGER (-1..2147483647)
1544 + MAX-ACCESS read-only
1545 + STATUS current
1546 + DESCRIPTION
1547 + "This metric is used to discriminate between
1548 + multiple exit points to an adjacent autonomous
1549 + system. A value of -1 indicates the absence of
1550 + this attribute."
1551 + ::= { bgp4PathAttrEntry 7 }
1552 +
1553 + bgp4PathAttrLocalPref OBJECT-TYPE
1554 + SYNTAX INTEGER (-1..2147483647)
1555 + MAX-ACCESS read-only
1556 + STATUS current
1557 + DESCRIPTION
1558 + "The originating BGP4 speaker's degree of
1559 + preference for an advertised route. A value of
1560 + -1 indicates the absence of this attribute."
1561 + ::= { bgp4PathAttrEntry 8 }
1562 +
1563 + bgp4PathAttrAtomicAggregate OBJECT-TYPE
1564 + SYNTAX INTEGER {
1565 + lessSpecificRrouteNotSelected(1),
1566 + lessSpecificRouteSelected(2)
1567 + }
1568 + MAX-ACCESS read-only
1569 + STATUS current
1570 + DESCRIPTION
1571 + "Whether or not a system has selected
1572 + a less specific route without selecting a
1573 + more specific route."
1574 + ::= { bgp4PathAttrEntry 9 }
1575 +
1576 + bgp4PathAttrAggregatorAS OBJECT-TYPE
1577 + SYNTAX INTEGER (0..65535)
1578 + MAX-ACCESS read-only
1579 + STATUS current
1580 + DESCRIPTION
1581 + "The AS number of the last BGP4 speaker that
1582 + performed route aggregation. A value of zero (0)
1583 + indicates the absence of this attribute."
1584 + ::= { bgp4PathAttrEntry 10 }
1585 +
1586 + bgp4PathAttrAggregatorAddr OBJECT-TYPE
1587 + SYNTAX IpAddress
1588 + MAX-ACCESS read-only
1589 + STATUS current
1590 + DESCRIPTION
1591 + "The IP address of the last BGP4 speaker that
1592 + performed route aggregation. A value of
1593 + 0.0.0.0 indicates the absence of this attribute."
1594 + ::= { bgp4PathAttrEntry 11 }
1595 +
1596 + bgp4PathAttrCalcLocalPref OBJECT-TYPE
1597 + SYNTAX INTEGER (-1..2147483647)
1598 + MAX-ACCESS read-only
1599 + STATUS current
1600 + DESCRIPTION
1601 + "The degree of preference calculated by the
1602 + receiving BGP4 speaker for an advertised route.
1603 + A value of -1 indicates the absence of this
1604 + attribute."
1605 + ::= { bgp4PathAttrEntry 12 }
1606 +
1607 + bgp4PathAttrBest OBJECT-TYPE
1608 + SYNTAX INTEGER {
1609 + false(1),-- not chosen as best route
1610 + true(2) -- chosen as best route
1611 + }
1612 + MAX-ACCESS read-only
1613 + STATUS current
1614 + DESCRIPTION
1615 + "An indication of whether or not this route
1616 + was chosen as the best BGP4 route."
1617 + ::= { bgp4PathAttrEntry 13 }
1618 +
1619 + bgp4PathAttrUnknown OBJECT-TYPE
1620 + SYNTAX OCTET STRING (SIZE(0..255))
1621 + MAX-ACCESS read-only
1622 + STATUS current
1623 + DESCRIPTION
1624 + "One or more path attributes not understood
1625 + by this BGP4 speaker. Size zero (0) indicates
1626 + the absence of such attribute(s). Octets
1627 + beyond the maximum size, if any, are not
1628 + recorded by this object."
1629 + ::= { bgp4PathAttrEntry 14 }
1630 +
1631 +
1632 + -- Traps.
1633 +
1634 + -- note that in RFC 1657, bgpTraps was incorrectly
1635 + -- assigned a value of { bgp 7 }, and each of the
1636 + -- traps had the bgpPeerRemoteAddr object inappropriately
1637 + -- removed from their OBJECTS clause. The following
1638 + -- definitions restore the semantics of the traps as
1639 + -- they were initially defined in RFC 1269.
1640 +
1641 + -- { bgp 7 } is unused
1642 +
1643 + bgpTraps OBJECT IDENTIFIER ::= { bgp 0 }
1644 +
1645 + bgpEstablished NOTIFICATION-TYPE
1646 + OBJECTS { bgpPeerRemoteAddr,
1647 + bgpPeerLastError,
1648 + bgpPeerState }
1649 + STATUS current
1650 + DESCRIPTION
1651 + "The BGP Established event is generated when
1652 + the BGP FSM enters the ESTABLISHED state."
1653 + ::= { bgpTraps 1 }
1654 +
1655 + bgpBackwardTransition NOTIFICATION-TYPE
1656 + OBJECTS { bgpPeerRemoteAddr,
1657 + bgpPeerLastError,
1658 + bgpPeerState }
1659 + STATUS current
1660 + DESCRIPTION
1661 + "The BGPBackwardTransition Event is generated
1662 + when the BGP FSM moves from a higher numbered
1663 + state to a lower numbered state."
1664 + ::= { bgpTraps 2 }
1665 +
1666 + -- conformance information
1667 +
1668 + bgpMIBConformance OBJECT IDENTIFIER ::= { bgp 8 }
1669 + bgpMIBCompliances OBJECT IDENTIFIER ::= { bgpMIBConformance 1 }
1670 + bgpMIBGroups OBJECT IDENTIFIER ::= { bgpMIBConformance 2 }
1671 +
1672 + -- compliance statements
1673 +
1674 + bgpMIBCompliance MODULE-COMPLIANCE
1675 + STATUS current
1676 + DESCRIPTION
1677 + "The compliance statement for entities which
1678 + implement the BGP4 mib."
1679 + MODULE -- this module
1680 + MANDATORY-GROUPS { bgp4MIBGlobalsGroup,
1681 + bgp4MIBPeerGroup,
1682 + bgp4MIBPathAttrGroup,
1683 + bgp4MIBNotificationGroup }
1684 + ::= { bgpMIBCompliances 1 }
1685 +
1686 + -- units of conformance
1687 +
1688 + bgp4MIBGlobalsGroup OBJECT-GROUP
1689 + OBJECTS { bgpVersion,
1690 + bgpLocalAs,
1691 + bgpIdentifier }
1692 + STATUS current
1693 + DESCRIPTION
1694 + "A collection of objects providing information
1695 + on global BGP state."
1696 + ::= { bgpMIBGroups 1 }
1697 +
1698 + bgp4MIBPeerGroup OBJECT-GROUP
1699 + OBJECTS { bgpPeerIdentifier,
1700 + bgpPeerState,
1701 + bgpPeerAdminStatus,
1702 + bgpPeerNegotiatedVersion,
1703 + bgpPeerLocalAddr,
1704 + bgpPeerLocalPort,
1705 + bgpPeerRemoteAddr,
1706 + bgpPeerRemotePort,
1707 + bgpPeerRemoteAs,
1708 + bgpPeerInUpdates,
1709 + bgpPeerOutUpdates,
1710 + bgpPeerInTotalMessages,
1711 + bgpPeerOutTotalMessages,
1712 + bgpPeerLastError,
1713 + bgpPeerFsmEstablishedTransitions,
1714 + bgpPeerFsmEstablishedTime,
1715 + bgpPeerConnectRetryInterval,
1716 + bgpPeerHoldTime,
1717 + bgpPeerKeepAlive,
1718 + bgpPeerHoldTimeConfigured,
1719 + bgpPeerKeepAliveConfigured,
1720 + bgpPeerMinASOriginationInterval,
1721 + bgpPeerMinRouteAdvertisementInterval,
1722 + bgpPeerInUpdateElapsedTime }
1723 + STATUS current
1724 + DESCRIPTION
1725 + "A collection of objects for managing
1726 + BGP peers."
1727 + ::= { bgpMIBGroups 2 }
1728 +
1729 + bgp4MIBRcvdPathAttrGroup OBJECT-GROUP
1730 + OBJECTS { bgpPathAttrPeer,
1731 + bgpPathAttrDestNetwork,
1732 + bgpPathAttrOrigin,
1733 + bgpPathAttrASPath,
1734 + bgpPathAttrNextHop,
1735 + bgpPathAttrInterASMetric }
1736 + STATUS obsolete
1737 + DESCRIPTION
1738 + "A collection of objects for managing BGP
1739 + path entries.
1740 +
1741 + This conformance group is obsolete,
1742 + replaced by bgp4MIBPathAttrGroup."
1743 + ::= { bgpMIBGroups 3 }
1744 +
1745 + bgp4MIBPathAttrGroup OBJECT-GROUP
1746 + OBJECTS { bgp4PathAttrPeer,
1747 + bgp4PathAttrIpAddrPrefixLen,
1748 + bgp4PathAttrIpAddrPrefix,
1749 + bgp4PathAttrOrigin,
1750 + bgp4PathAttrASPathSegment,
1751 + bgp4PathAttrNextHop,
1752 + bgp4PathAttrMultiExitDisc,
1753 + bgp4PathAttrLocalPref,
1754 + bgp4PathAttrAtomicAggregate,
1755 + bgp4PathAttrAggregatorAS,
1756 + bgp4PathAttrAggregatorAddr,
1757 + bgp4PathAttrCalcLocalPref,
1758 + bgp4PathAttrBest,
1759 + bgp4PathAttrUnknown }
1760 + STATUS current
1761 + DESCRIPTION
1762 + "A collection of objects for managing
1763 + BGP path entries."
1764 + ::= { bgpMIBGroups 4 }
1765 +
1766 + bgp4MIBNotificationGroup NOTIFICATION-GROUP
1767 + NOTIFICATIONS { bgpEstablished,
1768 + bgpBackwardTransition }
1769 + STATUS current
1770 + DESCRIPTION
1771 + "A collection of notifications for signaling
1772 + changes in BGP peer relationships."
1773 + ::= { bgpMIBGroups 5 }
1774 +
1775 + END
1776 diff -ruN net-snmp-5.1.2-orig/mibs/BRIDGE-MIB.txt net-snmp-5.1.2-5/mibs/BRIDGE-MIB.txt
1777 --- net-snmp-5.1.2-orig/mibs/BRIDGE-MIB.txt 1970-01-01 01:00:00.000000000 +0100
1778 +++ net-snmp-5.1.2-5/mibs/BRIDGE-MIB.txt 2005-03-13 16:17:21.000000000 +0100
1779 @@ -0,0 +1,1075 @@
1780 +BRIDGE-MIB DEFINITIONS ::= BEGIN
1781 +
1782 +IMPORTS
1783 + Counter, TimeTicks
1784 + FROM RFC1155-SMI
1785 + mib-2
1786 + FROM RFC1213-MIB
1787 + OBJECT-TYPE
1788 + FROM RFC-1212
1789 + TRAP-TYPE
1790 + FROM RFC-1215;
1791 +
1792 +-- All representations of MAC addresses in this MIB Module
1793 +-- use, as a textual convention (i.e. this convention does
1794 +-- not affect their encoding), the data type:
1795 +MacAddress ::= OCTET STRING (SIZE (6)) -- a 6 octet address
1796 + -- in the
1797 + -- "canonical"
1798 + -- order
1799 +-- defined by IEEE 802.1a, i.e., as if it were transmitted
1800 +-- least significant bit first, even though 802.5 (in
1801 +-- contrast to other n802.x protocols) requires MAC
1802 +-- addresses to be transmitted most significant bit first.
1803 +--
1804 +-- 16-bit addresses, if needed, are represented by setting
1805 +-- their upper 4 octets to all 0's, i.e., AAFF would be
1806 +-- represented as 00000000AAFF.
1807 +
1808 +-- Similarly, all representations of Bridge-Id in this MIB
1809 +-- Module use, as a textual convention (i.e. this
1810 +-- convention does not affect their encoding), the data
1811 +-- type:
1812 +BridgeId ::= OCTET STRING (SIZE (8)) -- the
1813 + -- Bridge-Identifier
1814 + -- as used in the
1815 + -- Spanning Tree
1816 +-- Protocol to uniquely identify a bridge. Its first two
1817 +-- octets (in network byte order) contain a priority
1818 +-- value and its last 6 octets contain the MAC address
1819 +-- used to refer to a bridge in a unique fashion
1820 +-- (typically, the numerically smallest MAC address
1821 +-- of all ports on the bridge).
1822 +
1823 +-- Several objects in this MIB module represent values of
1824 +-- timers used by the Spanning Tree Protocol. In this
1825 +-- MIB, these timers have values in units of hundreths of
1826 +-- a second (i.e. 1/100 secs).
1827 +-- These timers, when stored in a Spanning Tree Protocol's
1828 +-- BPDU, are in units of 1/256 seconds. Note, however,
1829 +-- that 802.1D-1990 specifies a settable granularity of
1830 +-- no more than 1 second for these timers. To avoid
1831 +-- ambiguity, a data type is defined here as a textual
1832 +-- convention and all representation of these timers
1833 +-- in this MIB module are defined using this data type. An
1834 +-- algorithm is also defined for converting between the
1835 +-- different units, to ensure a timer's value is not
1836 +-- distorted by multiple conversions.
1837 +-- The data type is:
1838 +
1839 +Timeout ::= INTEGER -- a STP timer in units of 1/100 seconds
1840 +
1841 +-- To convert a Timeout value into a value in units of
1842 +-- 1/256 seconds, the following algorithm should be used:
1843 +--
1844 +-- b = floor( (n * 256) / 100)
1845 +--
1846 +-- where:
1847 +-- floor = quotient [ignore remainder]
1848 +-- n is the value in 1/100 second units
1849 +-- b is the value in 1/256 second units
1850 +--
1851 +-- To convert the value from 1/256 second units back to
1852 +-- 1/100 seconds, the following algorithm should be used:
1853 +--
1854 +-- n = ceiling( (b * 100) / 256)
1855 +--
1856 +-- where:
1857 +-- ceiling = quotient [if remainder is 0], or
1858 +-- quotient + 1 [if remainder is non-zero]
1859 +-- n is the value in 1/100 second units
1860 +-- b is the value in 1/256 second units
1861 +--
1862 +-- Note: it is important that the arithmetic operations are
1863 +-- done in the order specified (i.e., multiply first, divide
1864 +-- second).
1865 +
1866 + dot1dBridge OBJECT IDENTIFIER ::= { mib-2 17 }
1867 +
1868 +-- groups in the Bridge MIB
1869 +
1870 +dot1dBase OBJECT IDENTIFIER ::= { dot1dBridge 1 }
1871 +
1872 +dot1dStp OBJECT IDENTIFIER ::= { dot1dBridge 2 }
1873 +
1874 +dot1dSr OBJECT IDENTIFIER ::= { dot1dBridge 3 }
1875 +-- separately documented
1876 +
1877 +dot1dTp OBJECT IDENTIFIER ::= { dot1dBridge 4 }
1878 +
1879 +dot1dStatic OBJECT IDENTIFIER ::= { dot1dBridge 5 }
1880 +
1881 +-- the dot1dBase group
1882 +
1883 +-- Implementation of the dot1dBase group is mandatory for all
1884 +-- bridges.
1885 +
1886 +dot1dBaseBridgeAddress OBJECT-TYPE
1887 + SYNTAX MacAddress
1888 + ACCESS read-only
1889 + STATUS mandatory
1890 + DESCRIPTION
1891 + "The MAC address used by this bridge when it must
1892 + be referred to in a unique fashion. It is
1893 + recommended that this be the numerically smallest
1894 + MAC address of all ports that belong to this
1895 + bridge. However it is only required to be unique.
1896 + When concatenated with dot1dStpPriority a unique
1897 + BridgeIdentifier is formed which is used in the
1898 + Spanning Tree Protocol."
1899 + REFERENCE
1900 + "IEEE 802.1D-1990: Sections 6.4.1.1.3 and 3.12.5"
1901 + ::= { dot1dBase 1 }
1902 +
1903 +dot1dBaseNumPorts OBJECT-TYPE
1904 + SYNTAX INTEGER
1905 + ACCESS read-only
1906 + STATUS mandatory
1907 + DESCRIPTION
1908 + "The number of ports controlled by this bridging
1909 + entity."
1910 + REFERENCE
1911 + "IEEE 802.1D-1990: Section 6.4.1.1.3"
1912 + ::= { dot1dBase 2 }
1913 +
1914 +dot1dBaseType OBJECT-TYPE
1915 + SYNTAX INTEGER {
1916 + unknown(1),
1917 + transparent-only(2),
1918 + sourceroute-only(3),
1919 + srt(4)
1920 + }
1921 + ACCESS read-only
1922 + STATUS mandatory
1923 + DESCRIPTION
1924 + "Indicates what type of bridging this bridge can
1925 + perform. If a bridge is actually performing a
1926 + certain type of bridging this will be indicated by
1927 + entries in the port table for the given type."
1928 + ::= { dot1dBase 3 }
1929 +
1930 +-- The Generic Bridge Port Table
1931 +
1932 +dot1dBasePortTable OBJECT-TYPE
1933 + SYNTAX SEQUENCE OF Dot1dBasePortEntry
1934 + ACCESS not-accessible
1935 + STATUS mandatory
1936 + DESCRIPTION
1937 + "A table that contains generic information about
1938 + every port that is associated with this bridge.
1939 + Transparent, source-route, and srt ports are
1940 + included."
1941 + ::= { dot1dBase 4 }
1942 +
1943 +dot1dBasePortEntry OBJECT-TYPE
1944 + SYNTAX Dot1dBasePortEntry
1945 + ACCESS not-accessible
1946 + STATUS mandatory
1947 + DESCRIPTION
1948 + "A list of information for each port of the
1949 + bridge."
1950 + REFERENCE
1951 + "IEEE 802.1D-1990: Section 6.4.2, 6.6.1"
1952 + INDEX { dot1dBasePort }
1953 + ::= { dot1dBasePortTable 1 }
1954 +
1955 +Dot1dBasePortEntry ::=
1956 + SEQUENCE {
1957 + dot1dBasePort
1958 + INTEGER,
1959 + dot1dBasePortIfIndex
1960 + INTEGER,
1961 + dot1dBasePortCircuit
1962 +
1963 + OBJECT IDENTIFIER,
1964 + dot1dBasePortDelayExceededDiscards
1965 + Counter,
1966 + dot1dBasePortMtuExceededDiscards
1967 + Counter
1968 + }
1969 +
1970 +dot1dBasePort OBJECT-TYPE
1971 + SYNTAX INTEGER (1..65535)
1972 + ACCESS read-only
1973 + STATUS mandatory
1974 + DESCRIPTION
1975 + "The port number of the port for which this entry
1976 + contains bridge management information."
1977 + ::= { dot1dBasePortEntry 1 }
1978 +
1979 +dot1dBasePortIfIndex OBJECT-TYPE
1980 + SYNTAX INTEGER
1981 + ACCESS read-only
1982 + STATUS mandatory
1983 + DESCRIPTION
1984 + "The value of the instance of the ifIndex object,
1985 + defined in MIB-II, for the interface corresponding
1986 + to this port."
1987 + ::= { dot1dBasePortEntry 2 }
1988 +
1989 +dot1dBasePortCircuit OBJECT-TYPE
1990 + SYNTAX OBJECT IDENTIFIER
1991 + ACCESS read-only
1992 + STATUS mandatory
1993 + DESCRIPTION
1994 + "For a port which (potentially) has the same value
1995 + of dot1dBasePortIfIndex as another port on the
1996 + same bridge, this object contains the name of an
1997 + object instance unique to this port. For example,
1998 + in the case where multiple ports correspond one-
1999 + to-one with multiple X.25 virtual circuits, this
2000 + value might identify an (e.g., the first) object
2001 + instance associated with the X.25 virtual circuit
2002 + corresponding to this port.
2003 +
2004 + For a port which has a unique value of
2005 + dot1dBasePortIfIndex, this object can have the
2006 + value { 0 0 }."
2007 + ::= { dot1dBasePortEntry 3 }
2008 +
2009 +dot1dBasePortDelayExceededDiscards OBJECT-TYPE
2010 + SYNTAX Counter
2011 +
2012 + ACCESS read-only
2013 + STATUS mandatory
2014 + DESCRIPTION
2015 + "The number of frames discarded by this port due
2016 + to excessive transit delay through the bridge. It
2017 + is incremented by both transparent and source
2018 + route bridges."
2019 + REFERENCE
2020 + "IEEE 802.1D-1990: Section 6.6.1.1.3"
2021 + ::= { dot1dBasePortEntry 4 }
2022 +
2023 +dot1dBasePortMtuExceededDiscards OBJECT-TYPE
2024 + SYNTAX Counter
2025 + ACCESS read-only
2026 + STATUS mandatory
2027 + DESCRIPTION
2028 + "The number of frames discarded by this port due
2029 + to an excessive size. It is incremented by both
2030 + transparent and source route bridges."
2031 + REFERENCE
2032 + "IEEE 802.1D-1990: Section 6.6.1.1.3"
2033 + ::= { dot1dBasePortEntry 5 }
2034 +
2035 +-- the dot1dStp group
2036 +
2037 +-- Implementation of the dot1dStp group is optional. It is
2038 +-- implemented by those bridges that support the Spanning Tree
2039 +-- Protocol.
2040 +
2041 +dot1dStpProtocolSpecification OBJECT-TYPE
2042 + SYNTAX INTEGER {
2043 + unknown(1),
2044 + decLb100(2),
2045 + ieee8021d(3)
2046 + }
2047 + ACCESS read-only
2048 + STATUS mandatory
2049 + DESCRIPTION
2050 + "An indication of what version of the Spanning
2051 + Tree Protocol is being run. The value
2052 + 'decLb100(2)' indicates the DEC LANbridge 100
2053 + Spanning Tree protocol. IEEE 802.1d
2054 + implementations will return 'ieee8021d(3)'. If
2055 + future versions of the IEEE Spanning Tree Protocol
2056 + are released that are incompatible with the
2057 + current version a new value will be defined."
2058 +
2059 + ::= { dot1dStp 1 }
2060 +
2061 +dot1dStpPriority OBJECT-TYPE
2062 + SYNTAX INTEGER (0..65535)
2063 + ACCESS read-write
2064 + STATUS mandatory
2065 + DESCRIPTION
2066 + "The value of the write-able portion of the Bridge
2067 + ID, i.e., the first two octets of the (8 octet
2068 + long) Bridge ID. The other (last) 6 octets of the
2069 + Bridge ID are given by the value of
2070 + dot1dBaseBridgeAddress."
2071 + REFERENCE
2072 + "IEEE 802.1D-1990: Section 4.5.3.7"
2073 + ::= { dot1dStp 2 }
2074 +
2075 +dot1dStpTimeSinceTopologyChange OBJECT-TYPE
2076 + SYNTAX TimeTicks
2077 + ACCESS read-only
2078 + STATUS mandatory
2079 + DESCRIPTION
2080 + "The time (in hundredths of a second) since the
2081 + last time a topology change was detected by the
2082 + bridge entity."
2083 + REFERENCE
2084 + "IEEE 802.1D-1990: Section 6.8.1.1.3"
2085 + ::= { dot1dStp 3 }
2086 +
2087 +dot1dStpTopChanges OBJECT-TYPE
2088 + SYNTAX Counter
2089 + ACCESS read-only
2090 + STATUS mandatory
2091 + DESCRIPTION
2092 + "The total number of topology changes detected by
2093 + this bridge since the management entity was last
2094 + reset or initialized."
2095 + REFERENCE
2096 + "IEEE 802.1D-1990: Section 6.8.1.1.3"
2097 + ::= { dot1dStp 4 }
2098 +
2099 +dot1dStpDesignatedRoot OBJECT-TYPE
2100 + SYNTAX BridgeId
2101 + ACCESS read-only
2102 + STATUS mandatory
2103 + DESCRIPTION
2104 + "The bridge identifier of the root of the spanning
2105 + tree as determined by the Spanning Tree Protocol
2106 + as executed by this node. This value is used as
2107 +
2108 + the Root Identifier parameter in all Configuration
2109 + Bridge PDUs originated by this node."
2110 + REFERENCE
2111 + "IEEE 802.1D-1990: Section 4.5.3.1"
2112 + ::= { dot1dStp 5 }
2113 +
2114 +dot1dStpRootCost OBJECT-TYPE
2115 + SYNTAX INTEGER
2116 + ACCESS read-only
2117 + STATUS mandatory
2118 + DESCRIPTION
2119 + "The cost of the path to the root as seen from
2120 + this bridge."
2121 + REFERENCE
2122 + "IEEE 802.1D-1990: Section 4.5.3.2"
2123 + ::= { dot1dStp 6 }
2124 +
2125 +dot1dStpRootPort OBJECT-TYPE
2126 + SYNTAX INTEGER
2127 + ACCESS read-only
2128 + STATUS mandatory
2129 + DESCRIPTION
2130 + "The port number of the port which offers the
2131 + lowest cost path from this bridge to the root
2132 + bridge."
2133 + REFERENCE
2134 + "IEEE 802.1D-1990: Section 4.5.3.3"
2135 + ::= { dot1dStp 7 }
2136 +
2137 +dot1dStpMaxAge OBJECT-TYPE
2138 + SYNTAX Timeout
2139 + ACCESS read-only
2140 + STATUS mandatory
2141 + DESCRIPTION
2142 + "The maximum age of Spanning Tree Protocol
2143 + information learned from the network on any port
2144 + before it is discarded, in units of hundredths of
2145 + a second. This is the actual value that this
2146 + bridge is currently using."
2147 + REFERENCE
2148 + "IEEE 802.1D-1990: Section 4.5.3.4"
2149 + ::= { dot1dStp 8 }
2150 +
2151 +dot1dStpHelloTime OBJECT-TYPE
2152 + SYNTAX Timeout
2153 + ACCESS read-only
2154 + STATUS mandatory
2155 + DESCRIPTION
2156 +
2157 + "The amount of time between the transmission of
2158 + Configuration bridge PDUs by this node on any port
2159 + when it is the root of the spanning tree or trying
2160 + to become so, in units of hundredths of a second.
2161 + This is the actual value that this bridge is
2162 + currently using."
2163 + REFERENCE
2164 + "IEEE 802.1D-1990: Section 4.5.3.5"
2165 + ::= { dot1dStp 9 }
2166 +
2167 +dot1dStpHoldTime OBJECT-TYPE
2168 + SYNTAX INTEGER
2169 + ACCESS read-only
2170 + STATUS mandatory
2171 + DESCRIPTION
2172 + "This time value determines the interval length
2173 + during which no more than two Configuration bridge
2174 + PDUs shall be transmitted by this node, in units
2175 + of hundredths of a second."
2176 + REFERENCE
2177 + "IEEE 802.1D-1990: Section 4.5.3.14"
2178 + ::= { dot1dStp 10 }
2179 +
2180 +dot1dStpForwardDelay OBJECT-TYPE
2181 + SYNTAX Timeout
2182 + ACCESS read-only
2183 + STATUS mandatory
2184 + DESCRIPTION
2185 + "This time value, measured in units of hundredths
2186 + of a second, controls how fast a port changes its
2187 + spanning state when moving towards the Forwarding
2188 + state. The value determines how long the port
2189 + stays in each of the Listening and Learning
2190 + states, which precede the Forwarding state. This
2191 + value is also used, when a topology change has
2192 + been detected and is underway, to age all dynamic
2193 + entries in the Forwarding Database. [Note that
2194 + this value is the one that this bridge is
2195 + currently using, in contrast to
2196 + dot1dStpBridgeForwardDelay which is the value that
2197 + this bridge and all others would start using
2198 + if/when this bridge were to become the root.]"
2199 + REFERENCE
2200 + "IEEE 802.1D-1990: Section 4.5.3.6"
2201 + ::= { dot1dStp 11 }
2202 +
2203 +dot1dStpBridgeMaxAge OBJECT-TYPE
2204 + SYNTAX Timeout (600..4000)
2205 +
2206 + ACCESS read-write
2207 + STATUS mandatory
2208 + DESCRIPTION
2209 + "The value that all bridges use for MaxAge when
2210 + this bridge is acting as the root. Note that
2211 + 802.1D-1990 specifies that the range for this
2212 + parameter is related to the value of
2213 + dot1dStpBridgeHelloTime. The granularity of this
2214 + timer is specified by 802.1D-1990 to be 1 second.
2215 + An agent may return a badValue error if a set is
2216 + attempted to a value which is not a whole number
2217 + of seconds."
2218 + REFERENCE
2219 + "IEEE 802.1D-1990: Section 4.5.3.8"
2220 + ::= { dot1dStp 12 }
2221 +
2222 +dot1dStpBridgeHelloTime OBJECT-TYPE
2223 + SYNTAX Timeout (100..1000)
2224 + ACCESS read-write
2225 + STATUS mandatory
2226 + DESCRIPTION
2227 + "The value that all bridges use for HelloTime when
2228 + this bridge is acting as the root. The
2229 + granularity of this timer is specified by 802.1D-
2230 + 1990 to be 1 second. An agent may return a
2231 + badValue error if a set is attempted to a value
2232 + which is not a whole number of seconds."
2233 + REFERENCE
2234 + "IEEE 802.1D-1990: Section 4.5.3.9"
2235 + ::= { dot1dStp 13 }
2236 +
2237 +dot1dStpBridgeForwardDelay OBJECT-TYPE
2238 + SYNTAX Timeout (400..3000)
2239 + ACCESS read-write
2240 + STATUS mandatory
2241 + DESCRIPTION
2242 + "The value that all bridges use for ForwardDelay
2243 + when this bridge is acting as the root. Note that
2244 + 802.1D-1990 specifies that the range for this
2245 + parameter is related to the value of
2246 + dot1dStpBridgeMaxAge. The granularity of this
2247 + timer is specified by 802.1D-1990 to be 1 second.
2248 + An agent may return a badValue error if a set is
2249 + attempted to a value which is not a whole number
2250 + of seconds."
2251 + REFERENCE
2252 + "IEEE 802.1D-1990: Section 4.5.3.10"
2253 + ::= { dot1dStp 14 }
2254 +
2255 +-- The Spanning Tree Port Table
2256 +
2257 +dot1dStpPortTable OBJECT-TYPE
2258 + SYNTAX SEQUENCE OF Dot1dStpPortEntry
2259 + ACCESS not-accessible
2260 + STATUS mandatory
2261 + DESCRIPTION
2262 + "A table that contains port-specific information
2263 + for the Spanning Tree Protocol."
2264 + ::= { dot1dStp 15 }
2265 +
2266 +dot1dStpPortEntry OBJECT-TYPE
2267 + SYNTAX Dot1dStpPortEntry
2268 + ACCESS not-accessible
2269 + STATUS mandatory
2270 + DESCRIPTION
2271 + "A list of information maintained by every port
2272 + about the Spanning Tree Protocol state for that
2273 + port."
2274 + INDEX { dot1dStpPort }
2275 + ::= { dot1dStpPortTable 1 }
2276 +
2277 +Dot1dStpPortEntry ::=
2278 + SEQUENCE {
2279 + dot1dStpPort
2280 + INTEGER,
2281 + dot1dStpPortPriority
2282 + INTEGER,
2283 + dot1dStpPortState
2284 + INTEGER,
2285 + dot1dStpPortEnable
2286 + INTEGER,
2287 + dot1dStpPortPathCost
2288 + INTEGER,
2289 + dot1dStpPortDesignatedRoot
2290 + BridgeId,
2291 + dot1dStpPortDesignatedCost
2292 + INTEGER,
2293 + dot1dStpPortDesignatedBridge
2294 + BridgeId,
2295 + dot1dStpPortDesignatedPort
2296 + OCTET STRING,
2297 + dot1dStpPortForwardTransitions
2298 + Counter
2299 + }
2300 +
2301 +dot1dStpPort OBJECT-TYPE
2302 + SYNTAX INTEGER (1..65535)
2303 +
2304 + ACCESS read-only
2305 + STATUS mandatory
2306 + DESCRIPTION
2307 + "The port number of the port for which this entry
2308 + contains Spanning Tree Protocol management
2309 + information."
2310 + REFERENCE
2311 + "IEEE 802.1D-1990: Section 6.8.2.1.2"
2312 + ::= { dot1dStpPortEntry 1 }
2313 +
2314 +dot1dStpPortPriority OBJECT-TYPE
2315 + SYNTAX INTEGER (0..255)
2316 + ACCESS read-write
2317 + STATUS mandatory
2318 + DESCRIPTION
2319 + "The value of the priority field which is
2320 + contained in the first (in network byte order)
2321 + octet of the (2 octet long) Port ID. The other
2322 + octet of the Port ID is given by the value of
2323 + dot1dStpPort."
2324 + REFERENCE
2325 + "IEEE 802.1D-1990: Section 4.5.5.1"
2326 + ::= { dot1dStpPortEntry 2 }
2327 +
2328 +dot1dStpPortState OBJECT-TYPE
2329 + SYNTAX INTEGER {
2330 + disabled(1),
2331 + blocking(2),
2332 + listening(3),
2333 + learning(4),
2334 + forwarding(5),
2335 + broken(6)
2336 + }
2337 + ACCESS read-only
2338 + STATUS mandatory
2339 + DESCRIPTION
2340 + "The port's current state as defined by
2341 + application of the Spanning Tree Protocol. This
2342 + state controls what action a port takes on
2343 + reception of a frame. If the bridge has detected
2344 + a port that is malfunctioning it will place that
2345 + port into the broken(6) state. For ports which
2346 + are disabled (see dot1dStpPortEnable), this object
2347 + will have a value of disabled(1)."
2348 + REFERENCE
2349 + "IEEE 802.1D-1990: Section 4.5.5.2"
2350 + ::= { dot1dStpPortEntry 3 }
2351 +
2352 +dot1dStpPortEnable OBJECT-TYPE
2353 + SYNTAX INTEGER {
2354 + enabled(1),
2355 + disabled(2)
2356 + }
2357 + ACCESS read-write
2358 + STATUS mandatory
2359 + DESCRIPTION
2360 + "The enabled/disabled status of the port."
2361 + REFERENCE
2362 + "IEEE 802.1D-1990: Section 4.5.5.2"
2363 + ::= { dot1dStpPortEntry 4 }
2364 +
2365 +dot1dStpPortPathCost OBJECT-TYPE
2366 + SYNTAX INTEGER (1..65535)
2367 + ACCESS read-write
2368 + STATUS mandatory
2369 + DESCRIPTION
2370 + "The contribution of this port to the path cost of
2371 + paths towards the spanning tree root which include
2372 + this port. 802.1D-1990 recommends that the
2373 + default value of this parameter be in inverse
2374 + proportion to the speed of the attached LAN."
2375 + REFERENCE
2376 + "IEEE 802.1D-1990: Section 4.5.5.3"
2377 + ::= { dot1dStpPortEntry 5 }
2378 +
2379 +dot1dStpPortDesignatedRoot OBJECT-TYPE
2380 + SYNTAX BridgeId
2381 + ACCESS read-only
2382 + STATUS mandatory
2383 + DESCRIPTION
2384 + "The unique Bridge Identifier of the Bridge
2385 + recorded as the Root in the Configuration BPDUs
2386 + transmitted by the Designated Bridge for the
2387 + segment to which the port is attached."
2388 + REFERENCE
2389 + "IEEE 802.1D-1990: Section 4.5.5.4"
2390 + ::= { dot1dStpPortEntry 6 }
2391 +
2392 +dot1dStpPortDesignatedCost OBJECT-TYPE
2393 + SYNTAX INTEGER
2394 + ACCESS read-only
2395 + STATUS mandatory
2396 + DESCRIPTION
2397 + "The path cost of the Designated Port of the
2398 + segment connected to this port. This value is
2399 + compared to the Root Path Cost field in received
2400 +
2401 + bridge PDUs."
2402 + REFERENCE
2403 + "IEEE 802.1D-1990: Section 4.5.5.5"
2404 + ::= { dot1dStpPortEntry 7 }
2405 +
2406 +dot1dStpPortDesignatedBridge OBJECT-TYPE
2407 + SYNTAX BridgeId
2408 + ACCESS read-only
2409 + STATUS mandatory
2410 + DESCRIPTION
2411 + "The Bridge Identifier of the bridge which this
2412 + port considers to be the Designated Bridge for
2413 + this port's segment."
2414 + REFERENCE
2415 + "IEEE 802.1D-1990: Section 4.5.5.6"
2416 + ::= { dot1dStpPortEntry 8 }
2417 +
2418 +dot1dStpPortDesignatedPort OBJECT-TYPE
2419 + SYNTAX OCTET STRING (SIZE (2))
2420 + ACCESS read-only
2421 + STATUS mandatory
2422 + DESCRIPTION
2423 + "The Port Identifier of the port on the Designated
2424 + Bridge for this port's segment."
2425 + REFERENCE
2426 + "IEEE 802.1D-1990: Section 4.5.5.7"
2427 + ::= { dot1dStpPortEntry 9 }
2428 +
2429 +dot1dStpPortForwardTransitions OBJECT-TYPE
2430 + SYNTAX Counter
2431 + ACCESS read-only
2432 + STATUS mandatory
2433 + DESCRIPTION
2434 + "The number of times this port has transitioned
2435 + from the Learning state to the Forwarding state."
2436 + ::= { dot1dStpPortEntry 10 }
2437 +
2438 +-- the dot1dTp group
2439 +
2440 +-- Implementation of the dot1dTp group is optional. It is
2441 +-- implemented by those bridges that support the transparent
2442 +-- bridging mode. A transparent or SRT bridge will implement
2443 +-- this group.
2444 +
2445 +dot1dTpLearnedEntryDiscards OBJECT-TYPE
2446 + SYNTAX Counter
2447 +
2448 + ACCESS read-only
2449 + STATUS mandatory
2450 + DESCRIPTION
2451 + "The total number of Forwarding Database entries,
2452 + which have been or would have been learnt, but
2453 + have been discarded due to a lack of space to
2454 + store them in the Forwarding Database. If this
2455 + counter is increasing, it indicates that the
2456 + Forwarding Database is regularly becoming full (a
2457 + condition which has unpleasant performance effects
2458 + on the subnetwork). If this counter has a
2459 + significant value but is not presently increasing,
2460 + it indicates that the problem has been occurring
2461 + but is not persistent."
2462 + REFERENCE
2463 + "IEEE 802.1D-1990: Section 6.7.1.1.3"
2464 + ::= { dot1dTp 1 }
2465 +
2466 +dot1dTpAgingTime OBJECT-TYPE
2467 + SYNTAX INTEGER (10..1000000)
2468 + ACCESS read-write
2469 + STATUS mandatory
2470 + DESCRIPTION
2471 + "The timeout period in seconds for aging out
2472 + dynamically learned forwarding information.
2473 + 802.1D-1990 recommends a default of 300 seconds."
2474 + REFERENCE
2475 + "IEEE 802.1D-1990: Section 6.7.1.1.3"
2476 + ::= { dot1dTp 2 }
2477 +
2478 +-- The Forwarding Database for Transparent Bridges
2479 +
2480 +dot1dTpFdbTable OBJECT-TYPE
2481 + SYNTAX SEQUENCE OF Dot1dTpFdbEntry
2482 + ACCESS not-accessible
2483 + STATUS mandatory
2484 + DESCRIPTION
2485 + "A table that contains information about unicast
2486 + entries for which the bridge has forwarding and/or
2487 + filtering information. This information is used
2488 + by the transparent bridging function in
2489 + determining how to propagate a received frame."
2490 + ::= { dot1dTp 3 }
2491 +
2492 +dot1dTpFdbEntry OBJECT-TYPE
2493 + SYNTAX Dot1dTpFdbEntry
2494 + ACCESS not-accessible
2495 + STATUS mandatory
2496 + DESCRIPTION
2497 + "Information about a specific unicast MAC address
2498 + for which the bridge has some forwarding and/or
2499 + filtering information."
2500 + INDEX { dot1dTpFdbAddress }
2501 + ::= { dot1dTpFdbTable 1 }
2502 +
2503 +Dot1dTpFdbEntry ::=
2504 + SEQUENCE {
2505 + dot1dTpFdbAddress
2506 + MacAddress,
2507 + dot1dTpFdbPort
2508 + INTEGER,
2509 + dot1dTpFdbStatus
2510 + INTEGER
2511 + }
2512 +
2513 +dot1dTpFdbAddress OBJECT-TYPE
2514 + SYNTAX MacAddress
2515 + ACCESS read-only
2516 + STATUS mandatory
2517 + DESCRIPTION
2518 + "A unicast MAC address for which the bridge has
2519 + forwarding and/or filtering information."
2520 + REFERENCE
2521 + "IEEE 802.1D-1990: Section 3.9.1, 3.9.2"
2522 + ::= { dot1dTpFdbEntry 1 }
2523 +
2524 +dot1dTpFdbPort OBJECT-TYPE
2525 + SYNTAX INTEGER
2526 + ACCESS read-only
2527 + STATUS mandatory
2528 + DESCRIPTION
2529 + "Either the value '0', or the port number of the
2530 + port on which a frame having a source address
2531 + equal to the value of the corresponding instance
2532 + of dot1dTpFdbAddress has been seen. A value of
2533 + '0' indicates that the port number has not been
2534 + learned but that the bridge does have some
2535 + forwarding/filtering information about this
2536 + address (e.g. in the dot1dStaticTable).
2537 + Implementors are encouraged to assign the port
2538 + value to this object whenever it is learned even
2539 + for addresses for which the corresponding value of
2540 + dot1dTpFdbStatus is not learned(3)."
2541 + ::= { dot1dTpFdbEntry 2 }
2542 +
2543 +dot1dTpFdbStatus OBJECT-TYPE
2544 + SYNTAX INTEGER {
2545 + other(1),
2546 + invalid(2),
2547 + learned(3),
2548 + self(4),
2549 + mgmt(5)
2550 + }
2551 + ACCESS read-only
2552 + STATUS mandatory
2553 + DESCRIPTION
2554 + "The status of this entry. The meanings of the
2555 + values are:
2556 + other(1) : none of the following. This would
2557 + include the case where some other
2558 + MIB object (not the corresponding
2559 + instance of dot1dTpFdbPort, nor an
2560 + entry in the dot1dStaticTable) is
2561 + being used to determine if and how
2562 + frames addressed to the value of
2563 + the corresponding instance of
2564 + dot1dTpFdbAddress are being
2565 + forwarded.
2566 + invalid(2) : this entry is not longer valid
2567 + (e.g., it was learned but has since
2568 + aged-out), but has not yet been
2569 + flushed from the table.
2570 + learned(3) : the value of the corresponding
2571 + instance of dot1dTpFdbPort was
2572 + learned, and is being used.
2573 + self(4) : the value of the corresponding
2574 + instance of dot1dTpFdbAddress
2575 + represents one of the bridge's
2576 + addresses. The corresponding
2577 + instance of dot1dTpFdbPort
2578 + indicates which of the bridge's
2579 + ports has this address.
2580 + mgmt(5) : the value of the corresponding
2581 + instance of dot1dTpFdbAddress is
2582 + also the value of an existing
2583 + instance of dot1dStaticAddress."
2584 + ::= { dot1dTpFdbEntry 3 }
2585 +
2586 +-- Port Table for Transparent Bridges
2587 +
2588 +dot1dTpPortTable OBJECT-TYPE
2589 + SYNTAX SEQUENCE OF Dot1dTpPortEntry
2590 + ACCESS not-accessible
2591 + STATUS mandatory
2592 + DESCRIPTION
2593 + "A table that contains information about every
2594 + port that is associated with this transparent
2595 + bridge."
2596 + ::= { dot1dTp 4 }
2597 +
2598 +dot1dTpPortEntry OBJECT-TYPE
2599 + SYNTAX Dot1dTpPortEntry
2600 + ACCESS not-accessible
2601 + STATUS mandatory
2602 + DESCRIPTION
2603 + "A list of information for each port of a
2604 + transparent bridge."
2605 + INDEX { dot1dTpPort }
2606 + ::= { dot1dTpPortTable 1 }
2607 +
2608 +Dot1dTpPortEntry ::=
2609 + SEQUENCE {
2610 + dot1dTpPort
2611 + INTEGER,
2612 + dot1dTpPortMaxInfo
2613 + INTEGER,
2614 + dot1dTpPortInFrames
2615 + Counter,
2616 + dot1dTpPortOutFrames
2617 + Counter,
2618 + dot1dTpPortInDiscards
2619 + Counter
2620 + }
2621 +
2622 +dot1dTpPort OBJECT-TYPE
2623 + SYNTAX INTEGER (1..65535)
2624 + ACCESS read-only
2625 + STATUS mandatory
2626 + DESCRIPTION
2627 + "The port number of the port for which this entry
2628 + contains Transparent bridging management
2629 + information."
2630 + ::= { dot1dTpPortEntry 1 }
2631 +
2632 +-- It would be nice if we could use ifMtu as the size of the
2633 +-- largest INFO field, but we can't because ifMtu is defined
2634 +-- to be the size that the (inter-)network layer can use which
2635 +-- can differ from the MAC layer (especially if several layers
2636 +-- of encapsulation are used).
2637 +
2638 +dot1dTpPortMaxInfo OBJECT-TYPE
2639 + SYNTAX INTEGER
2640 + ACCESS read-only
2641 + STATUS mandatory
2642 + DESCRIPTION
2643 + "The maximum size of the INFO (non-MAC) field that
2644 + this port will receive or transmit."
2645 + ::= { dot1dTpPortEntry 2 }
2646 +
2647 +dot1dTpPortInFrames OBJECT-TYPE
2648 + SYNTAX Counter
2649 + ACCESS read-only
2650 + STATUS mandatory
2651 + DESCRIPTION
2652 + "The number of frames that have been received by
2653 + this port from its segment. Note that a frame
2654 + received on the interface corresponding to this
2655 + port is only counted by this object if and only if
2656 + it is for a protocol being processed by the local
2657 + bridging function, including bridge management
2658 + frames."
2659 + REFERENCE
2660 + "IEEE 802.1D-1990: Section 6.6.1.1.3"
2661 + ::= { dot1dTpPortEntry 3 }
2662 +
2663 +dot1dTpPortOutFrames OBJECT-TYPE
2664 + SYNTAX Counter
2665 + ACCESS read-only
2666 + STATUS mandatory
2667 + DESCRIPTION
2668 + "The number of frames that have been transmitted
2669 + by this port to its segment. Note that a frame
2670 + transmitted on the interface corresponding to this
2671 + port is only counted by this object if and only if
2672 + it is for a protocol being processed by the local
2673 + bridging function, including bridge management
2674 + frames."
2675 + REFERENCE
2676 + "IEEE 802.1D-1990: Section 6.6.1.1.3"
2677 + ::= { dot1dTpPortEntry 4 }
2678 +
2679 +dot1dTpPortInDiscards OBJECT-TYPE
2680 + SYNTAX Counter
2681 + ACCESS read-only
2682 + STATUS mandatory
2683 + DESCRIPTION
2684 + "Count of valid frames received which were
2685 + discarded (i.e., filtered) by the Forwarding
2686 + Process."
2687 + REFERENCE
2688 + "IEEE 802.1D-1990: Section 6.6.1.1.3"
2689 + ::= { dot1dTpPortEntry 5 }
2690 +-- The Static (Destination-Address Filtering) Database
2691 +
2692 +-- Implementation of this group is optional.
2693 +
2694 +dot1dStaticTable OBJECT-TYPE
2695 + SYNTAX SEQUENCE OF Dot1dStaticEntry
2696 + ACCESS not-accessible
2697 + STATUS mandatory
2698 + DESCRIPTION
2699 + "A table containing filtering information
2700 + configured into the bridge by (local or network)
2701 + management specifying the set of ports to which
2702 + frames received from specific ports and containing
2703 + specific destination addresses are allowed to be
2704 + forwarded. The value of zero in this table as the
2705 + port number from which frames with a specific
2706 + destination address are received, is used to
2707 + specify all ports for which there is no specific
2708 + entry in this table for that particular
2709 + destination address. Entries are valid for
2710 + unicast and for group/broadcast addresses."
2711 + REFERENCE
2712 + "IEEE 802.1D-1990: Section 6.7.2"
2713 + ::= { dot1dStatic 1 }
2714 +
2715 +dot1dStaticEntry OBJECT-TYPE
2716 + SYNTAX Dot1dStaticEntry
2717 + ACCESS not-accessible
2718 + STATUS mandatory
2719 + DESCRIPTION
2720 + "Filtering information configured into the bridge
2721 + by (local or network) management specifying the
2722 + set of ports to which frames received from a
2723 + specific port and containing a specific
2724 + destination address are allowed to be forwarded."
2725 + REFERENCE
2726 + "IEEE 802.1D-1990: Section 6.7.2"
2727 + INDEX { dot1dStaticAddress, dot1dStaticReceivePort }
2728 + ::= { dot1dStaticTable 1 }
2729 +
2730 +Dot1dStaticEntry ::=
2731 + SEQUENCE {
2732 + dot1dStaticAddress
2733 + MacAddress,
2734 + dot1dStaticReceivePort
2735 + INTEGER,
2736 + dot1dStaticAllowedToGoTo
2737 + OCTET STRING,
2738 + dot1dStaticStatus
2739 + INTEGER
2740 + }
2741 +
2742 +dot1dStaticAddress OBJECT-TYPE
2743 + SYNTAX MacAddress
2744 + ACCESS read-write
2745 + STATUS mandatory
2746 + DESCRIPTION
2747 + "The destination MAC address in a frame to which
2748 + this entry's filtering information applies. This
2749 + object can take the value of a unicast address, a
2750 + group address or the broadcast address."
2751 + REFERENCE
2752 + "IEEE 802.1D-1990: Section 3.9.1, 3.9.2"
2753 + ::= { dot1dStaticEntry 1 }
2754 +
2755 +dot1dStaticReceivePort OBJECT-TYPE
2756 + SYNTAX INTEGER
2757 + ACCESS read-write
2758 + STATUS mandatory
2759 + DESCRIPTION
2760 + "Either the value '0', or the port number of the
2761 + port from which a frame must be received in order
2762 + for this entry's filtering information to apply.
2763 + A value of zero indicates that this entry applies
2764 + on all ports of the bridge for which there is no
2765 + other applicable entry."
2766 + ::= { dot1dStaticEntry 2 }
2767 +
2768 +dot1dStaticAllowedToGoTo OBJECT-TYPE
2769 + SYNTAX OCTET STRING
2770 + ACCESS read-write
2771 + STATUS mandatory
2772 + DESCRIPTION
2773 + "The set of ports to which frames received from a
2774 + specific port and destined for a specific MAC
2775 +
2776 + address, are allowed to be forwarded. Each octet
2777 + within the value of this object specifies a set of
2778 + eight ports, with the first octet specifying ports
2779 + 1 through 8, the second octet specifying ports 9
2780 + through 16, etc. Within each octet, the most
2781 + significant bit represents the lowest numbered
2782 + port, and the least significant bit represents the
2783 + highest numbered port. Thus, each port of the
2784 + bridge is represented by a single bit within the
2785 + value of this object. If that bit has a value of
2786 + '1' then that port is included in the set of
2787 + ports; the port is not included if its bit has a
2788 + value of '0'. (Note that the setting of the bit
2789 + corresponding to the port from which a frame is
2790 + received is irrelevant.) The default value of
2791 + this object is a string of ones of appropriate
2792 + length."
2793 + ::= { dot1dStaticEntry 3 }
2794 +
2795 +dot1dStaticStatus OBJECT-TYPE
2796 + SYNTAX INTEGER {
2797 + other(1),
2798 + invalid(2),
2799 + permanent(3),
2800 + deleteOnReset(4),
2801 + deleteOnTimeout(5)
2802 + }
2803 + ACCESS read-write
2804 + STATUS mandatory
2805 + DESCRIPTION
2806 + "This object indicates the status of this entry.
2807 + The default value is permanent(3).
2808 + other(1) - this entry is currently in use but
2809 + the conditions under which it will
2810 + remain so are different from each of the
2811 + following values.
2812 + invalid(2) - writing this value to the object
2813 + removes the corresponding entry.
2814 + permanent(3) - this entry is currently in use
2815 + and will remain so after the next reset
2816 + of the bridge.
2817 + deleteOnReset(4) - this entry is currently in
2818 + use and will remain so until the next
2819 + reset of the bridge.
2820 + deleteOnTimeout(5) - this entry is currently
2821 + in use and will remain so until it is
2822 + aged out."
2823 +
2824 + ::= { dot1dStaticEntry 4 }
2825 +
2826 +-- Traps for use by Bridges
2827 +
2828 +-- Traps for the Spanning Tree Protocol
2829 +
2830 +newRoot TRAP-TYPE
2831 + ENTERPRISE dot1dBridge
2832 + DESCRIPTION
2833 + "The newRoot trap indicates that the sending agent
2834 + has become the new root of the Spanning Tree; the
2835 + trap is sent by a bridge soon after its election
2836 + as the new root, e.g., upon expiration of the
2837 + Topology Change Timer immediately subsequent to
2838 + its election. Implementation of this trap is
2839 + optional."
2840 + ::= 1
2841 +
2842 +topologyChange TRAP-TYPE
2843 + ENTERPRISE dot1dBridge
2844 + DESCRIPTION
2845 + "A topologyChange trap is sent by a bridge when
2846 + any of its configured ports transitions from the
2847 + Learning state to the Forwarding state, or from
2848 + the Forwarding state to the Blocking state. The
2849 + trap is not sent if a newRoot trap is sent for the
2850 + same transition. Implementation of this trap is
2851 + optional."
2852 + ::= 2
2853 +
2854 +END
2855 diff -ruN net-snmp-5.1.2-orig/mibs/GNOME-SMI.txt net-snmp-5.1.2-5/mibs/GNOME-SMI.txt
2856 --- net-snmp-5.1.2-orig/mibs/GNOME-SMI.txt 1970-01-01 01:00:00.000000000 +0100
2857 +++ net-snmp-5.1.2-5/mibs/GNOME-SMI.txt 2005-03-13 16:17:21.000000000 +0100
2858 @@ -0,0 +1,72 @@
2859 +GNOME-SMI DEFINITIONS ::= BEGIN
2860 +
2861 +IMPORTS
2862 + MODULE-IDENTITY,
2863 + OBJECT-IDENTITY,
2864 + enterprises
2865 + FROM SNMPv2-SMI;
2866 +
2867 +gnome MODULE-IDENTITY
2868 + LAST-UPDATED "200312070000Z"
2869 + ORGANIZATION "GNOME project"
2870 + CONTACT-INFO
2871 + "GNU Network Object Model Environment project
2872 +
2873 + see http://www.gnome.org for contact persons of a particular
2874 + area or subproject of GNOME.
2875 +
2876 + Administrative contact for MIB module:
2877 +
2878 + Jochen Friedrich
2879 + Buedingerstr. 30b
2880 + 63546 Hammersbach
2881 + Germany
2882 +
2883 + email: jochen@scram.de"
2884 + DESCRIPTION
2885 + "The Structure of GNOME."
2886 +
2887 + -- revision history
2888 +
2889 + REVISION "9809010000Z" -- September 01, 1998
2890 + DESCRIPTION
2891 + "Initial version."
2892 +
2893 + REVISION "200312070000Z" -- December 07, 2003
2894 + DESCRIPTION
2895 + "Added gnomeSysadmin subtree for GNOME project system administration.
2896 + Updated contact info."
2897 +
2898 + ::= { enterprises 3317 } -- assigned by IANA
2899 +
2900 +gnomeProducts OBJECT-IDENTITY
2901 + STATUS current
2902 + DESCRIPTION
2903 + "gnomeProducts is the root OBJECT IDENTIFIER from
2904 + which sysObjectID values are assigned."
2905 + ::= { gnome 1 }
2906 +
2907 +gnomeMgmt OBJECT-IDENTITY
2908 + STATUS current
2909 + DESCRIPTION
2910 + "gnomeMgmt defines the subtree for production GNOME related
2911 + MIB registrations."
2912 + ::= { gnome 2 }
2913 +
2914 +gnomeTest OBJECT-IDENTITY
2915 + STATUS current
2916 + DESCRIPTION
2917 + "gnomeTest defines the subtree for testing GNOME related
2918 + MIB registrations."
2919 + ::= { gnome 3 }
2920 +
2921 +gnomeSysadmin OBJECT-IDENTITY
2922 + STATUS current
2923 + DESCRIPTION
2924 + "gnomeSysadmin defines the subtree for GNOME related Sysadmin
2925 + MIB registrations."
2926 + ::= { gnome 4 }
2927 +
2928 +-- more to come if necessary.
2929 +
2930 +END
2931 diff -ruN net-snmp-5.1.2-orig/mibs/Makefile.in net-snmp-5.1.2-5/mibs/Makefile.in
2932 --- net-snmp-5.1.2-orig/mibs/Makefile.in 2004-06-18 20:11:15.000000000 +0200
2933 +++ net-snmp-5.1.2-5/mibs/Makefile.in 2005-03-13 16:17:21.000000000 +0100
2934 @@ -43,11 +43,15 @@
2935 UCDMIBS = UCD-SNMP-MIB.txt UCD-DEMO-MIB.txt UCD-IPFWACC-MIB.txt \
2936 UCD-DLMOD-MIB.txt UCD-DISKIO-MIB.txt
2937
2938 +EXTRAMIBS = BGP4-MIB.txt BRIDGE-MIB.txt GNOME-SMI.txt OSPF-MIB.txt \
2939 + OSPF-TRAP-MIB.txt RIPv2-MIB.txt SOURCE-ROUTING-MIB.txt \
2940 + LM-SENSORS-MIB.txt
2941 +
2942 DEFAULTMIBS = @default_mibs_install@
2943
2944 MIBS = $(V1MIBS) $(V2MIBS) $(V3MIBS) $(RFCMIBS) \
2945 $(AGENTMIBS) $(IANAMIBS) \
2946 - $(NETSNMPMIBS) $(UCDMIBS) $(DEFAULTMIBS)
2947 + $(NETSNMPMIBS) $(UCDMIBS) $(DEFAULTMIBS) $(EXTRAMIBS)
2948
2949 all: standardall
2950
2951 diff -ruN net-snmp-5.1.2-orig/mibs/OSPF-MIB.txt net-snmp-5.1.2-5/mibs/OSPF-MIB.txt
2952 --- net-snmp-5.1.2-orig/mibs/OSPF-MIB.txt 1970-01-01 01:00:00.000000000 +0100
2953 +++ net-snmp-5.1.2-5/mibs/OSPF-MIB.txt 2005-03-13 16:17:21.000000000 +0100
2954 @@ -0,0 +1,2723 @@
2955 +OSPF-MIB DEFINITIONS ::= BEGIN
2956 +
2957 + IMPORTS
2958 + MODULE-IDENTITY, OBJECT-TYPE, Counter32, Gauge32,
2959 + Integer32, IpAddress
2960 + FROM SNMPv2-SMI
2961 + TEXTUAL-CONVENTION, TruthValue, RowStatus
2962 + FROM SNMPv2-TC
2963 + MODULE-COMPLIANCE, OBJECT-GROUP FROM SNMPv2-CONF
2964 + mib-2 FROM RFC1213-MIB;
2965 +
2966 +-- This MIB module uses the extended OBJECT-TYPE macro as
2967 +-- defined in [9].
2968 +
2969 +ospf MODULE-IDENTITY
2970 + LAST-UPDATED "9501201225Z" -- Fri Jan 20 12:25:50 PST 1995
2971 + ORGANIZATION "IETF OSPF Working Group"
2972 + CONTACT-INFO
2973 + " Fred Baker
2974 + Postal: Cisco Systems
2975 + 519 Lado Drive
2976 + Santa Barbara, California 93111
2977 + Tel: +1 805 681 0115
2978 + E-Mail: fred@cisco.com
2979 +
2980 + Rob Coltun
2981 + Postal: RainbowBridge Communications
2982 + Tel: (301) 340-9416
2983 + E-Mail: rcoltun@rainbow-bridge.com"
2984 + DESCRIPTION
2985 + "The MIB module to describe the OSPF Version 2
2986 + Protocol"
2987 + ::= { mib-2 14 }
2988 +
2989 +-- The Area ID, in OSPF, has the same format as an IP Address,
2990 +-- but has the function of defining a summarization point for
2991 +-- Link State Advertisements
2992 +
2993 +AreaID ::= TEXTUAL-CONVENTION
2994 + STATUS current
2995 + DESCRIPTION
2996 + "An OSPF Area Identifier."
2997 + SYNTAX IpAddress
2998 +
2999 +
3000 +-- The Router ID, in OSPF, has the same format as an IP Address,
3001 +-- but identifies the router independent of its IP Address.
3002 +
3003 +RouterID ::= TEXTUAL-CONVENTION
3004 + STATUS current
3005 + DESCRIPTION
3006 + "A OSPF Router Identifier."
3007 + SYNTAX IpAddress
3008 +
3009 +
3010 +-- The OSPF Metric is defined as an unsigned value in the range
3011 +
3012 +Metric ::= TEXTUAL-CONVENTION
3013 + STATUS current
3014 + DESCRIPTION
3015 + "The OSPF Internal Metric."
3016 + SYNTAX Integer32 (0..'FFFF'h)
3017 +
3018 +BigMetric ::= TEXTUAL-CONVENTION
3019 + STATUS current
3020 + DESCRIPTION
3021 + "The OSPF External Metric."
3022 + SYNTAX Integer32 (0..'FFFFFF'h)
3023 +
3024 +-- Status Values
3025 +
3026 +Status ::= TEXTUAL-CONVENTION
3027 + STATUS current
3028 + DESCRIPTION
3029 + "The status of an interface: 'enabled' indicates that
3030 + it is willing to communicate with other OSPF Routers,
3031 + while 'disabled' indicates that it is not."
3032 + SYNTAX INTEGER { enabled (1), disabled (2) }
3033 +
3034 +-- Time Durations measured in seconds
3035 +
3036 +PositiveInteger ::= TEXTUAL-CONVENTION
3037 + STATUS current
3038 + DESCRIPTION
3039 + "A positive integer. Values in excess are precluded as
3040 + unnecessary and prone to interoperability issues."
3041 + SYNTAX Integer32 (0..'7FFFFFFF'h)
3042 +
3043 +HelloRange ::= TEXTUAL-CONVENTION
3044 + STATUS current
3045 + DESCRIPTION
3046 + "The range of intervals on which hello messages are
3047 + exchanged."
3048 + SYNTAX Integer32 (1..'FFFF'h)
3049 +
3050 +UpToMaxAge ::= TEXTUAL-CONVENTION
3051 + STATUS current
3052 + DESCRIPTION
3053 + "The values that one might find or configure for
3054 + variables bounded by the maximum age of an LSA."
3055 + SYNTAX Integer32 (0..3600)
3056 +
3057 +
3058 +-- The range of ifIndex
3059 +
3060 +InterfaceIndex ::= TEXTUAL-CONVENTION
3061 + STATUS current
3062 + DESCRIPTION
3063 + "The range of ifIndex."
3064 + SYNTAX Integer32
3065 +
3066 +
3067 +-- Potential Priorities for the Designated Router Election
3068 +
3069 +DesignatedRouterPriority ::= TEXTUAL-CONVENTION
3070 + STATUS current
3071 + DESCRIPTION
3072 + "The values defined for the priority of a system for
3073 + becoming the designated router."
3074 + SYNTAX Integer32 (0..'FF'h)
3075 +
3076 +TOSType ::= TEXTUAL-CONVENTION
3077 + STATUS current
3078 + DESCRIPTION
3079 + "Type of Service is defined as a mapping to the IP Type of
3080 + Service Flags as defined in the IP Forwarding Table MIB
3081 +
3082 + +-----+-----+-----+-----+-----+-----+-----+-----+
3083 + | | | |
3084 + | PRECEDENCE | TYPE OF SERVICE | 0 |
3085 + | | | |
3086 + +-----+-----+-----+-----+-----+-----+-----+-----+
3087 +
3088 + IP TOS IP TOS
3089 + Field Policy Field Policy
3090 +
3091 + Contents Code Contents Code
3092 + 0 0 0 0 ==> 0 0 0 0 1 ==> 2
3093 + 0 0 1 0 ==> 4 0 0 1 1 ==> 6
3094 + 0 1 0 0 ==> 8 0 1 0 1 ==> 10
3095 + 0 1 1 0 ==> 12 0 1 1 1 ==> 14
3096 + 1 0 0 0 ==> 16 1 0 0 1 ==> 18
3097 + 1 0 1 0 ==> 20 1 0 1 1 ==> 22
3098 + 1 1 0 0 ==> 24 1 1 0 1 ==> 26
3099 + 1 1 1 0 ==> 28 1 1 1 1 ==> 30
3100 +
3101 + The remaining values are left for future definition."
3102 + SYNTAX Integer32 (0..30)
3103 +
3104 +
3105 +-- OSPF General Variables
3106 +
3107 +-- These parameters apply globally to the Router's
3108 +-- OSPF Process.
3109 +
3110 +ospfGeneralGroup OBJECT IDENTIFIER ::= { ospf 1 }
3111 +
3112 +
3113 + ospfRouterId OBJECT-TYPE
3114 + SYNTAX RouterID
3115 + MAX-ACCESS read-write
3116 + STATUS current
3117 + DESCRIPTION
3118 + "A 32-bit integer uniquely identifying the
3119 + router in the Autonomous System.
3120 +
3121 + By convention, to ensure uniqueness, this
3122 + should default to the value of one of the
3123 + router's IP interface addresses."
3124 + REFERENCE
3125 + "OSPF Version 2, C.1 Global parameters"
3126 + ::= { ospfGeneralGroup 1 }
3127 +
3128 +
3129 + ospfAdminStat OBJECT-TYPE
3130 + SYNTAX Status
3131 + MAX-ACCESS read-write
3132 + STATUS current
3133 + DESCRIPTION
3134 + "The administrative status of OSPF in the
3135 + router. The value 'enabled' denotes that the
3136 + OSPF Process is active on at least one inter-
3137 + face; 'disabled' disables it on all inter-
3138 + faces."
3139 + ::= { ospfGeneralGroup 2 }
3140 +
3141 + ospfVersionNumber OBJECT-TYPE
3142 + SYNTAX INTEGER { version2 (2) }
3143 + MAX-ACCESS read-only
3144 + STATUS current
3145 + DESCRIPTION
3146 + "The current version number of the OSPF proto-
3147 + col is 2."
3148 + REFERENCE
3149 + "OSPF Version 2, Title"
3150 + ::= { ospfGeneralGroup 3 }
3151 +
3152 +
3153 + ospfAreaBdrRtrStatus OBJECT-TYPE
3154 + SYNTAX TruthValue
3155 + MAX-ACCESS read-only
3156 + STATUS current
3157 + DESCRIPTION
3158 + "A flag to note whether this router is an area
3159 + border router."
3160 + REFERENCE
3161 + "OSPF Version 2, Section 3 Splitting the AS into
3162 + Areas"
3163 + ::= { ospfGeneralGroup 4 }
3164 +
3165 +
3166 + ospfASBdrRtrStatus OBJECT-TYPE
3167 + SYNTAX TruthValue
3168 + MAX-ACCESS read-write
3169 + STATUS current
3170 + DESCRIPTION
3171 + "A flag to note whether this router is config-
3172 + ured as an Autonomous System border router."
3173 + REFERENCE
3174 + "OSPF Version 2, Section 3.3 Classification of
3175 + routers"
3176 + ::= { ospfGeneralGroup 5 }
3177 +
3178 + ospfExternLsaCount OBJECT-TYPE
3179 + SYNTAX Gauge32
3180 + MAX-ACCESS read-only
3181 + STATUS current
3182 + DESCRIPTION
3183 + "The number of external (LS type 5) link-state
3184 + advertisements in the link-state database."
3185 + REFERENCE
3186 + "OSPF Version 2, Appendix A.4.5 AS external link
3187 + advertisements"
3188 + ::= { ospfGeneralGroup 6 }
3189 +
3190 +
3191 + ospfExternLsaCksumSum OBJECT-TYPE
3192 + SYNTAX Integer32
3193 + MAX-ACCESS read-only
3194 + STATUS current
3195 + DESCRIPTION
3196 + "The 32-bit unsigned sum of the LS checksums of
3197 + the external link-state advertisements con-
3198 + tained in the link-state database. This sum
3199 + can be used to determine if there has been a
3200 + change in a router's link state database, and
3201 + to compare the link-state database of two
3202 + routers."
3203 + ::= { ospfGeneralGroup 7 }
3204 +
3205 +
3206 + ospfTOSSupport OBJECT-TYPE
3207 + SYNTAX TruthValue
3208 + MAX-ACCESS read-write
3209 + STATUS current
3210 + DESCRIPTION
3211 + "The router's support for type-of-service rout-
3212 + ing."
3213 + REFERENCE
3214 + "OSPF Version 2, Appendix F.1.2 Optional TOS
3215 + support"
3216 + ::= { ospfGeneralGroup 8 }
3217 +
3218 + ospfOriginateNewLsas OBJECT-TYPE
3219 + SYNTAX Counter32
3220 + MAX-ACCESS read-only
3221 + STATUS current
3222 + DESCRIPTION
3223 + "The number of new link-state advertisements
3224 + that have been originated. This number is in-
3225 + cremented each time the router originates a new
3226 + LSA."
3227 + ::= { ospfGeneralGroup 9 }
3228 +
3229 +
3230 + ospfRxNewLsas OBJECT-TYPE
3231 + SYNTAX Counter32
3232 + MAX-ACCESS read-only
3233 + STATUS current
3234 + DESCRIPTION
3235 + "The number of link-state advertisements re-
3236 + ceived determined to be new instantiations.
3237 + This number does not include newer instantia-
3238 + tions of self-originated link-state advertise-
3239 + ments."
3240 + ::= { ospfGeneralGroup 10 }
3241 +
3242 + ospfExtLsdbLimit OBJECT-TYPE
3243 + SYNTAX Integer32 (-1..'7FFFFFFF'h)
3244 + MAX-ACCESS read-write
3245 + STATUS current
3246 + DESCRIPTION
3247 + "The maximum number of non-default AS-
3248 + external-LSAs entries that can be stored in the
3249 + link-state database. If the value is -1, then
3250 + there is no limit.
3251 +
3252 + When the number of non-default AS-external-LSAs
3253 + in a router's link-state database reaches
3254 + ospfExtLsdbLimit, the router enters Overflow-
3255 + State. The router never holds more than
3256 + ospfExtLsdbLimit non-default AS-external-LSAs
3257 + in its database. OspfExtLsdbLimit MUST be set
3258 + identically in all routers attached to the OSPF
3259 + backbone and/or any regular OSPF area. (i.e.,
3260 + OSPF stub areas and NSSAs are excluded)."
3261 + DEFVAL { -1 }
3262 + ::= { ospfGeneralGroup 11 }
3263 +
3264 + ospfMulticastExtensions OBJECT-TYPE
3265 + SYNTAX Integer32
3266 + MAX-ACCESS read-write
3267 + STATUS current
3268 + DESCRIPTION
3269 + "A Bit Mask indicating whether the router is
3270 + forwarding IP multicast (Class D) datagrams
3271 + based on the algorithms defined in the Multi-
3272 + cast Extensions to OSPF.
3273 +
3274 + Bit 0, if set, indicates that the router can
3275 + forward IP multicast datagrams in the router's
3276 + directly attached areas (called intra-area mul-
3277 + ticast routing).
3278 +
3279 + Bit 1, if set, indicates that the router can
3280 + forward IP multicast datagrams between OSPF
3281 + areas (called inter-area multicast routing).
3282 +
3283 + Bit 2, if set, indicates that the router can
3284 + forward IP multicast datagrams between Auto-
3285 + nomous Systems (called inter-AS multicast rout-
3286 + ing).
3287 +
3288 + Only certain combinations of bit settings are
3289 + allowed, namely: 0 (no multicast forwarding is
3290 + enabled), 1 (intra-area multicasting only), 3
3291 + (intra-area and inter-area multicasting), 5
3292 + (intra-area and inter-AS multicasting) and 7
3293 + (multicasting everywhere). By default, no mul-
3294 + ticast forwarding is enabled."
3295 + DEFVAL { 0 }
3296 + ::= { ospfGeneralGroup 12 }
3297 +
3298 + ospfExitOverflowInterval OBJECT-TYPE
3299 + SYNTAX PositiveInteger
3300 + MAX-ACCESS read-write
3301 + STATUS current
3302 + DESCRIPTION
3303 + "The number of seconds that, after entering
3304 + OverflowState, a router will attempt to leave
3305 + OverflowState. This allows the router to again
3306 + originate non-default AS-external-LSAs. When
3307 + set to 0, the router will not leave Overflow-
3308 + State until restarted."
3309 + DEFVAL { 0 }
3310 + ::= { ospfGeneralGroup 13 }
3311 +
3312 +
3313 + ospfDemandExtensions OBJECT-TYPE
3314 + SYNTAX TruthValue
3315 + MAX-ACCESS read-write
3316 + STATUS current
3317 + DESCRIPTION
3318 + "The router's support for demand routing."
3319 + REFERENCE
3320 + "OSPF Version 2, Appendix on Demand Routing"
3321 + ::= { ospfGeneralGroup 14 }
3322 +
3323 +
3324 +-- The OSPF Area Data Structure contains information
3325 +-- regarding the various areas. The interfaces and
3326 +-- virtual links are configured as part of these areas.
3327 +-- Area 0.0.0.0, by definition, is the Backbone Area
3328 +
3329 +
3330 + ospfAreaTable OBJECT-TYPE
3331 + SYNTAX SEQUENCE OF OspfAreaEntry
3332 + MAX-ACCESS not-accessible
3333 + STATUS current
3334 + DESCRIPTION
3335 + "Information describing the configured parame-
3336 + ters and cumulative statistics of the router's
3337 + attached areas."
3338 + REFERENCE
3339 + "OSPF Version 2, Section 6 The Area Data Struc-
3340 + ture"
3341 + ::= { ospf 2 }
3342 +
3343 +
3344 + ospfAreaEntry OBJECT-TYPE
3345 + SYNTAX OspfAreaEntry
3346 + MAX-ACCESS not-accessible
3347 + STATUS current
3348 + DESCRIPTION
3349 + "Information describing the configured parame-
3350 + ters and cumulative statistics of one of the
3351 + router's attached areas."
3352 + INDEX { ospfAreaId }
3353 + ::= { ospfAreaTable 1 }
3354 +
3355 +OspfAreaEntry ::=
3356 + SEQUENCE {
3357 + ospfAreaId
3358 + AreaID,
3359 + ospfAuthType
3360 + Integer32,
3361 + ospfImportAsExtern
3362 + INTEGER,
3363 + ospfSpfRuns
3364 + Counter32,
3365 + ospfAreaBdrRtrCount
3366 + Gauge32,
3367 + ospfAsBdrRtrCount
3368 + Gauge32,
3369 + ospfAreaLsaCount
3370 + Gauge32,
3371 + ospfAreaLsaCksumSum
3372 + Integer32,
3373 + ospfAreaSummary
3374 + INTEGER,
3375 + ospfAreaStatus
3376 + RowStatus
3377 + }
3378 +
3379 + ospfAreaId OBJECT-TYPE
3380 + SYNTAX AreaID
3381 + MAX-ACCESS read-only
3382 + STATUS current
3383 + DESCRIPTION
3384 + "A 32-bit integer uniquely identifying an area.
3385 + Area ID 0.0.0.0 is used for the OSPF backbone."
3386 + REFERENCE
3387 + "OSPF Version 2, Appendix C.2 Area parameters"
3388 + ::= { ospfAreaEntry 1 }
3389 +
3390 +
3391 + ospfAuthType OBJECT-TYPE
3392 + SYNTAX Integer32
3393 + -- none (0),
3394 + -- simplePassword (1)
3395 + -- md5 (2)
3396 + -- reserved for specification by IANA (> 2)
3397 + MAX-ACCESS read-create
3398 + STATUS obsolete
3399 + DESCRIPTION
3400 + "The authentication type specified for an area.
3401 + Additional authentication types may be assigned
3402 + locally on a per Area basis."
3403 + REFERENCE
3404 + "OSPF Version 2, Appendix E Authentication"
3405 + DEFVAL { 0 } -- no authentication, by default
3406 + ::= { ospfAreaEntry 2 }
3407 +
3408 + ospfImportAsExtern OBJECT-TYPE
3409 + SYNTAX INTEGER {
3410 + importExternal (1),
3411 + importNoExternal (2),
3412 + importNssa (3)
3413 + }
3414 + MAX-ACCESS read-create
3415 + STATUS current
3416 + DESCRIPTION
3417 + "The area's support for importing AS external
3418 + link- state advertisements."
3419 + REFERENCE
3420 + "OSPF Version 2, Appendix C.2 Area parameters"
3421 + DEFVAL { importExternal }
3422 + ::= { ospfAreaEntry 3 }
3423 +
3424 +
3425 + ospfSpfRuns OBJECT-TYPE
3426 + SYNTAX Counter32
3427 + MAX-ACCESS read-only
3428 + STATUS current
3429 + DESCRIPTION
3430 + "The number of times that the intra-area route
3431 + table has been calculated using this area's
3432 + link-state database. This is typically done
3433 + using Dijkstra's algorithm."
3434 + ::= { ospfAreaEntry 4 }
3435 +
3436 +
3437 + ospfAreaBdrRtrCount OBJECT-TYPE
3438 + SYNTAX Gauge32
3439 + MAX-ACCESS read-only
3440 + STATUS current
3441 + DESCRIPTION
3442 + "The total number of area border routers reach-
3443 + able within this area. This is initially zero,
3444 + and is calculated in each SPF Pass."
3445 + ::= { ospfAreaEntry 5 }
3446 +
3447 + ospfAsBdrRtrCount OBJECT-TYPE
3448 + SYNTAX Gauge32
3449 + MAX-ACCESS read-only
3450 + STATUS current
3451 + DESCRIPTION
3452 + "The total number of Autonomous System border
3453 + routers reachable within this area. This is
3454 + initially zero, and is calculated in each SPF
3455 + Pass."
3456 + ::= { ospfAreaEntry 6 }
3457 +
3458 +
3459 + ospfAreaLsaCount OBJECT-TYPE
3460 + SYNTAX Gauge32
3461 + MAX-ACCESS read-only
3462 + STATUS current
3463 + DESCRIPTION
3464 + "The total number of link-state advertisements
3465 + in this area's link-state database, excluding
3466 + AS External LSA's."
3467 + ::= { ospfAreaEntry 7 }
3468 +
3469 +
3470 + ospfAreaLsaCksumSum OBJECT-TYPE
3471 + SYNTAX Integer32
3472 + MAX-ACCESS read-only
3473 + STATUS current
3474 + DESCRIPTION
3475 + "The 32-bit unsigned sum of the link-state ad-