1.\"-
2.\" Copyright (C) 2006 Shteryana Shopova <syrinx@FreeBSD.org>
3.\" All rights reserved.
4.\"
5.\" Redistribution and use in source and binary forms, with or without
6.\" modification, are permitted provided that the following conditions
7.\" are met:
8.\" 1. Redistributions of source code must retain the above copyright
9.\"    notice, this list of conditions and the following disclaimer.
10.\" 2. Redistributions in binary form must reproduce the above copyright
11.\"    notice, this list of conditions and the following disclaimer in the
12.\"    documentation and/or other materials provided with the distribution.
13.\"
14.\" THIS SOFTWARE IS PROVIDED BY AUTHOR AND CONTRIBUTORS ``AS IS'' AND
15.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
16.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
17.\" ARE DISCLAIMED.  IN NO EVENT SHALL AUTHOR OR CONTRIBUTORS BE LIABLE
18.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24.\" SUCH DAMAGE.
25.\"
26.\" $FreeBSD$
27.\"
28.Dd December 8, 2006
29.Dt snmp_bridge 3
30.Os
31.Sh NAME
32.Nm snmp_bridge
33.Nd "bridge module for snmpd.
34.Sh LIBRARY
35.Pq begemotSnmpdModulePath."bridge" = "/usr/lib/snmp_bridge.so"
36.Sh DESCRIPTION
37The
38.Nm snmp_bridge
39module implements the BRIDGE-MIB as standardized in RFC 4188, the RSTP-MIB
40standardized in RFC4318 and a private BEGEMOT-BRIDGE-MIB, which allows
41management of multiple bridge interfaces.
42Most of the objects defined in the private BEGEMOT-BRIDGE-MIB are duplicates
43of the original objects defined by the standard BRIDGE-MIB, but the private
44MIB also defines additional objects which make the functionality of
45.Nm
46similar to
47.Xr ifconfig 8
48for configuring bridge interfaces.
49Therefore one should consider adding write comminities or loading the
50.Nm
51module on systems where security is crucial.
52.Sh IMPLEMENTATION NOTES
53The additional objects to configure a bridge are:
54.Bl -tag -width "XXXXXXXXX"
55.It Va begemotBridgeBaseStatus
56Bridge interfaces can be created and destroyed via this object.
57SNMP SET operations with the following values are allowed:
58.Bl -tag -width ".It Va createAndWait"
59.It Va createAndWait
60will attempt to create a bridge interface with the name given by the table
61index.
62.It Va createAndGo
63will attempt to create a bridge interface with the name given by the table
64index and set the status of the interface to "active/up".
65.It Va destroy
66will attempt to destory the bridge interface.
67.El
68.It Va begemotBridgeBaseSpanEnabled
69A SNMP SET operation on this object is only successfull if the corresponding
70port has not been added as member of the bridge interface on the system.
71.It Va begemotBridgeBasePortStatus
72SNMP SET operations with the following values are allowed:
73.Bl -tag -width ".It Va createAndWait"
74.It Va createAndWait
75will create a new row for the bridge member in the SNMP
76.Va begemotBridgeBasePortTable
77but will not try to commit the information to the system.
78.It Va active
79will attempt to commit the information to the system and will be successful
80only if a value for
81.Va begemotBridgeBaseSpanEnabled
82has been SET already.
83.It Va destroy
84will attempt to remove the interface from the system bridge interface.
85.El
86.El
87.Sh RESTRICTIONS
88Not all information in the MIBs is currently available in FreeBSD.
89The following variables carry no information:
90.Bl -tag -width "XXXXXXXXX"
91.It Va dot1dBasePortCircuit
92.It Va dot1dBasePortDelayExceededDiscards
93.It Va dot1dBasePortMtuExceededDiscards
94.It Va begemotBridgeBasePortDelayExceededDiscards
95.It Va begemotBridgeBasePortMtuExceededDiscards
96.El
97.Sh FILES
98.Bl -tag -width "XXXXXXXXX"
99.It Pa /usr/share/snmp/defs/bridge_tree.def
100The description of the MIB tree implemented by
101.Nm .
102.It Pa /usr/share/snmp/mibs/BRIDGE-MIB.txt
103This is the BRIDGE-MIB that is implemented by this module.
104.It Pa /usr/share/snmp/mibs/RSTP-MIB.txt
105This is the RSTP-MIB implemented by this module.
106.It Pa /usr/share/snmp/mibs/BEGEMOT-BRIDGE-MIB.txt
107This is the private BEGEMOT-BRIDGE-MIB that is implemented by this module.
108.El
109.Sh SEE ALSO
110.Xr bsnmpd 1 ,
111.Xr gensnmptree 1 ,
112.Xr if_bridge 4 ,
113.Xr ifconfig 8 ,
114.Xr snmpmod 3
115.Sh AUTHORS
116.An Shteryana Shopova Aq syrinx@FreeBSD.org
117