these are the messages that i am getting in snmpd.log:

[smux_accept] accepted fd 11 from 
127.0.0.1:1960                                                            
refused smux peer: oid SNMPv2-SMI::enterprises.3317.1.2.2, descr 
-4.13                                      
[smux_accept] accepted fd 11 from 
127.0.0.1:1961                                                            
refused smux peer: oid SNMPv2-SMI::enterprises.3317.1.2.1, descr 
-4.13                                      
[smux_accept] accepted fd 11 from 
127.0.0.1:1962                                                            
refused smux peer: oid SNMPv2-SMI::enterprises.3317.1.2.3, descr 
-4.13                                      
[smux_accept] accepted fd 11 from 
127.0.0.1:1963                                                            
refused smux peer: oid SNMPv2-SMI::enterprises.3317.1.2.5, descr 
-4.13                                      
[smux_accept] accepted fd 11 from 
127.0.0.1:1964                                                            
refused smux peer: oid SNMPv2-SMI::enterprises.3317.1.2.2, descr 
-4.13                                      
[smux_accept] accepted fd 11 from 
127.0.0.1:1965                                                            
refused smux peer: oid SNMPv2-SMI::enterprises.3317.1.2.1, descr 
-4.13                                      
[smux_accept] accepted fd 11 from 
127.0.0.1:1966                                                            
refused smux peer: oid SNMPv2-SMI::enterprises.3317.1.2.3, descr 
-4.13                                      


I have debugged it and found out that it is not able to match the sa_oid of any 
of the peer(zebra, bgp, ospfd ripd) in smux_auth_peer in 
net-snmp-5.4.1/agent/mibgroup/smux/smux.c

This may be because when reading oids from conf file it is not able to read
complete oid net-snmp-5.4.1/agent/mibgroup/smux/smux.c
smux_parse_peer_auth()->read_objid(), it does not read the last digit of oid 
from conf file. So it is not able to match oids and gives "refused smux peer" 
and in zebra "SMUX_CLOSE with reason :5"

read_objid() is defined in net-snmp-5.4.1.1/snmplib/mib.c

I want to know if there is a bug in read_objid() it.

Please find my conf file attached

Thanks,
Kamal Arora





      

Attachment: snmpd.conf
Description: Binary data

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to