problems while trying to use snmp smux with quagga ripd daemon
"Lilia Golobochinsky" <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <[email protected]> |
Hi all,
I am trying to run snmpd (with smux enabled) and to make it work with
quagga ripd daemon. However snmpd issues authentication failure error as
the result.
I performed the following steps:
1. I copied the RIPv2-MIB.txt file to the mibs directory where snmpd
will look for mibs.
2. Compiled net-snmp-5.4.1 package with the following flags:
--with-mib-modules=smux,
--with-mibs=RIPv2-MIB:IP-MIB:IF-MIB:TCP-MIB:UDP-MIB:SNMPv2-MIB:RFC1213-M
IB
3. Compiled quagga-0.99.5 package with --enable-snmp option.
4. Added the following line to snmpd.conf file: smuxpeer
.1.3.6.1.4.1.3317.1.2.3 quagga_ripd
5. Added the following line to ripd.conf file: smux peer
.1.3.6.1.4.1.3317.1.2.3 quagga_ripd
6. Started snmpd as follows:
./snmpd -m
IP-MIB:IF-MIB:TCP-MIB:UDP-MIB:SNMPv2-MIB:RFC1213-MIB:RIPv2-MIB -M
/usr/share/snmp/mibs -L -Dsmux
7. Started quagga zebra by running: ./zebra -d
8. Started quagga ripd by running: ./ripd -d
This is the output given by snmpd
registered debug token smux, 1
netsnmp_assert !"registration != duplicate" failed agent_registry.c:535
netsnmp_subtree_load()
netsnmp_assert !"registration != duplicate" failed agent_registry.c:535
netsnmp_subtree_load()
netsnmp_assert !"registration != duplicate" failed agent_registry.c:535
netsnmp_subtree_load()
smux_conf: parsing registration for: .1.3.6.1.4.1.3317.1.2.3 quagga_ripd
smux_conf: password is: quagga_ripd
smux_init: [smux_init] done; smux listen sd is 5, smux port is 199
NET-SNMP version 5.4.1
smux: [smux_accept] Calling accept()
[smux_accept] accepted fd 7 from 127.0.0.1:43845
smux: [smux_open_process] version 0, len 39, type 2
smux: [smux_open_process] smux peer: SNMPv2-SMI::enterprises.3317.1.2.3
smux: [smux_open_process] len 27, type 6
smux: [smux_open_process] smux peer descr: Quagga-0.99.9
smux: [smux_open_process] len 12, type 4
smux: [smux_open_process] smux peer passwd: quagga_ripd
smux: [smux_open_process] len 0, type 4
refused smux peer: oid SNMPv2-SMI::enterprises.3317.1.2.3, descr
Quagga-0.99.9
smux: [smux_close] sending close to fd 7, reason 5
smux: [smux_accept] peer on 7 failed authentication
After investigating net-snmp code I think I found the reason for
authentication failure.
I noticed that when snmpd parses the line "smuxpeer
.1.3.6.1.4.1.3317.1.2.3 quagga_ripd" in snmpd.conf file it searches for
OID 1.3.6.1.4.1.3317.1.2.3 in mib tree, but this OID is not found in the
tree so the error UNKNOWN_OBJID returned and the ripd is not registered
as smux peer as the result. However the error code is not checked in the
code therefore the flow continues and when ripd sends smux message the
authentication fails because this peer doesn't appear in internal
database of smux peers in snmpd.
My question is: Does net-snmp package support quagga daemons like ripd
and ospfd over smux interface? Are there any additional actions I had to
perform to make it work?
I found in net-snmp documentation a section about "mib2c" tool which
creates framework code for non-default mibs. In documentation it's also
mentioned that some of the automatically created code must be changed by
the user in order for snmpd to recognize non-default mib. Does it mean
that I have to use this tool and to add my own code in order to make
snmpd work with RIP2 mib?
I will really appreciate if someone could help me with this one.
Thanks,
Lilia
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Register now and save $200. Hurry, offer ends at 11:59 p.m.,
Monday, April 7! Use priority code J8TLD2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users