summaryrefslogtreecommitdiff
path: root/doc/snmp.texi
blob: f74bb513d5c0bf5e16f22c7da6fd1b13468cbfbb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
@node SNMP Support, Zebra Protocol, Kernel Interface, Top
@comment  node-name,  next,  previous,  up
@chapter SNMP Support

SNMP (Simple Network Managing Protocol) is widely implemented feature
for collecting network information from router and/or host.  Quagga
itself does not support SNMP agent functionality.  But conjuction with
SNMP agent, Quagga provides routing protocol MIBs.

Quagga uses SMUX protocol (RFC1227) for making communication with SNMP
agent.  There are several SNMP agent which support SMUX.  We recommend
to use the latest @command{ucd-snmp} software.  

@menu
* How to get ucd-snmp::         
* SMUX configuration::          
@end menu

@node How to get ucd-snmp, SMUX configuration, SNMP Support, SNMP Support
@comment  node-name,  next,  previous,  up
@section How to get ucd-snmp

ucd-snmp is a free software which distributed so called "as is" software
license.  Please check the license which comes with distribution of
@command{ucd-snmp}.  The authors of ucd-snmp are the University of
California, the University of California at Davis, and the Electrical
Engineering department at the University of California at Davis.

You can get ucd-snmp from @url{ftp://ucd-snmp.ucdavis.edu/}.  As of this
writing we are testing with @command{ucd-snmp-4.1.pre1.tar.gz}.

To enable SMUX protocol support, please configure @command{ucd-snmp}
like below.

@example
% configure --with-mib-modules=smux
@end example

After compile and install @command{ucd-snmp}, you will need to configure
smuxpeer.  I'm now using configuration shown below.  This means SMUX client
connects to MIB 1.3.6.1.6.3.1 with password test.
  
@example
/usr/local/share/snmp/snmpd.conf
================================
smuxpeer 1.3.6.1.6.3.1 test
@end example

@node SMUX configuration,  , How to get ucd-snmp, SNMP Support
@comment  node-name,  next,  previous,  up
@section SMUX configuration

To enable SNMP support of Quagga, you have to configure Quagga with
@command{--enable-snmp} (@pxref{Configure the Software}).

@deffn {Command} {smux peer @var{oid}} {}
@deffnx {Command} {no smux peer @var{oid}} {}
@end deffn

@deffn {Command} {smux peer @var{oid} @var{password}} {}
@deffnx {Command} {no smux peer @var{oid} @var{password}} {}
@end deffn

@example
!
smux peer .1.3.6.1.6.3.1 test
!
@end example